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

installation cmake error #287

Open
kaygudo opened this issue Aug 11, 2016 · 4 comments
Open

installation cmake error #287

kaygudo opened this issue Aug 11, 2016 · 4 comments

Comments

@kaygudo
Copy link

kaygudo commented Aug 11, 2016

I followed the documentation, after git cloning and making the build folder, when i try to execute "cmake .." i get following error:

CMake Error at CMakeLists.txt:32 (find_package):
By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "catkin", but
CMake did not find one.

Could not find a package configuration file provided by "catkin" with any
of the following names:

catkinConfig.cmake
catkin-config.cmake

Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set
"catkin_DIR" to a directory containing one of the above files. If "catkin"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!

Any suggestions?
Is ecto dependent on catkin and ros? can't we install it and run ecto without it?

@cristianmenghi
Copy link

Same error.

@stonier
Copy link
Contributor

stonier commented Sep 12, 2016

Make sure you source the ros environment as per the documentation:

source /opt/ros/indigo/setup.bash

That will make sure that the cmake modules installed in the /opt/ros/ root get onto cmake's lookup path. You could alternatively just update your CMAKE_MODULE_PATH directly to find it at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake.

@fabrizioschiano
Copy link

This issue helped me to solve a problem therefore I will add also my experience.
It is not related to this specific project but, if you are using QTcreator (for example) to run your CMakeLists.txt I needed to open QT from terminal to make the .bashrc file to work otherwise (if I run qtCreator from the UBUNTU application window it did not work and I had the same problem described in this issue.

@h-arslan
Copy link

It is a bit late response but it may help others, I noticed that error occurs because of the permissions of build folder. When I changed it to 777 by "sudo chmod 777 build/" then run the cmake, it worked fine.

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

5 participants