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

make failed #173

Open
Tracked by #283
xxinine opened this issue Jan 24, 2018 · 2 comments
Open
Tracked by #283

make failed #173

xxinine opened this issue Jan 24, 2018 · 2 comments

Comments

@xxinine
Copy link

xxinine commented Jan 24, 2018

I have run "git clone git://github.com/wjwwood/serial.git" and now have the serial folder. cd into the serial folder. "make" produces this error:

cd build && cmake -DCMAKE_INSTALL_PREFIX=/tmp/usr/local ..
CMake Error at CMakeLists.txt:5 (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!
See also "/home/yan/Documents/serial/build/CMakeFiles/CMakeOutput.log".
Makefile:32: recipe for target 'serial' failed
make: *** [serial] Error 1

@smkanadl
Copy link

As the Readme states, catkin is a required dependency to build the serial lib. There are several issues around this topic as (from a code point of view) catkin is not really required (#111 #123 #133 #135). @wjwwood said here that a pure CMake support will come with the next version of serial.

@thangduong
Copy link

even with catkin, it doesn't make:
-- catkin 0.6.16
Traceback (most recent call last):
File "/data/robo/serial/catkin_generated/generate_cached_setup.py", line 12, in
from catkin.environment_cache import generate_environment_script
ImportError: No module named 'catkin'

During handling of the above exception, another exception occurred:

It seems the generated py file has a problem.

if os.path.exists(os.path.join('/usr/share/catkin/cmake', 'catkinConfig.cmake.in')):

probably should be:

if os.path.exists(os.path.join('/usr/share/catkin/cmake', 'catkinConfig.cmake')):

Maybe it worked with a different version of catkin. Seems overkill to have all these packages just for serial port.

@moriarty moriarty mentioned this issue Jun 7, 2023
10 tasks
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