Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeFiles/calibrationtoolkit.dir/CalibrationToolkit/calibrationtoolkit.cpp.o: In function nlopt::opt::get_errmsg() const': /usr/local/include/nlopt.hpp:516: undefined reference to nlopt_get_errmsg' #10

Open
lilangyi opened this issue Dec 19, 2020 · 1 comment

Comments

@lilangyi
Copy link

CMakeFiles/calibrationtoolkit.dir/CalibrationToolkit/calibrationtoolkit.cpp.o: In function nlopt::opt::get_errmsg() const': /usr/local/include/nlopt.hpp:516: undefined reference to nlopt_get_errmsg'
/usr/local/include/nlopt.hpp:516: undefined reference to nlopt_get_errmsg' /usr/local/include/nlopt.hpp:516: undefined reference to nlopt_get_errmsg'
collect2: error: ld returned 1 exit status
calibration_camera_lidar/ls_calibration/calibration_camera_lidar/CMakeFiles/calibrationtoolkit.dir/build.make:425: recipe for target '/home/lee/calibration/devel/lib/libcalibrationtoolkit.so' failed
make[2]: *** [/home/lee/calibration/devel/lib/libcalibrationtoolkit.so] Error 1
CMakeFiles/Makefile2:5447: recipe for target 'calibration_camera_lidar/ls_calibration/calibration_camera_lidar/CMakeFiles/calibrationtoolkit.dir/all' failed
make[1]: *** [calibration_camera_lidar/ls_calibration/calibration_camera_lidar/CMakeFiles/calibrationtoolkit.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j48 -l48" failed

我已经安装了nlopt,安装位置在根目录下,报了这个错该如何解决呢?难道是因为nlopt要安装在包的目录下吗?

@XidianLemon
Copy link
Owner

sudo apt remove libnlopt-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants