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

The "make" step fails on Ubuntu 18.04.5 LTS #14

Open
skanga opened this issue Feb 2, 2021 · 8 comments
Open

The "make" step fails on Ubuntu 18.04.5 LTS #14

skanga opened this issue Feb 2, 2021 · 8 comments

Comments

@skanga
Copy link

skanga commented Feb 2, 2021

[ 54%] Linking C executable tearing
[ 54%] Built target tearing
Scanning dependencies of target docs
[ 54%] Generating HTML documentation
[ 54%] Built target docs
Scanning dependencies of target opengl_viewer
[ 54%] Building CXX object externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/src/bounding_box.cpp.o
In file included from /home/skanga/Downloads/multicopter_design/externals/opengl_viewer/projects/opengl_viewer/src/bounding_box.cpp:17:0:
/home/skanga/Downloads/multicopter_design/externals/opengl_viewer/projects/opengl_viewer/include/bounding_box.h:20:10: fatal error: Eigen/Dense: No such file or directory
#include "Eigen/Dense"
^~~~~~~~~~~~~
compilation terminated.
externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/build.make:62: recipe for target 'externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/src/bounding_box.cpp.o' failed
make[2]: *** [externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/src/bounding_box.cpp.o] Error 1
CMakeFiles/Makefile2:1385: recipe for target 'externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/all' failed
make[1]: *** [externals/opengl_viewer/projects/opengl_viewer/CMakeFiles/opengl_viewer.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

@skanga
Copy link
Author

skanga commented Feb 2, 2021

OK. So if I change from
#include "Eigen/Dense"
to
#include <eigen3/Eigen/Dense>

in all of the 15-20 files that use it then it seems to go through.

Is it possible to #define this in some way for this OS?

@scientistbala
Copy link

Hi sir,
I have the same issue. can u help me to fix it?

Thanks in advance

@Tconcept
Copy link

@scientistbala , fix suggested by skanga works. just open the header file mentioned in the error message and replace "Eigen/Dense" with "eigen3/Eigen/Dense".

@scientistbala
Copy link

@scientistbala , fix suggested by skanga works. just open the header file mentioned in the error message and replace "Eigen/Dense" with "eigen3/Eigen/Dense".

hi sir,
Thanks for your reply, where exactly or which file i have to open and change this.

Thanks in advance

@Tconcept
Copy link

Its mentioned in the error msg itself. for example, for the error in the first comment (/home/skanga/Downloads/multicopter_design/externals/opengl_viewer/projects/opengl_viewer/include/bounding_box.h)

@skanga
Copy link
Author

skanga commented Feb 15, 2021

@scientistbala There are a LOT of files that have this include.

Running a build and fixing each file that has the error will get PAINFUL but it will work.

Instead, I would recommend doing a "find" to locate all files in tree with this string and then automating the replacement.

@skanga
Copy link
Author

skanga commented Feb 15, 2021

These are all the files you need to fix

./projects/copter_simulation/include/design_problem.h
./projects/copter_simulation/include/tri_mesh.h
./projects/copter_simulation/include/controller.h
./projects/copter_simulation/include/inertial_sensor.h
./projects/copter_simulation/include/nlopt_function.h
./projects/copter_simulation/include/rigid_body.h
./projects/copter_simulation/include/copter_designer.h
./projects/copter_simulation/include/rotor.h
./externals/opengl_viewer/projects/opengl_viewer/include/option.h
./externals/opengl_viewer/projects/opengl_viewer/include/opengl_shape.h
./externals/opengl_viewer/projects/opengl_viewer/include/image.h
./externals/opengl_viewer/projects/opengl_viewer/include/bounding_box.h
./externals/opengl_viewer/projects/opengl_viewer/include/opengl_light.h
./externals/opengl_viewer/projects/opengl_viewer/include/shader_program.h
./externals/opengl_viewer/projects/opengl_viewer/include/geometry.h
./externals/opengl_viewer/projects/opengl_viewer/include/animator.h
./externals/opengl_viewer/projects/opengl_viewer/include/sampling_animator.h

@scientistbala
Copy link

Thank u, sir

It worked.

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

3 participants