compilation error in Linux 64bit

mauri

31-08-2010 16:50:32

Hi all,
I am completely new to this so please be patient. I installed the PhysX SDK 2.8.1 on my Ubuntu 64bit system and I tested the included samples which run fine.
I got the latest NxOgre from git and I used the diff file found here. I opened the workspace in c::b and I added the -m32 flag and I tried to compile but unfortunately the compilation terminates with an error : ld cannot find -lPhysXLoader bot for Linux Release and Linux Debug configurations.

Any idea what am I doing wrong and how to fix it? any help is very much appreciated.
Cheers

mauri

03-09-2010 12:05:17

OK fixed. it may be silly but just in case anyone else bumps into this problem here is the solution that may save you a few hours :roll: :
go to projects build options in c::b and select Debug Linux (then repeat the same for Release Linux). In the linker settings you'll find the link libraries box which contains PhysXLoader, NxCooking and pthread. Click on PhysXLoader and edit. Replace with the full location of libPhysXLoader.so (in my case it was in /usr/lib/libPhysXLoader.so).
Then it'll compile.
Cheers

mauri

04-09-2010 15:35:00

I obviously talked too soon eheheh. When it comes to linking the libraries I get:

-------------- Build: Debug Linux in NxOgre ---------------

Linking dynamic library: ../linux/lib/NxOgre_Debug.so
/usr/lib/libPhysXLoader.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


Is there anyone who has been able to compile on 64 bit linux??
cheers