[flext] recompile with -fPIC

Max abonnements at revolwear.com
Mon Apr 7 09:20:22 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To reply to myself and the archive:
the problem was a path in the flext scripts pointing to a file in the
home directory
~/directory/... was not working, instead it had to be
/home/user/directory
guess the flext script was confused about the tilde.

m.


On 2014? 01? 25? 07:28, Max wrote:
> 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? _______________________________________________ 
> http://grrrr.org/ext/flext
> 
> flext mailing list flext at grrrr.org 
> http://grrrr.org/cgi-bin/mailman/listinfo/flext
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlNCbdYACgkQ3EB7kzgMM6JRHQCfYncPiiEOeL1ayqUYOYRd4l2e
kggAn2NB4SopAtZMnoQ8AH54BMqWDu8/
=B1dO
-----END PGP SIGNATURE-----


More information about the flext mailing list