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

Error occured when compiling ypspur_ros with release version #42

Closed
aislab opened this issue Oct 12, 2017 · 5 comments
Closed

Error occured when compiling ypspur_ros with release version #42

aislab opened this issue Oct 12, 2017 · 5 comments
Assignees

Comments

@aislab
Copy link

aislab commented Oct 12, 2017

I installed the software according to https://github.com/openspur/yp-spur/wiki so that I would like to use ypspur_ros in the indigo environment.
But it seems that ypspur-config.cmake will not be installed on release version.

I compiled ypspur-ros instaled yp-spur (commit ver. de084f3).

$catkin build ypspur_ros
Errors     << ypspur_ros:cmake /home/USER/hoge-project/catkin_ws/logs/ypspur_ros/build.cmake.005.log
CMake Error at /home/USER/hoge-project/catkin_ws/src/ypspur_ros/CMakeLists.txt:41 (find_package):
  By not providing "Findypspur.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ypspur", but
  CMake did not find one.

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

    ypspurConfig.cmake
    ypspur-config.cmake

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

I tried build the latest yp-spur.
It requires cmake3, but we use cmake as 2.8.6 in our environment.
Could you change CMakeLists.txt of yp-spur so that it can be executed with cmake2 ?

thanks.

@at-wat
Copy link
Member

at-wat commented Oct 12, 2017

The latest yp-spur package uses cmake 3 functions for package versioning.

Does cmake2.8 branch work?

@aislab
Copy link
Author

aislab commented Oct 14, 2017

The following error occurred in cmake2.8 branch.

$ cmake ../

CMake Error at auxlib/CMakeLists.txt:1 (cmake_minimum_required):
  CMake 3.0.2 or higher is required.  You are running version 2.8.12.2


-- Configuring incomplete, errors occurred!

@at-wat
Copy link
Member

at-wat commented Oct 15, 2017

It seems requiring several workarounds to downgrade cmake version.
I'll look into it.

@at-wat
Copy link
Member

at-wat commented Oct 16, 2017

@aislab The current master branch should work with CMake 2.8 on Ubuntu 14.04. Please try it out.

@aislab
Copy link
Author

aislab commented Oct 17, 2017

It compiled successfully.
Thanks.

@aislab aislab closed this as completed Oct 17, 2017
This issue was closed.
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

1 participant