-
Notifications
You must be signed in to change notification settings - Fork 25
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
ENSENSO_INSTALL Required #58
Comments
What system do you have in mind and how did you install the SDK there? What prevents you from setting up the environment variable to the place where you installed the SDK? Generally, Debian and Ubuntu are the only officially supported platforms for the Ensenso SDK. On those systems the |
The SDK is installed using the Debian package. We are building in CI |
I just searched a bit on how this should be done and it doesn't seem like there is a standard path for CMake module files where I could put the existing script. We already have an internal ticket for improving and modernizing the CMake integration of the NxLib. I will see that we consider this use case when doing that. We could add a workaround to the CMake script of the ROS driver, but I guess the easiest solution for now is to just export the variable. |
Thank you for answering. While trying to figure this issue out with @yotabits I stumbled upon the official CMake documentation: Indeed, there is no standard location for the
So it seems that the recommended course of action is to either:
We will export the environment variable manually for the time being, but I would in general try to avoid relying on environment variables as there are a lot of headless use cases out there that will not load any default environment variables. For example robot_upstart uses setuidgid to have roslaunch as a daemon process. |
https://github.com/ensenso/ros_driver/blob/42014bd0fa58ef4840a1e319c533a23958b0f9d1/ensenso_camera/CMakeLists.txt#L56-57
It seems that the environment variable
ENSENSO_INSTALL
is required to findFindEnsenso.cmake
fileinstalled by the ensenso-sdk.
The
ENSENSO_INSTALL
variable is set by/etc/environment
This is not convenient for systems not relying on
/etc/environment
. Would it be possible to put theFindEnsenso.cmake
file in a place whereENSENSO_INSTALL
wouldn't be necessary?The text was updated successfully, but these errors were encountered: