我想使用“将 Linux Ubuntu PC 上的 C 代码交叉编译到 Beagle Bone Blackarm-cortexa8-linux-gnueabihf-gcc编译器。
但我面临以下错误:
root@ubuntu:/home/teqlinux/HMI_SCADA/GenLogic/glg_bb/glg/examples_c_cpp/misc/Blinking# make -f makefile
( /home/teqlinux/Phytec_Wega/ToolChain/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabihf-gcc -L/home/teqlinux/HMI_SCADA/GenLogic/glg_bb/glg/lib -L. -o GlgBlinkingExampleG GlgBlinkingExampleG.o \
-lglg_int -lglg -lglg_map_stub \
-lXm -lXt -lX11 \
-lXft -lfontconfig -lfreetype -lz -ljpeg -lpng \
-lm -ldl -lpthread \
|| ( rm GlgBlinkingExampleG ; exit 1 ) )
/home/teqlinux/Phytec_Wega/ToolChain/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/arm-cortexa8-linux-gnueabihf-gcc: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
rm: cannot remove 'GlgBlinkingExampleG': No such file or directory
makefile:127: recipe for target 'GlgBlinkingExampleG' failed
make: *** [GlgBlinkingExampleG] Error 1