Hi
I'm intrested in the 2008 refactor (I hope we do not get a 2009, 2010, ..., refactorings) so I tried it out.
After some fiddling with SConscript (to remove the libbulletcollision) and src/pathmanager.cpp (to hardcodde "data") it compiled and started to run somewhat.
It segfaulted
Quote:nathan@gamma:~/Documenten/bronnen/vdrift-branch$ ./build/vdrift
Starting VDrift: development-full, 2029M
Home directory: /home/nathan
Settings file: /home/nathan/.vdrift/VDrift.config
Data directory: data
ALSA lib pcm_dmix.c:874snd_pcm_dmix_open) unable to open slave
SDL initialization successful
Segmentatiefout
A ran it with GDB and got the following output:
Quote:Starting program: /home/nathan/Documenten/bronnen/vdrift-branch/build/vdrift
[Thread debugging using libthread_db enabled]
Starting VDrift: development-full, 2029M
Home directory: /home/nathan
Settings file: /home/nathan/.vdrift/VDrift.config
Data directory: data
[New Thread 0x7fb6b31626f0 (LWP 8726)]
ALSA lib pcm_dmix.c:874snd_pcm_dmix_open) unable to open slave
SDL initialization successful
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb6b31626f0 (LWP 8726)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00000000004487c1 in OPENGL_UTILITY::CheckForOpenGLErrors (
activity_description=@0x7fffbb18de20, error_output=@0x694cc0)
at src/opengl_utility.cpp:5
#2 0x000000000042a2f5 in GRAPHICS_SDLGL::Init (this=0x7fffbb18e078,
texturepath=@0x7fffbb18dff0, shaderpath=@0x7fffbb18dfe0, resx=800,
resy=600, bpp=16, depthbpp=24, fullscreen=false, shaders=false,
info_output=@0x694ac0, error_output=@0x694cc0) at src/graphics.cpp:44
#3 0x000000000041dcdd in GAME::Start (this=0x7fffbb18e050,
args=@0x7fffbb18e520) at src/game.cpp:41
#4 0x000000000043e8ac in main (argc=1, argv=0x7fffbb18e638) at src/main.cpp:21
Removing the code in the function OPENGL_UTILITY::CheckForOpenGLErrors made the game run and work (I could start a practice race, the only thing I could do their was moving my point of view, driving etc didn't work but I guess that is Not Yet (Re)Implemented).
So any idea why VDrift is crashing?