Open jasjuang opened 5 years ago
Thanks for the issue, we don't currently support that setting. Is there something you are trying to do that the SDK doesn't provide natively?
@wes-b The automated script on our server has BUILD_SHARED_LIBS=ON
when building for all external libraries and packaging them into .deb
files for distribution. I can work around it by creating an exception for Azure Kinect SDK but almost all other open-source libraries can be built with BUILD_SHARED_LIBS=ON
so I think it will be great if it can work for Azure Kinect SDK too.
when i run "cmake ..-GNinja " this command, the following problems occurred CMake Error at CMakeLists.txt:23 (project): Running
'/usr/sbin/ninja' '--version'
failed with:
die: error: must run as root
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! please help me, thanks!!!
@wes-b The automated script on our server has
BUILD_SHARED_LIBS=ON
when building for all external libraries and packaging them into.deb
files for distribution. I can work around it by creating an exception for Azure Kinect SDK but almost all other open-source libraries can be built withBUILD_SHARED_LIBS=ON
so I think it will be great if it can work for Azure Kinect SDK too.
Looks like you didn't run as root, can you run sudo cmake .. -GNinja
?
First of all, thank you for your reply, but when I run this command on root, the cursor blinks and cannot proceed. I don't know what's wrong
---Original--- From: "wes-b"<notifications@github.com> Date: Thu, Nov 14, 2019 00:32 AM To: "microsoft/Azure-Kinect-Sensor-SDK"<Azure-Kinect-Sensor-SDK@noreply.github.com>; Cc: "Comment"<comment@noreply.github.com>;"baogege6661"<496912993@qq.com>; Subject: Re: [microsoft/Azure-Kinect-Sensor-SDK] Unable to compile with BUILD_SHARED_LIBS=ON (#884)
Looks like you didn't run as root, can you run sudo cmake .. -GNinja?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Describe the bug Compilation fails when cmake variable
BUILD_SHARED_LIBS
is set toON
To Reproduce
Logs
Expected behavior
I expect it compile successfully. Side note, it compiles successfully when
BUILD_SHARED_LIBS
is set toOFF
.Desktop: