Box2D Forums

It is currently Tue May 21, 2013 11:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: cannot find -lBox2d
PostPosted: Sun Nov 04, 2012 6:04 am 
Offline

Joined: Sun Nov 04, 2012 5:53 am
Posts: 4
I am trying to compile the helloworld and testbed box2d projects using the qnx blackberry ide, c++.

I have added the box2d library as a reference in my project so it is finding all the box2d files for importing.

the box2d library is building good for the bb dev alpha simulator.

I am getting the error:
cannot find -lBox2d in helloworld. (problems area in qnx) No line number.

then:
skipping incompatible C:\----------\Box2D\Simulator-Profile\libBox2D.a when searching for -lBox2D
HelloWorld C/C++ Problem



i haven't changed anything on the helloworld or testbed. straight from github.

using windows 7 64bit.

any ideas? i cannot find anything on these forums on this and on google.....


Top
 Profile  
 
 Post subject: Re: cannot find -lBox2d
PostPosted: Sun Nov 04, 2012 7:52 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1515
Location: Tokyo
'Incompatible' probably means that the file is not built for the same architecture you are compiling for.
I have seen this when mixing libs between 32-bit and 64-bit platforms, and I would not be surprised that the blackberry has a different architecture to both of these. If you downloaded the libBox2D.a file from somewhere or built it for a target other than blackberry, I guess you'll have to compile it with different settings to make sure it can link with the rest of your compiled files.


Top
 Profile  
 
 Post subject: Re: cannot find -lBox2d
PostPosted: Sun Nov 04, 2012 9:19 am 
Offline

Joined: Sun Nov 04, 2012 5:53 am
Posts: 4
hmmm.... will try it out.

I am running windows 64-bit.


Top
 Profile  
 
 Post subject: Re: cannot find -lBox2d
PostPosted: Sun Nov 04, 2012 9:33 am 
Offline

Joined: Sun Nov 04, 2012 5:53 am
Posts: 4
ok, not getting through.

the version of box2d i downloaded, which i imported into the qnx eclipse ide, is found at:

https://github.com/blackberry/Box2D

is there another build of box2d i should use?

I am not seeing anywhere in eclipse to build as 32bit or 64bit.

How can i do this?

thanks again.


Top
 Profile  
 
 Post subject: Re: cannot find -lBox2d
PostPosted: Sun Nov 04, 2012 1:44 pm 
Offline

Joined: Sun Nov 04, 2012 5:53 am
Posts: 4
Ok, i think i got it to build when choosing the device option only.

it's giving the error when you are building for the simulator. (makes no sense to me).

i don't have a device though, and the samples that come with the bb bnk compiled fine on the simulator.

so....to summarize....

-- box2d building for simulator or device.
-- testbed and helloworld not building for simulator, building for device...giving same error

i guess i will have to get a playbook.....dammit!!!! lol


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group