[ 97%] Building CXX object radio/src/CMakeFiles/firmware.dir/targets/common/arm/stm32/flysky_gimbal_driver.cpp.obj
[ 97%] Building C object radio/src/CMakeFiles/firmware.dir/syscalls.c.obj
[ 98%] Building CXX object radio/src/CMakeFiles/firmware.dir/cli.cpp.obj
[ 98%] Linking CXX executable ../../firmware.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL24stbi__de_iphone_flag_set lma 0x815a8fc adjusted to 0x815a900
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL26stbi__de_iphone_flag_local lma 0x815a8fc adjusted to 0x815a904
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL31stbi__unpremultiply_on_load_set lma 0x815a8fc adjusted to 0x815a908
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL33stbi__unpremultiply_on_load_local lma 0x815a8fc adjusted to 0x815a90c
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL33stbi__vertically_flip_on_load_set lma 0x815a8fc adjusted to 0x815a910
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: ../../firmware.elf: section .tbss._ZL35stbi__vertically_flip_on_load_local lma 0x815a8fc adjusted to 0x815a914
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/gui/colorlcd/libui/bitmapbuffer_fileio.cpp.obj: in function `stbi__build_huffman(stbi__huffman*, int*)':
/home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: undefined reference to `__aeabi_read_tp'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: undefined reference to `__aeabi_read_tp'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/gui/colorlcd/libui/bitmapbuffer_fileio.cpp.obj: in function `stbi__zbuild_huffman(stbi__zhuffman*, unsigned char const*, int)':
/home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: undefined reference to `__aeabi_read_tp'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: undefined reference to `__aeabi_read_tp'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/gui/colorlcd/libui/bitmapbuffer_fileio.cpp.obj: in function `stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)':
/home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: undefined reference to `__aeabi_read_tp'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/gui/colorlcd/libui/bitmapbuffer_fileio.cpp.obj:/home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/radio/src/thirdparty/stb/stb_image.h:979: more undefined references to `__aeabi_read_tp' follow
collect2: error: ld returned 1 exit status
make[7]: *** [radio/src/CMakeFiles/firmware.dir/build.make:7687:firmware.elf] 错误 1
make[6]: *** [CMakeFiles/Makefile2:747:radio/src/CMakeFiles/firmware.dir/all] 错误 2
make[5]: *** [CMakeFiles/Makefile2:754:radio/src/CMakeFiles/firmware.dir/rule] 错误 2
make[4]: *** [Makefile:384:firmware] 错误 2
make[3]: *** [CMakeFiles/firmware.dir/build.make:70:CMakeFiles/firmware] 错误 2
make[2]: *** [CMakeFiles/Makefile2:409:CMakeFiles/firmware.dir/all] 错误 2
make[1]: *** [CMakeFiles/Makefile2:416:CMakeFiles/firmware.dir/rule] 错误 2
编译进度都98%了,结果出这个错...
网上搜了下,貌似和交叉编译有关,有的是直接创建个空函数。
离线
https://github.com/EdgeTX/edgetx/wiki/Build-Instructions-under-Ubuntu-20.04
按这个来的,不过我是ubuntu22.04。
执行的是:
cmake -DPCB=X10 -DPCBREV=TX16S -DDEFAULT_MODE=2 -DGVARS=YES -DPPM_UNIT=US -DLUA_MIXER=YES -DCMAKE_BUILD_TYPE=Debug ../
搜了工程,没搜到mtp关键字相关。
-------------------------------------
以下是执行cmake和make configure时的输出信息,执行make firmware98%报错,信息在顶楼。
(edgeTxEnv) any@Any-Desktop:~/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output$ cmake -DPCB=X10 -DPCBREV=TX16S -DDEFAULT_MODE=2 -DGVARS=YES -DPPM_UNIT=US -DLUA_MIXER=YES -DCMAKE_BUILD_TYPE=Debug ../
-- CMAKE_ARGS: -DDEBUG=YES;-DDEFAULT_MODE=2;-DGVARS=YES;-DHELI=NO;-DINTERNAL_GPS=YES;-DLUA=YES;-DLUA_MIXER=YES;-DPCB=X10;-DPCBREV=TX16S;-DPPM_UNIT=US
-- CMAKE_BUILD_TYPE: Debug
-- Configuring done
-- Generating done
-- Build files have been written to: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output
(edgeTxEnv) any@Any-Desktop:~/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output$ make configure
[ 50%] Built target arm-none-eabi-configure
[ 60%] Creating directories for 'native'
[ 70%] No download step for 'native'
[ 80%] No update step for 'native'
[ 90%] No patch step for 'native'
[100%] Performing configure step for 'native'
loading initial cache file /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native-prefix/tmp/native-cache-Debug.cmake
-- Python found, version: 3.10.12
-- EdgeTX 2.11.0-selfbuild @ e303b126
-- Foxlib found at /usr/lib/x86_64-linux-gnu/libFOX-1.6.so
-- Qt Version: 5.15.3
-- SDL2 Lib: /usr/lib/x86_64-linux-gnu/libSDL2.so Libs: -L/usr/lib/x86_64-linux-gnu -lSDL2; Headers: /usr/include/SDL2
-- Simulators library search path: ../lib/companion211
Fetched miniz source code from Github: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native/_deps/miniz-src
Fetched yaml-cpp source code from Github: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native/_deps/yaml-cpp-src
-- Qt Version: 5.15.3
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Fetched maxLibQt source code from Github: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native/_deps/maxlibqt-src/src
TARGET companion211: cpp compiler /usr/bin/c++ v11
-- Added optional gtests-companion target
-- install /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native to /usr
-- Downloading linuxdeploy and plugins...
-- Downloading linuxdeploy and plugins finished
mv: 对 '/home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native/squashfs-root' 调用 stat 失败: 没有那个文件或目录
-- Internal GPS enabled
-- Adding support for USB serial
-- Adding support for PXX1 as internal module
-- Adding support for PXX2 as internal module
-- Adding support for MULTI as internal module
-- Adding support for CRSF as internal module
TARGET simu/libsimulator: cpp compiler /usr/bin/c++ v11
-- Added optional gtests target
-- firmware target disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/any/Mcu/DownloadFromWeb/edgetx/edgetx_main/build-output/native
[100%] Built target native-configure
[100%] Built target configure
最近编辑记录 Gentlepig (2024-09-20 13:51:15)
离线
重新下载工程,再次编译,通过了。
回想下,可能还是环境搭建的问题。
一开始git clone仓库后,直接编译,遇到了些报错,有些是和python相关的,比如缺少jinjia2、lz4等。不想将这些python库安装到根目录下,于是创建了python虚拟环境,pip下载了相应库。再编译,还是报错,经群友提醒在tools目录下有个环境搭建脚本,执行了后,应该是把需要的一些软件下载了。但是编译还是有问题,感觉可能是依赖问题。后来删了下载的git仓库,再重新下载,再编译就通过了。
离线