ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

geometric_shapes package error, assimp/aiScene.h not found

asked 2016-02-04 00:58:54 -0600

amitoj gravatar image

updated 2016-02-08 05:59:57 -0600

I am trying to set up the full Jade installation on Ubuntu 14.04.3.. I've followed the official instructions to do this ( http://wiki.ros.org/jade/Installation... ), but have hit something of a roadblock with the following:

$./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

http://answers.ros.org/question/18735... The above is similar to my problem but no workaround is given there.

Here's the terminal output showing what happened with geometric_shapes:

==> Processing catkin package: 'geometric_shapes'
==> Building with env: '/home/toji/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/toji/ros_catkin_ws/build_isolated/geometric_shapes'
==> make -j4 -l4 in '/home/toji/ros_catkin_ws/build_isolated/geometric_shapes'
[ 14%] Building CXX object CMakeFiles/geometric_shapes.dir/src/mesh_operations.cpp.o
/home/toji/ros_catkin_ws/src/geometric_shapes/src/mesh_operations.cpp:54:28: fatal error: assimp/aiScene.h: No such file or directory
 #include <assimp/aiScene.h>
                            ^
compilation terminated.
make[2]: *** [CMakeFiles/geometric_shapes.dir/src/mesh_operations.cpp.o] Error 1
make[1]: *** [CMakeFiles/geometric_shapes.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'geometric_shapes': 
  Command '['/home/toji/ros_catkin_ws/install_isolated/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/toji/ros_catkin_ws/build_isolated/geometric_shapes && /home/toji/ros_catkin_ws/install_isolated/env.sh make -j4 -l4

Command failed, exiting.

I will appreciate any help.

edit retag flag offensive close merge delete

Comments

Please include all relevant console text directly in your question. If the pastebin link ever goes away, this question will become useless. Use the edit button/link to update your question, and the Preformatted text button to format console copy/pastes.

gvdhoorn gravatar image gvdhoorn  ( 2016-02-04 04:57:43 -0600 )edit
1

...I've followed the official instructions to do this ( [ http://wiki.ros.org/jade/Installation.. . ), but have... Have you tried to replace link with this(jade to indigo): http://wiki.ros.org/indigo/Installation/Source

Orhan gravatar image Orhan  ( 2016-02-05 02:12:00 -0600 )edit

Hi, after running across the same problem, I found that geometric_shapes expects files only present in older versions of assimp. This one worked for me: https://sourceforge.net/projects/assi... (cmake . && make && make install)

juanvallejo gravatar image juanvallejo  ( 2016-04-01 01:07:14 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2016-06-30 11:37:30 -0600

BrannonKing gravatar image

geometric_shapes detects ASSIMP incorrectly, but several other projects do it correctly. You can force the detection to work right by doing by including this on the catkin_make command: -DASSIMP_UNIFIED_HEADER_NAMES=ON . Mine looked like this: ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DASSIMP_UNIFIED_HEADER_NAMES=ON

edit flag offensive delete link more
1

answered 2016-02-08 08:18:16 -0600

amitoj gravatar image

@Orhangazi44: I tried installing Indigo and it has been installed successfully. I also tired Jade again and it also installed successfully. Maybe it was some dependency issue.

edit flag offensive delete link more
0

answered 2016-04-01 01:12:05 -0600

Just in case my comment is not seen, turns out geometric_shapes looks for files only present in older versions of assimp. The version below worked fine for me: https://sourceforge.net/projects/assi...

cmake . && make && make install should do it

edit flag offensive delete link more
0

answered 2016-02-16 06:54:51 -0600

Brean gravatar image

I am having the same problem building ROS Jade on fedora. (same error message in the geometric_shapes package, same command as amitoj uses)

I have installed all the assimp packages:

Package assimp-3.1.1-5.fc23.x86_64 is already installed, skipping.
Package assimp-devel-3.1.1-5.fc23.x86_64 is already installed, skipping.

... and that is right assimp-devel-3.1.1 does not include aiScene.h. But I found /usr/include/assimp/scene.h, that seems to be the same file, there is a comment:

@file aiScene.h

[Edit] looking closer into the code it seems ASSIMP_UNIFIED_HEADER_NAMES is not set. Setting it manually helps.

edit flag offensive delete link more

Comments

Might be something to report to the issue tracker? Especially the bit about ASSIMP_UNIFIED_HEADER_NAMES?

gvdhoorn gravatar image gvdhoorn  ( 2016-02-17 02:21:04 -0600 )edit

Question Tools

Stats

Asked: 2016-02-04 00:58:54 -0600

Seen: 1,398 times

Last updated: Jun 30 '16