View previous topic :: View next topic |
Author |
Message |
hduregger
Joined: 15 Aug 2007 Posts: 11
|
Posted: Wed Aug 15, 2007 5:24 am Post subject: Attempting to bind Bullet Physics Engine on Linux |
|
|
Hello [D]isciples!
I am totally new to bcd.gen and linkage in general so please be patient.
I am trying to create C/D bindings to the C++ API of the Bullet Physics engine.
I've build/installed bcd from source, installed the cvs version of gccxml and the newest libxml2 (it is packaged in Ubuntu Gutsy).
Then I downloaded the Bullet sources and did
Code: |
$ export CXXFLAGS="$CXXFLAGS -Ipath/to/bullet/src"
$ bcdgen btBulletCollisionCommon.h bt -A -r -I../../
$ bcdgen btBulletDynamicsCommon.h bt -A -r -I../../
|
Which generates two huge .cc files (with the relative #includes provided above) and the corresponding .d files.
But it also outputs a lot of
Code: |
I don't know how to parse Converter!
I don't know how to parse OperatorFunction!
|
lines.
I searched the web and found out that
Code: |
writefln("I don't know how to parse %s!", nname);
|
is part of bcd.gen/bcd/gen/bcdgen.orig.d.
By looking into the corresponding out.xml files that where created I found out that part of these error messages are caused by operator overloadings in C++.
Now my questions are:
1. Was my general approach correct and/or what additional options should I use?
2. Will these errors probably cripple the Bullet Physics engine because it might need the operator overloadings internally?
3. How will I include the new bindings into my application? Do I import the .d file and add the .cc file to the compile command? |
|
Back to top |
|
|
hduregger
Joined: 15 Aug 2007 Posts: 11
|
Posted: Mon Aug 27, 2007 3:38 am Post subject: |
|
|
2nd attempt:
------------
Code: |
$ export CXXFLAGS="$CXXFLAGS -I/path/to/bullet/src/"
$ bcdgen btBulletCollisionCommon.h bt -I../../
$ bcdgen btBulletDynamicsCommon.h bt -I../../
|
Got no errors this time, but a "public import bcd.bt.internal>;" which is an error
and without the ">" it can't be found.
I'll keep you updated. |
|
Back to top |
|
|
|