Cross compiling: cannot find -lx11 - Raspberry Pi Forums
hi,
i'm new cross compiling (and raspberry pi). have managed basic applications compiling using raspberry pi tools (https://github.com/raspberrypi/tools). compiling , working fine. i'm starting use cimg library uses x11. i'm compiling natively in linux on pc using:
works great. when try compile pi using arm-bcm2708-linux-gnueabi-g++ same flags, error:
don't know flags trying find problem proving difficult. assume need libx11.a/so raspberry pi? pointers great
i'm new cross compiling (and raspberry pi). have managed basic applications compiling using raspberry pi tools (https://github.com/raspberrypi/tools). compiling , working fine. i'm starting use cimg library uses x11. i'm compiling natively in linux on pc using:
code: select all
g++ -o native-cimg-test "cimg_test.cpp" -o2 -l/usr/x11r6/lib -lm -lpthread -lx11code: select all
/home/will/pi/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/../lib/gcc/arm-bcm2708-linux-gnueabi/4.7.1/../../../../arm-bcm2708-linux-gnueabi/bin/ld: cannot find -lx11 collect2: error: ld returned 1 exit status make: *** [cimg-pi] error 1
hey,
solved problem using pi self.
run on pi , copy /usr/lib/* toolchains library path (usually ./sysroot/lib/) , /usr/include/* include directory of toolchain.
hope helps you
cheers
solved problem using pi self.
run
code: select all
sudo apt-get install libx11-dev hope helps you
cheers
raspberrypi
Comments
Post a Comment