librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Build failure

Open wexi opened this issue 9 years ago • 6 comments

enoch@dome:~/librealsense/build$ uname -a Linux dome 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Commit 67cdafef

CMakeFiles/realsense2.dir/build.make:326: recipe for target 'CMakeFiles/realsense2.dir/src/error-handling.cpp.o' failed make[2]: *** [CMakeFiles/realsense2.dir/src/error-handling.cpp.o] Error 1

wexi avatar Oct 20 '17 18:10 wexi

Hi @wexi The build is passing. If your application depends on previous version of librealsense, please configure it to track the legacy branch instead of master.

dorodnic avatar Oct 21 '17 13:10 dorodnic

It's my first build attempt and it is failing. Here is how:

CMakeFiles/realsense2.dir/build.make:326: recipe for target 'CMakeFiles/realsense2.dir/src/error-handling.cpp.o' failed make[2]: *** [CMakeFiles/realsense2.dir/src/error-handling.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/realsense2.dir/all' failed make[1]: *** [CMakeFiles/realsense2.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Line 326 of the a/m makefile is: @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/enoch/librealsense/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building CXX object CMakeFiles/realsense2.dir/src/error-handling.cpp.o" /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/realsense2.dir/src/error-handling.cpp.o -c /home/enoch/librealsense/src/error-handling.cpp

This error-handling.cpp is not missing. How can I turn on debug logging of the build process?

wexi avatar Oct 22 '17 03:10 wexi

Hi @wexi

The librealsense2 (tag: 2.8.0) build should be fine. My build machine is Ubuntu 16.04 + kernel 4.4.0.97. Please check below instructions to see if you see the same issue: https://github.com/IntelRealSense/librealsense/blob/v2.8.0/doc/installation.md

freemanlo avatar Oct 23 '17 10:10 freemanlo

Hi, Unfortunately going back to "2.8.0" did not help, same build error and same error going forward with the "development" branch:

CMakeFiles/realsense2.dir/build.make:326: recipe for target 'CMakeFiles/realsense2.dir/src/error-handling.cpp.o' failed make[2]: *** [CMakeFiles/realsense2.dir/src/error-handling.cpp.o] Error 1

I am not experienced with cmake. Is there a standard way to tell it to build a Makefile with a more meaningful debug output?

uname -a Linux dome 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

wexi avatar Oct 23 '17 15:10 wexi

Hi@ wexi, What is the command line params you use to invoke cmake and make, and what are the outputs. Please provide the full log of the two

ev-mp avatar Oct 24 '17 09:10 ev-mp

master branch now builds fine. Thanks.

wexi avatar Oct 25 '17 08:10 wexi