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

CMake fix to build cltool on Ubuntu 20.04 #655

Open
andreucm opened this issue Jun 17, 2024 · 1 comment
Open

CMake fix to build cltool on Ubuntu 20.04 #655

andreucm opened this issue Jun 17, 2024 · 1 comment
Assignees

Comments

@andreucm
Copy link

andreucm commented Jun 17, 2024

On Ubuntu 20.04, with

$ uname -a
Linux maupas 5.15.0-107-generic #117~20.04.1-Ubuntu SMP Tue Apr 30 10:35:57 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I have to fix this line on the CMakeLists file, replacing it by:

link_directories(${IS_SDK_DIR}/build)

Doing so , the cltool utility can be built successfully, otherwise the following linking error appears:

100%] Linking CXX executable cltool
/usr/bin/ld: cannot find -lInertialSenseSDK
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cltool.dir/build.make:99: cltool] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/cltool.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
@kylemallory
Copy link
Contributor

@andreucm Can you confirm if this is still an issue with the latest 2.2.0 release in your build environment? We are also working on a new 2.3.0 release (develop branch) which has significant refactor around CMake and our build scripts, etc.

If this is no longer an issue, please let me know so we can close this issue.

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

3 participants