[flext] recompile with -fPIC

Max abonnements at revolwear.com
Fri Jan 24 22:28:47 UTC 2014


hello flext!

trying to compile the Leapmotion external under Linux Mint 64 bit. but
following this manual for 32 bit.
http://jonghyunkim816.blogspot.de/2013/12/compiling-leapmotionpdlinux-on-ubuntu.html

I am stuck at step 5 where it says:

Pd_leapmotion$ bash ../../flext/build.sh pd gcc
make -f ../../flext/buildsys/gnumake-sub.mak  PLATFORM=lnx RTSYS=pd
COMPILER=gcc BUILDPATH=../../flext/buildsys/ PKGINFO=package.txt
BUILDCLASS=ext TARGETMODE=release TARGETTYPE=single _build_
make[1]: Entering directory `/home/max/Code/github/Pd_leapmotion'
mkdir -p pd-linux/release-single
mkdir -p pd-linux/release-single/
g++ -c  -msse -mfpmath=sse -ffast-math -DFLEXT_USE_CMEM -O3
-I/usr/include/pd -pthread -fPIC -fvisibility-inlines-hidden -DNDEBUG
-DFLEXT_SYS=2 -DPD -I~/Code/LeapDeveloperKit/LeapSDK/include
-I/Code/pd-0.45-3/src -I/Code/pd-0.45-3/include
-I/Code/pd-0.45-3/include/pd -I/usr/local/include/flext main.cpp -o
pd-linux/release-single/main.opp
mkdir -p pd-linux/release-single/
g++ -c  -msse -mfpmath=sse -ffast-math -DFLEXT_USE_CMEM -O3
-I/usr/include/pd -pthread -fPIC -fvisibility-inlines-hidden -DNDEBUG
-DFLEXT_SYS=2 -DPD -I~/Code/LeapDeveloperKit/LeapSDK/include
-I/Code/pd-0.45-3/src -I/Code/pd-0.45-3/include
-I/Code/pd-0.45-3/include/pd -I/usr/local/include/flext Dispatcher.cpp
-o pd-linux/release-single/Dispatcher.opp
g++ '-L~/Code/LeapDeveloperKit/LeapSDK/lib/x64 -lLeap' -L/usr/lib
-pthread -shared  -Wl,-S -L/Code/pd-0.45-3/bin -L/usr/local/lib -o
pd-linux/release-single/leapmotion.pd_linux
pd-linux/release-single/main.opp pd-linux/release-single/Dispatcher.opp
 -lflext-pd_s
/usr/bin/ld: /usr/local/lib/libflext-pd_s.a(libflext_pd_s_la-flbase.o):
relocation R_X86_64_32S against `_ZTV16flext_obj_single' can not be used
when making a shared object; recompile with -fPIC
/usr/local/lib/libflext-pd_s.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [pd-linux/release-single/leapmotion.pd_linux] Error 1
make[1]: Leaving directory `/home/max/Code/github/Pd_leapmotion'
make: *** [build-release-single] Error 2

any ideas?


More information about the flext mailing list