Hi Ben and everybody,
I have just built vtp-src-081224 on Slackware 12.2 Linux.
When I start Enviro I have a similar problem to that of Levi Swartzentruber on Nov 20 2008:
"the view is always rotating to the left in a circular motion".
(See his message http://tech.groups.yahoo.com/group/vtp-unix/message/782 ).
Then as soon as I click the Enviro window with the mouse I get a segfault, attached below.
But I don't have a joystick. How to tell Enviro not to look for it?
(This problem was noted in the changelog back in 2006 on 06.09.22
"Enviro: fixed spinning camera when joystick not found" http://www.vterrain.org/Implementation/ChangeLog/2006.htm )
I have tried recompiling wxGTK-2.8.4 without a joystick:
../configure --enable-unicode --with-opengl --prefix=/home/dad/wxGTK2.8.4 --disable-joystick
but then Enviro won't compile:
/space/vtp-20090425/VTP/TerrainApps/Enviro/wx/bitmap/view_profile.xpm:42: warning: deprecated conversion from string constant to 'char*'
wx/EnviroGUI.cpp: In constructor 'vtJoystickEngine::vtJoystickEngine()':
wx/EnviroGUI.cpp:362: error: invalid use of incomplete type 'struct wxJoystick'
wx/EnviroGUI.h:20: error: forward declaration of 'struct wxJoystick'
wx/EnviroGUI.cpp:363: error: invalid use of incomplete type 'struct wxJoystick'
wx/EnviroGUI.h:20: error: forward declaration of 'struct wxJoystick'
wx/EnviroGUI.cpp:365: warning: possible problem detected in invocation of delete operator:
wx/EnviroGUI.cpp:365: warning: invalid use of incomplete type 'struct wxJoystick'
wx/EnviroGUI.h:20: warning: forward declaration of 'struct wxJoystick'
wx/EnviroGUI.cpp:365: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
wx/EnviroGUI.cpp: In member function 'virtual void vtJoystickEngine::Eval()':
wx/EnviroGUI.cpp:379: error: invalid use of incomplete type 'struct wxJoystick'
wx/EnviroGUI.h:20: error: forward declaration of 'struct wxJoystick'
wx/EnviroGUI.cpp:380: error: invalid use of incomplete type 'struct wxJoystick'
wx/EnviroGUI.h:20: error: forward declaration of 'struct wxJoystick'
make: *** [wx/EnviroGUI.o] Error 1
make: *** Waiting for unfinished jobs....
Any thoughts welcome.
Cheers,
Peter
SetupTerrain step 10
SetMessage: 'Welcome to Severn'
seconds since app start: 0.85
Changing app state from AS_SwitchToTerrain to AS_Terrain
Realize toolbar.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb1f0ab90 (LWP 15590)]
0xb7a42cfc in wxEvtHandler::AddPendingEvent () from /home/dad/wxGTK2.8.4/lib/libwx_baseu-2.8.so.0
(gdb) bt
#0 0xb7a42cfc in wxEvtHandler::AddPendingEvent () from /home/dad/wxGTK2.8.4/lib/libwx_baseu-2.8.so.0
#1 0xb7e9fad5 in wxJoystickThread::Entry () from /home/dad/wxGTK2.8.4/lib/libwx_gtk2u_adv-2.8.so.0
#2 0xb7a41388 in wxThreadInternal::PthreadStart () from /home/dad/wxGTK2.8.4/lib/libwx_baseu-2.8.so.0
#3 0xb7a413e9 in wxPthreadStart () from /home/dad/wxGTK2.8.4/lib/libwx_baseu-2.8.so.0
#4 0xb6650369 in start_thread () from /lib/libpthread.so.0
#5 0xb65d3cfe in clone () from /lib/libc.so.6
(gdb)