Applications by linux-users
Moderator: Moderators
Applications by linux-users
Is there anyone out there who has made applications in linux for the space navigator? It would be nice to hear from anyone who atleast have tried
Hi Absum,
have you had a look to our SDK for Unix/Linux? If you want to work with it I can send you some documentation for it.
Uta
3Dconnexion
have you had a look to our SDK for Unix/Linux? If you want to work with it I can send you some documentation for it.
Uta
3Dconnexion
Thanks some documentation would really be helpfull, I seem to be stuck at the moment trying to initialize the SDK/driver.
even tho the call is MagellanInit(xd, xw)
Code: Select all
include/xdrvlib.h:68: error: too many arguments to function 'int MagellanInit()'
include/BaseFrameListener.h:145: error: at this point in file
Please try this:
add the following lines to xdrvlib.h
or in case you did not #define LINUX only this
add the following lines to xdrvlib.h
Code: Select all
#ifdef LINUX
#define ParameterCheck
#endif
Code: Select all
#define ParameterCheck
Code: Select all
g++ -o bin/release/main src/main.o include/xdrvlib.o -L. -lOgreMain -lOIS -lX11
src/main.o: In function `BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)':
main.cpp:(.text._ZN17BaseFrameListener13setupSpaceNavEP9_XDisplaym[BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)]+0x15): undefined reference to `MagellanInit(_XDisplay*, unsigned long)'
Code: Select all
scons
scons: Reading SConscript files ...
Checking for C++ header file Ogre.h... (cached) yes
Checking for C++ header file OISPrereqs.h... (cached) yes
Checking for C library OgreMain... (cached) yes
Checking for C library OIS... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o bin/main.o -c -Wall -Iinclude -I/usr/include/OGRE -I/usr/include/OIS src/main.cpp
include/xdrvlib.h:93: warning: 'int MagellanErrorHandler(Display*, XErrorEvent*)' declared 'static' but never defined
g++ -o bin/main bin/main.o src/xdrvlib.o -L. -lOgreMain -lOIS
bin/main.o: In function `BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)':
main.cpp:(.text._ZN17BaseFrameListener13setupSpaceNavEP9_XDisplaym[BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)]+0x15): undefined reference to `MagellanInit(_XDisplay*, unsigned long)'
collect2: ld returned 1 exit status
scons: *** [bin/main] Error 1
scons: building terminated because of errors.
Code: Select all
scons
scons: Reading SConscript files ...
Checking for C++ header file Ogre.h... (cached) yes
Checking for C++ header file OISPrereqs.h... (cached) yes
Checking for C library OgreMain... (cached) yes
Checking for C library OIS... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
g++ -o bin/main.o -c -Iinclude -I/usr/include/OGRE -I/usr/include/OIS src/main.cpp
gcc -o include/xdrvlib.o -c include/xdrvlib.c
ar rc src/libxdrvlib.a include/xdrvlib.o
ranlib src/libxdrvlib.a
g++ -o bin/main bin/main.o -L. -lOgreMain -lOIS src/libxdrvlib.a
bin/main.o: In function `BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)':
main.cpp:(.text._ZN17BaseFrameListener13setupSpaceNavEP9_XDisplaym[BaseFrameListener::setupSpaceNav(_XDisplay*, unsigned long)]+0x15): undefined reference to `MagellanInit(_XDisplay*, unsigned long)'
collect2: ld returned 1 exit status
scons: *** [bin/main] Error 1
scons: building terminated because of errors.
I've also created a new thread about this in the linux development forum... thought it would be more appropriate
True. This thread makes more sense in the Developer's Forum for UNIX/Linux. See here.