Open xxinine opened 6 years ago
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.
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
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.
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:
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