Closed gachiemchiep closed 3 years ago
What's your gcc version and operating system?
Have you tried "cleaning up" the make and cmake commands? Like running make clean
and/or deleting the build folder.
It pretty seems that linker is not correctly finding the way to compile the project. As stated by @atenpas a clean build should be the way to go, removing the build folder and building anewly. Seems to compile correctly under Ubuntu 20.04 (WSL 2).
cmake --version
is 3.16.3
g++ --version
is 9.3.0
@atenpas @sisco0 I'm using Ubuntu-16.04 with Cmake 3.16.2 I tried to clean the build directory then rebuild with gcc-6 and gcc-7 but the same errors happened..
Look like the lto option is the root of my problem
/usr/bin/ar: CMakeFiles/gpd_image_12_channels_strategy.dir/src/gpd/descriptor/image_12_channels_strategy.cpp.o: plugin needed to handle lto object
/usr/bin/ranlib: image_12_channels_strategy.cpp.o: plugin needed to handle lto object
-> Fixed by specifying CMAKE_AR, CMAKE_RANLIB, CMAKE_NM as in this issue https://gitlab.kitware.com/cmake/cmake/-/issues/18712
Hello With the newest commit, I have the following error when compiling