我正在尝试对使用libcurl共享库的另一个共享库(libtheirstuff.so)交叉编译我自己的共享库(libmystuff.so),并得到以下错误:
libmystuff.so: No symbol version section for versioned symbol
'curl_global_init@@CURL_OPENSSL_3'
然后是:
final link failed: Nonrepresentable section on output.
浏览一下创建库的代码,我可以看到curl_global_init是对curl的第一个引用。
在目标平台(arm
构建ARM体系结构的程序盒
面对错误的:
> In file included from include/libbb.h:13:0,
> from include/busybox.h:8,
> from applets/applets.c:9: include/platform.h:157:11: fatal error: byteswap.h: No such file or directory # include
> <byteswap.h>
> ^~~~~
我正在使用arm-none-eabi (Debian的包)头来编译一个包含ARM (特别是Cortex-M3)的arm-none-eabi文件。该命令是:
clang -I/usr/lib/gcc/arm-none-eabi/4.8/include \
-target arm-none-eabi cfile.c -o cfile.o
(为了简单起见,-mcpu,-mfpu,-mfloat-abi都被忽略了)
返回一个错误:
In file included from cfile.c:1:
In file included from ./cfile.h:4:
In file includ
因此,我试图编译英特尔的TBB C++库,它支持程序中的并行性。我特别需要它来使用C++ reactive,它是一个库,它为我正在执行的项目提供反应库(例如异步循环)。
我已经想出了如何为Raspberry Pi 2编译它,但我的问题是,我看到的指南只更新了ARM-7a架构。
目前,当我试图创建一个使用TBB作为依赖项的构建时,我会得到以下错误:
In file included from /home/pi/tbb43_20150611oss/include/tbb/tbb_machine.h:247:0,
from /home/pi/tbb43_20150611os
我正在尝试用工具集构建zlib。作为构建过程的一部分,源文件应该被编译成带有arm-linux-gnu-eabi-gcc -c的对象,然后用libtool组合成一个归档文件,但是libtool失败了,并抱怨每个.o文件都传递给它is not an object file (not allowed in a library)。
经过检查,我发现arm-linux-gnu-eabi-gcc -c正在生成ELF文件,而不是对象文件,这是我以前从未见过的。当我将-c -v传递给编译器时,我可以看到链接器没有被调用。那么为什么是ELF格式呢?
然后,我尝试调用arm-linux-gnu-eabi-gcc
我试图在Ubuntu上安装gcc-4.7-multilib-arm-linux-gnueabihf,但得到了以下错误:
Reading package lists… Done Building dependency tree Reading state
information… Done E: Unable to locate package
gcc-4.7-multilib-arm-linux-gnueabihf E: Couldn’t find any package by
glob ‘gcc-4.7-multilib-arm-linux-gnueabihf’ E: Couldn’t fi
我正在尝试安装Tensorflow Lite在Raspberry Pi零W。我遵循的步骤,从官方网站()。但我得到以下错误消息:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /home/pi/toolchains/arm-rpi-linux-gnueabihf/x64-gcc-6.5.0/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-gc
我无法让CMake找到带有Linaro ARM工具链的线程(我已经尝试过几个不同的线程)。以下是我所做的:
下载并解压缩到/opt。
下载了相应的sysroot并解压缩到~/sysroot
我创建了一个工具链-Linaro-arm.cmake文件,如下所示:
set (CMAKE_SYSTEM_NAME Linux)
include (CMakeForceCompiler)
我试图为nrf52840 armgcc构建nrfsdk,运行make会给出以下错误。
su@su-desktop:~/nRF/nRF5_SDK_17.1.0_ddde560/examples/peripheral/template_project/pca10056/blank/armgcc$ make
/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: cannot open @@P�@8: No such file
/home/su/gcc-arm-none-eabi/bin/arm-none-eabi-gcc: 1: Syntax er
我正在对ubuntu20.04进行交叉编译。但是在我的arm平台上出现了一个错误的"/libm.so.6: version GLIBC_2.27' not found" when run it on my arm platform. I install gcc-9-arm-linux-gnueabihf on ubuntu 20.04 and there is GLIBC_2.24“。
那么,我如何安装gcc-5臂-linux-gnueabihf下的ubuntu 20.04女巫源代码是在ubuntu 16.04。或者,如何在ubuntu 20.04上为gcc-9 ar
在x86上执行交叉编译,目标平台是armhf。当我运行命令apt-get install -y gcc-arm-linux* g++-arm-linux*时,它会安装4.11.2.0版本,输出如下
g++-arm-linux-gnueabi is already the newest version (4:11.2.0-1ubuntu1).
g++-arm-linux-gnueabihf is already the newest version (4:11.2.0-1ubuntu1).
gcc-arm-linux-gnueabi is already the newest vers
我希望能够在C中使用sqlite3功能,我最近从sqlite3网站下载了sqlite3合并,并编译了它以获得sqlite3.so,因此将其包含在我的项目中。我已经包含了我认为是编译代码所必需的库,但是我总是遇到同样的错误。链接器似乎在寻找错误的文件夹中的-lsqlite3和我找不到这个指定的路径在任何地方的任何项目属性,它似乎也不是一个有效的位置在我的电脑!下面是我试图编译代码时的输出。如果我愚蠢地错过了任何需要帮助的东西,请告诉我,在使用eclipse时,我是个初学者。
16:21:03 **** Build of configuration Debug for project SQLite