You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Configuring done
CMake Error at myproject/CMakeLists.txt:22 (target_link_libraries):
Target "myproject" links to:
lsqcpp::lsqcpp
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
In lsqcpp/lsqcpp-config.cmake I can see following:
So instead of target_link_libraries(myproject lsqcpp::lsqcpp) I tried just target_link_libraries(myproject lsqcpp) - it works.
I'm not a cmake expert, could you doublecheck if readme instructions are still actual?
The text was updated successfully, but these errors were encountered:
/usr/bin/ld: cannot find -llsqcpp: No such file or directory
collect2: error: ld returned 1 exit status
error, unless I specify cmake_policy(VERSION 2.8.3...3.23) at the top of lsqcpp/lsqcpp-config.cmake
(I just tested all stuff from eigen3/cmake/Eigen3Targets.cmake)
thanks for using least-squares-cpp! I'm investigating your problem and I'll try to reproduce it on my side. Just from looking at the code it looks alright to be honest. I'll keep you updated!
Alright I realized that in the README a find_package(Eigen3 REQUIRED) was missing, so I updated the instructions. So after I installed least-squares-cpp as instructed in the README I get the following output:
If you still run into problems, please let me know so we can dive into the issue. In that case it would be useful for me to know which system (ubuntu?) you are using and which CMake Version
Hi,
I've just tried to link lsqcpp. According to the readme it requires installation (installed to /usr) and
But this leads to error:
In lsqcpp/lsqcpp-config.cmake I can see following:
So instead of
target_link_libraries(myproject lsqcpp::lsqcpp)
I tried justtarget_link_libraries(myproject lsqcpp)
- it works.I'm not a cmake expert, could you doublecheck if readme instructions are still actual?
The text was updated successfully, but these errors were encountered: