FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Attempting to bind Bullet Physics Engine on Linux

 
Post new topic   Reply to topic     Forum Index -> BCD
View previous topic :: View next topic  
Author Message
hduregger



Joined: 15 Aug 2007
Posts: 11

PostPosted: Wed Aug 15, 2007 5:24 am    Post subject: Attempting to bind Bullet Physics Engine on Linux Reply with quote

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
View user's profile Send private message
hduregger



Joined: 15 Aug 2007
Posts: 11

PostPosted: Mon Aug 27, 2007 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> BCD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group