在picoplus上编译opencv及opencv_contrib时遇到报错
Posted: 2024-01-23 18:37
报错处为: /usr/bin/ld: cannot find -lgcc: No such file or directory
以下是报错信息
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler
"/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/pico/opencv/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_55af7/fast && /usr/bin/gmake -f CMakeFiles/cmTC_55af7.dir/build.make CMakeFiles/cmTC_55af7.dir/build
gmake[1]: Entering directory '/home/pico/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -fPIE -o CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o -c /home/pico/opencv/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_55af7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_55af7.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o -o cmTC_55af7
/usr/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_55af7.dir/build.make:99: cmTC_55af7] Error 1
gmake[1]: Leaving directory '/home/pico/opencv/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_55af7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:120 (enable_language)
以下是报错信息
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
The C++ compiler
"/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/pico/opencv/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_55af7/fast && /usr/bin/gmake -f CMakeFiles/cmTC_55af7.dir/build.make CMakeFiles/cmTC_55af7.dir/build
gmake[1]: Entering directory '/home/pico/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -fPIE -o CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o -c /home/pico/opencv/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_55af7
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_55af7.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_55af7.dir/testCXXCompiler.cxx.o -o cmTC_55af7
/usr/bin/ld: cannot find -lgcc: No such file or directory
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_55af7.dir/build.make:99: cmTC_55af7] Error 1
gmake[1]: Leaving directory '/home/pico/opencv/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_55af7/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:120 (enable_language)