08-01-2014, 08:25 PM
Trying to compile pilight 5.0 (master) on a cubieboard 3 (cubietruck) with Debian installed.
I'm stuck with the following error from ld:
Similar problem mentioned here suggests building static (non shared) libraries (possibly with --disable-shared option).
Any hint how to do this?
Tobi
I'm stuck with the following error from ld:
Code:
...
[ 90%] Built target pilight
Scanning dependencies of target pilight_shared
Linking C shared library libpilight.so
/usr/bin/ld: CMakeFiles/pilight.dir/libs/pilight/mongoose.c.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/pilight.dir/libs/pilight/mongoose.c.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libpilight.so] Error 1
make[1]: *** [CMakeFiles/pilight_shared.dir/all] Error 2
make: *** [all] Error 2
Similar problem mentioned here suggests building static (non shared) libraries (possibly with --disable-shared option).
Any hint how to do this?
Tobi