od[forum]: Hou Navigator 0.1 - od[forum]

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

Hou Navigator 0.1 Spacemouse for Houdini

#25 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 08 November 2009 - 02:26 PM

Thanks edward!
I used a standard notepad in windows 7
And now with cream I can read this files :)

thanks again!
0

#26 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 08 November 2009 - 03:01 PM

I try to build it with different versions of Python and get this errors:

Python 2.5.4

running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.


2.6.4 and 3.1.1

running build
running build_ext
building 'spacemouse' extension
error: Unable to find vcvarsall.bat


I have to install anything else?
0

#27 User is offline   FrankFirsching Icon

  • Initiate
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 21-February 03
  • Location:Munich, Germany
  • Name:Frank
  • Firsching

Posted 10 November 2009 - 10:29 AM

Do you have the Windows SDK installed? If so, please start the build.bat from the "CMD Shell" comming with the SDK instead of the normal command prompt from the "accessories" (Don't know if it's called like that on an english windows). This sets up the environment in such a way, that the build script can find the compiler/linker/vcvarsall.bat/etc.
0

#28 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 11 November 2009 - 10:42 AM

I install Visual Studio 2008 and Windows SDK 7 and try to build again

C:\spacemouse_0.1\native>build
running build
running build_ext
building 'spacemouse' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\ext\soft\Python264\include -IC:\ext\soft\Python264\PC
 /Tpspacemouse.cpp /Fobuild\temp.win32-2.6\Release\spacemouse.obj /EHsc
spacemouse.cpp
creating build\lib.win32-2.6
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\ext\soft\Python264\libs /LIBPATH:C:\ext\soft\Python2
64\PCbuild /EXPORT:initspacemouse build\temp.win32-2.6\Release\spacemouse.obj /O
UT:build\lib.win32-2.6\spacemouse.pyd /IMPLIB:build\temp.win32-2.6\Release\space
mouse.lib /MANIFESTFILE:build\temp.win32-2.6\Release\spacemouse.pyd.manifest
   Creating library build\temp.win32-2.6\Release\spacemouse.lib and object build
\temp.win32-2.6\Release\spacemouse.exp
mt.exe -nologo -manifest build\temp.win32-2.6\Release\spacemouse.pyd.manifest -o
utputresource:build\lib.win32-2.6\spacemouse.pyd;2
error: command 'mt.exe' failed: No such file or directory

0

#29 User is offline   FrankFirsching Icon

  • Initiate
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 21-February 03
  • Location:Munich, Germany
  • Name:Frank
  • Firsching

Posted 11 November 2009 - 10:56 AM

Well I'm using the Windows SDK 6, which corresponds to Visual Studio 2005 (used by SideFX to build Houdini). I currently don't have SDK 7 installed to test it. The error I see in your log is, that the manifest (mt.exe) tool isn't found. This usually should be found in the path, but SDK 7 might have changed that? You could try to add the path to mt.exe in the build.bat script by hand and see if that works. Nevertheless you will have a VC8<->VC9 conflict with your plugin and houdini. It might work, it might not work. Mixing standard runtimes is a dangerous field ;-)
0

#30 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 11 November 2009 - 11:16 AM

I fix path to mt.exe and build it again

C:\spacemouse_0.1\native>build
running build
running build_ext
building 'spacemouse' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\ext\soft\Python264\include -IC:\ext\soft\Python264\PC
 /Tpspacemouse.cpp /Fobuild\temp.win32-2.6\Release\spacemouse.obj /EHsc
spacemouse.cpp
creating build\lib.win32-2.6
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\ext\soft\Python264\libs /LIBPATH:C:\ext\soft\Python2
64\PCbuild /EXPORT:initspacemouse build\temp.win32-2.6\Release\spacemouse.obj /O
UT:build\lib.win32-2.6\spacemouse.pyd /IMPLIB:build\temp.win32-2.6\Release\space
mouse.lib /MANIFESTFILE:build\temp.win32-2.6\Release\spacemouse.pyd.manifest
   Creating library build\temp.win32-2.6\Release\spacemouse.lib and object build
\temp.win32-2.6\Release\spacemouse.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0\bin\mt.exe -nologo -manifest
build\temp.win32-2.6\Release\spacemouse.pyd.manifest -outputresource:build\lib.w
in32-2.6\spacemouse.pyd;2


no errors?
than I create new button in shell with script

import sys
navigatorPath = "C:\spacemouse_0.1"
if not navigatorPath in sys.path:
  sys.path.append(navigatorPath)
import hou_navigator
hou_navigator.start()


when I click it I get this message:

Traceback (most recent call last):
  File "tool_1", line 5, in <module>
  File "C:\spacemouse_0.1\hou_navigator.py", line 173, in <module>
    import spacemouse
ImportError: No module named spacemouse


line 173:
nativePath = "C:\spacemouse_0.1\native\build\lib.win32-2.5"

This post has been edited by Mikx: 11 November 2009 - 11:18 AM

0

#31 User is offline   FrankFirsching Icon

  • Initiate
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 21-February 03
  • Location:Munich, Germany
  • Name:Frank
  • Firsching

Posted 11 November 2009 - 11:45 AM

Your line specifying nativePath is wrong. You build against python-2.6, so the native module will be placed in "C:\spacemouse_0.1\native\build\lib.win32-2.6". Additionally it's better to use forward slashes for the path (or use double backslashes to escape them), because some (e.g. \n) have a special meaning (e.g. newline). So your line should look like:
nativePath = "C:/spacemouse_0.1/native/build/lib.win32-2.6"

Hope that helps ;-)
0

#32 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 11 November 2009 - 11:49 AM

Traceback (most recent call last):
  File "tool_1", line 5, in <module>
  File "C:\spacemouse_0.1\hou_navigator.py", line 173, in <module>
    import spacemouse
ImportError: Module use of python26.dll conflicts with this version of Python.


:(
0

#33 User is offline   FrankFirsching Icon

  • Initiate
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 21-February 03
  • Location:Munich, Germany
  • Name:Frank
  • Firsching

Posted 11 November 2009 - 12:05 PM

Ok, seems you will need a Python2.5 installation. And perhaps you should switch win WinSDK6, too. Otherwise you might get random crashes. Mixing versions is never a good idea. You should stick to the specs made by Houdini. Don't give up.
0

#34 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 11 November 2009 - 01:07 PM

View PostFrankFirsching, on 12 November 2009 - 01:05 AM, said:

And perhaps you should switch win WinSDK6, too.

I can't find it
and I'm not sure is it fine to install sdk 6.0 on windows 7?

This post has been edited by Mikx: 11 November 2009 - 01:13 PM

0

#35 User is offline   FrankFirsching Icon

  • Initiate
  • PipPip
  • Group: Members
  • Posts: 199
  • Joined: 21-February 03
  • Location:Munich, Germany
  • Name:Frank
  • Firsching

Posted 12 November 2009 - 02:30 PM

View PostMikx, on 11 November 2009 - 10:07 PM, said:

I can't find it
and I'm not sure is it fine to install sdk 6.0 on windows 7?

You can find WinSDK6 here: http://www.microsoft...&displaylang=en
Here's also a helpfull site (it lists all available Windows SDKs): http://msdn.microsof...s/bb980924.aspx

I don't know what could prohibit installing WinSDK6 on Windows 7.
0

#36 User is offline   Mikx Icon

  • Peon
  • Pip
  • Group: Members
  • Posts: 10
  • Joined: 08-November 09
  • Gender:Male
  • Name:Mike
  • FX

Posted 12 November 2009 - 06:51 PM

View PostFrankFirsching, on 13 November 2009 - 03:30 AM, said:

You can find WinSDK6 here: http://www.microsoft...&displaylang=en

I download it
Reinstall the Windows
Install Python 2.5
Install WinSDK6

try to build and again get this:
running build
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.

0

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users