Forums

Full Version: scons wrapper - src/vdrift.i is static and is...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi v-drifters,
I am trying to get the "PyGTK Track Editor" woking. According to the README in the svn repository you've to do a

Code:
scons wrapper

Unfortunaltely, this ends up with an error on my machine.

Code:
scons: *** Source file: src/vdrift.i is static and is not compatible with shared target: build/_vdrift.so
scons: building terminated because of errors.

I made sure to have the latest repository...

Code:
tobias@holden:~/vdrift$ svn info
Path: .
URL: http://svn.vdrift.net/repos/vdrift/trunk
Repository Root: http://svn.vdrift.net/repos/vdrift
Repository UUID: f68921f7-4efc-0310-90ae-aa24c258f575
Revision: 2362
Node Kind: directory
Schedule: normal
Last Changed Author: joevenzon
Last Changed Rev: 2362
Last Changed Date: 2009-02-27 02:32:11 +0100 (Fri, 27 Feb 2009)

Code:
tobias@holden:~/vdrift/pygtk-trackeditor$ svn info
Path: .
URL: http://svn.vdrift.net/repos/vdrift-trackeditor/branches/pygtk-trackeditor
Repository Root: http://svn.vdrift.net/repos/vdrift-trackeditor
Repository UUID: f828601f-f105-0410-955a-c2823f43a0c2
Revision: 73
Node Kind: directory
Schedule: normal
Last Changed Author: rookie1
Last Changed Rev: 67
Last Changed Date: 2008-04-28 15:23:18 +0200 (Mon, 28 Apr 2008)

Do I have to check out a branch or something...?
The VDrift source code was recently rewritten, and because the wrapper was based on the old code, it's broken. I've been meaning to fix it, but I don't have much experience with SWIG so it would take me a while.
After googeling the error message for a bit I figured out that I should install the SWIG package.... Hmm...
Anyway, it took me to the next error - unfortunately.

Code:
scons: done reading SConscript files.
scons: Building targets ...
swig -o build/vdrift_wrap.cc -c++ -python src/vdrift.i
src/vdrift.i:22: Error: Unable to find 'include/bipointer.h'
src/vdrift.i:25: Error: Unable to find 'include/3dmath.h'
src/vdrift.i:28: Error: Unable to find 'include/objects.h'
src/vdrift.i:29: Error: Unable to find 'include/physics.h'
src/vdrift.i:30: Error: Unable to find 'include/vamosworld.h'
scons: *** [build/vdrift_wrap.cc] Error 1
scons: building terminated because of errors.

It seems, that the header list in the vdrift.i file isn't up to date. I tried to replace all the header filenames in the vdrift.i file with the current ones.
However, I did not really have luck, since the SWIG compiler doesn't like the "BIPOINTER" anymore...

Code:
%template(DRAWABLE_BIPOINTER) BIPOINTER<DRAWABLE>;
BIPOINTER isn't used anymore in the refactor... it will take a little bit of work to update the track editor for the refactored code.