Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by melven » Sat Aug 23, 2008 10:01 am
With Newton2 - beta 17 I get the following error when I try to compile my project:
/usr/bin/ld: /usr/local/lib/libNewton.a(Newton.o): relocation R_X86_64_32S against `NewtonCollisionTree::GetIntersectingPolygons(dgPolygonSoupDesc&)' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libNewton.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
I use shared libraries in my project. So I think libNewton.a needs to be compiled with the -fPIC flag in linux64, or do you know another solution?
-
melven
-
- Posts: 14
- Joined: Wed Jun 25, 2008 7:21 am
by erelim » Fri Nov 14, 2008 5:37 am
No response? im getting errors like
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `../../sdk/libNewton.a(dgFile.o)' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `../../sdk/libNewton.a(dgQuaternion.o)' is incompatible with i386:x86-64 output
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `../../sdk/libNewton.a(dgConvexCollision.o)' is incompatible with i386:x86-64 output
and
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib64/libNewton.a when searching for -lNewton
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../libNewton.a when searching for -lNewton
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libNewton.a when searching for -lNewton
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libNewton.a when searching for -lNewton
any ideas?
-
erelim
-
- Posts: 1
- Joined: Fri Nov 14, 2008 5:31 am
by Julio Jerez » Fri Nov 14, 2008 10:05 am
the first quetsion was answerered in a PM.
as for your question , it looks like you are linking a 32 bit lib.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 11 guests