Forums
scons wrapper - src/vdrift.i is static and is... - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5)
+--- Thread: scons wrapper - src/vdrift.i is static and is... (/showthread.php?tid=1080)



scons wrapper - src/vdrift.i is static and is... - Baer - 02-27-2009

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...?


- joevenzon - 02-27-2009

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.


- Baer - 03-02-2009

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>;



- joevenzon - 03-02-2009

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.