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

Build failure #728

Closed
wexi opened this issue Oct 20, 2017 · 6 comments
Closed

Build failure #728

wexi opened this issue Oct 20, 2017 · 6 comments
Assignees

Comments

@wexi
Copy link

wexi commented Oct 20, 2017

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 67cdafe

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

@dorodnic
Copy link
Contributor

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.

@wexi
Copy link
Author

wexi commented Oct 22, 2017

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?

@freemanlo
Copy link
Contributor

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

@wexi
Copy link
Author

wexi commented Oct 23, 2017

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

@ev-mp
Copy link
Collaborator

ev-mp commented Oct 24, 2017

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

@wexi
Copy link
Author

wexi commented Oct 25, 2017

master branch now builds fine. Thanks.

@wexi wexi closed this as completed Oct 25, 2017
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

4 participants