当我尝试将RXtX库添加到我的食谱中时,Bitbake给我这个错误:
"/bin/bash: /yocto/build_raspberry/tmp/work/x86_64-linux/jamvm-native/2.0.0-devel+gitAUTOINC+6cef41d859-r0/recipe-sysroot-native/usr/bin/javac: No such file or directory"
如果我检查文件夹的内容,则有一个“ javac.jikes”而不是“ java”
我尝试将“ jamvm-native”替换为“ cacao-native”,但在“ cacao”文件夹中也会发生相同的错误。
如果从配方中删除了RXTX,则所有内容都可以编译
我的local.conf包含:
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
PREFERRED_RPROVIDER_java2-runtime = "openjdk-8"
我的食谱包含:
IMAGE_INSTALL_append = " openjdk-8 rxtx "
我也尝试使用“ openjdk-8-test-image”配方并添加“ RXTX”,但结果相同。
我尝试编译“ Cacao”和“ Jamvm”,它们都不会编译。对于“可可”,我得到:# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
| md-os.cpp:41:22: error: field 'uc_mcontext' has incomplete type 'sigcontext'
| struct sigcontext uc_mcontext;
| ^~~~~~~~~~~
| md-os.cpp:41:11: note: forward declaration of 'struct sigcontext'
| struct sigcontext uc_mcontext;
| ^~~~~~~~~~
| Makefile:420: recipe for target 'md-os.lo' failed
对于Jamvm,我得到了:
/bin/bash: /yocto/build_raspberry/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/jamvm/2.0.0-devel+gitAUTOINC+6cef41d859-r0/recipe-sysroot-native/usr/bin/ecj-initial: No such file or directory