-
Notifications
You must be signed in to change notification settings - Fork 81
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
Cannot use cmake to install in local prefix #328
Comments
This is not desired. If you have a patch please feel free to contribute. In the meanwhile I have found no problem with:
|
Thanks for that workaround, it worked! I did try debugging, and also turned on Once I installed according to your instructions, the microcrcedds_agent object file cannot be found.
|
AFAIK you need to add this folder to LD_LIBRARY_PATH |
Ah, like so.
|
that's now it is working |
Thanks, I'll run with this. Do you mind leaving the issue open since the workflow I posted should theoretically be the same result as calling |
Issue template
v2.3.0
Steps to reproduce the issue
After cloning
Expected behavior
Everything gets installed in the local directly
install
rather than globally in my system. I would like to set my own install prefix using standard CMake options.Actual behavior
It tries to write to a system directory and fails.
And, on that line in
build/cmake_install.cmake
:file(INSTALL DESTINATION "/usr/local" TYPE DIRECTORY FILES "/home/ryan/Documents/Micro-XRCE-DDS-Agent/build/temp_install/fastcdr-1.0.26/" USE_SOURCE_PERMISSIONS)
Additional information
Why is this desired? Well, I want to install the agent on my computer, but not write to my system headers. I like to reserve writing to root access files with package managers like debian only. Why don't I use debian? Well, I want to contribute here, so I need to compile and run locally :)
The text was updated successfully, but these errors were encountered: