FrankFirsching Posted October 31, 2009 Author Share Posted October 31, 2009 I must admit, that HouNavigator was a bit neglected in the last months, but some things had happened: I tried to implement a linux version of the script. I'm having problems merging the 2 mainloops needed for the 3dconnexion device driver (at the time houdini is calling the event loop callback, the magellan events already seem to be removed from the queue). So here is a question for you linux users out there: Would it be ok, if HouNavigator built on top of the opensource driver Spacenav (http://spacenav.sourceforge.net/index.html)? This one doesn't need an X11 event loop to deliver information from the device and therefore it looks more promising for a plugin approach. Quote Link to comment Share on other sites More sharing options...
DaJuice Posted November 1, 2009 Share Posted November 1, 2009 Hay Frank, I don't see why not. I stumbled upon that project when I was checking out the 3dconnexion forum and looking into the functionality of these things on linux. Apparantly it's a lot nicer than 3dconnexion's own implementation. Good luck! Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 8, 2009 Share Posted November 8, 2009 (edited) Hello Frank! I download your spacemouse_0.1.zip and find that there is no line breaks in text files (readme.txt, build.bat, etc) Therefore it's realy hard to read and edit it. Moreover I am new to Houdini, Python and English How I can restore line breaks in your text files? Edited November 8, 2009 by Mikx Quote Link to comment Share on other sites More sharing options...
edward Posted November 8, 2009 Share Posted November 8, 2009 The reason is probably because you're using an incompetent text editor that doesn't understand Unix style line endings. Use cream to view the text files. You can also use it to convert to DOS line endings if you wish but then why bother. 1 Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 8, 2009 Share Posted November 8, 2009 Thanks edward! I used a standard notepad in windows 7 And now with cream I can read this files thanks again! Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 8, 2009 Share Posted November 8, 2009 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? Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 10, 2009 Author Share Posted November 10, 2009 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. Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 11, 2009 Share Posted November 11, 2009 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 Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 11, 2009 Author Share Posted November 11, 2009 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 ;-) Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 11, 2009 Share Posted November 11, 2009 (edited) 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" Edited November 11, 2009 by Mikx Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 11, 2009 Author Share Posted November 11, 2009 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 ;-) Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 11, 2009 Share Posted November 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 11, 2009 Author Share Posted November 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 11, 2009 Share Posted November 11, 2009 (edited) 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? Edited November 11, 2009 by Mikx Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 12, 2009 Author Share Posted November 12, 2009 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.com/downloads/details.aspx?FamilyID=4377F86D-C913-4B5C-B87E-EF72E5B4E065&displaylang=en Here's also a helpfull site (it lists all available Windows SDKs): http://msdn.microsoft.com/en-us/windows/bb980924.aspx I don't know what could prohibit installing WinSDK6 on Windows 7. Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 13, 2009 Share Posted November 13, 2009 You can find WinSDK6 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=4377F86D-C913-4B5C-B87E-EF72E5B4E065&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. Quote Link to comment Share on other sites More sharing options...
FrankFirsching Posted November 13, 2009 Author Share Posted November 13, 2009 Where did you get your python installation from? I'm using the 64bit release from here: http://www.python.org/download/releases/2.5.4/ The problem now is, that your python seems to be built using Visual Studio 2003 (VC7), but WinSDK6 (that is needed for Houdini) is VC8. Again a version conflict . What's the output of python.exe if you start the interactive shell? Mine is: Python 2.5.4 (r254:67916, Dec 23 2008, 15:19:34) [MSC v.1400 64 bit (AMD64)] on win32 Here MSC v.1400 corresponds with the compiler version. You can query the compiler version by calling "cl.exe --version". Here is my output: Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64 I just noticed, that H10 is shipping with the python headers, so you should be able to use the python installation from there (%HFS%\python). Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 14, 2009 Share Posted November 14, 2009 (edited) Where did you get your python installation from? I download python-2.5.4.msi from there What's the output of python.exe if you start the interactive shell? Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 You can query the compiler version by calling "cl.exe --version". Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64 I just noticed, that H10 is shipping with the python headers, so you should be able to use the python installation from there you mean add to build.bat a path to Houdini\v10.0.430\python\bin\python2.5.exe ? Edited November 14, 2009 by Mikx Quote Link to comment Share on other sites More sharing options...
edward Posted November 14, 2009 Share Posted November 14, 2009 Mikx, if you look at your version numbers vs Frank's, then clearly you have *both* the wrong python build AND wrong compiler build. Quote Link to comment Share on other sites More sharing options...
Mikx Posted November 15, 2009 Share Posted November 15, 2009 Mikx, if you look at your version numbers vs Frank's, then clearly you have *both* the wrong python build AND wrong compiler build. yes I know.... But I download Python 2.5.4 from here from here: http://www.python.org/download/releases/2.5.4/ and Windows SDK 6 from here You can find WinSDK6 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=4377F86D-C913-4B5C-B87E-EF72E5B4E065& Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.