我正在尝试使用yocto工具链交叉编译jrxtx库(https://github.com/openmuc/jrxtx),但是失败。
第一
source /opt/poky/environment-setup-cortexa8t2hf-vfp-neon-poky-linux-gnueabi
然后
cd /home/peppe/projects/rxtx/jrxtx/native && ./BUILD.sh
我不得不手动修改config.status才能删除mv和rm上的一些错误,但是我得到了
/bin/bash /home/peppe/projects/rxtx/jrxtx/native/libtool --mode=link arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/opt/poky/sysroots/cortexa8t2hf-vfp-neon-poky-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -D_POSIX_SOURCE -D_BSD_SOURCE -D__need_timespec -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lpthread -release 2.2pre1 -o librxtxSerial.la -rpath /usr/lib/jvm/java-11-openjdk-amd64/jre/lib/amd64 /home/peppe/projects/rxtx/jrxtx/native/x86_64-unknown-linux-gnu/SerialImp.lo; \
fi; \
)
/bin/bash: line 2: cd: x86_64-unknown-linux-gnu: No such file or directory
/bin/bash: /home/peppe/projects/rxtx/jrxtx/native/libtool: No such file or directory
/bin/bash: /home/peppe/projects/rxtx/jrxtx/native/libtool: No such file or directory
/bin/bash: /home/peppe/projects/rxtx/jrxtx/native/libtool: No such file or directory
make: *** [Makefile:756: x86_64-unknown-linux-gnu/librxtxSerial.la] Error 127
即使它似乎启动了正确的编译器arm-poky-linux-gnueabi-gcc
,也尝试将其装入cd x86_64-unknown-linux-gnu
,但显然情况令人发疯...