orocos-toolchain / rtt

Orocos Real-Time Toolkit
http://www.orocos.org
Other
72 stars 79 forks source link

Problems installing OROCOS under Linux-RTAI/Xenomai #325

Open NeverStopLJ opened 3 years ago

NeverStopLJ commented 3 years ago

My problem was similar to that of my friend in the year 18. image Instead of installing ROS, I tried to install OROCOS Toolchain independently. At first, I tried to install RTT, but Orocret-PKG was not available: image Browsing through Github, I found that the content was quite complex and there was no proper tutorial to help install Orocos-Toolchain alone.Is it right to install separately?

NeverStopLJ commented 3 years ago

Figure 2 shows me that just installing RTT doesn't seem to create components or use Orocreate-pKG, so I try to install the remaining OCL and log4CPP. Log4cpp was easy to install, but installing OCL shows the error in Figure 2.

NeverStopLJ commented 3 years ago

I run "cmake .."The command is shown as follows:

-- Orocos-RTT found in /usr/local/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt 2.9.2 for the gnulinux target. -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- [UseOrocos] Building package ocl without an external buildtool like rosbuild or catkin -- [UseOrocos] Using Orocos RTT in ocl CMake Warning at /usr/local/lib/cmake/orocos-rtt/UseOROCOS-RTT-helpers.cmake:71 (message): [orocos_get_manifest_deps] xpath not found. Can't read dependencies in manifest.xml file. Call Stack (most recent call first): /usr/local/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:216 (orocos_get_manifest_deps) CMakeLists.txt:141 (include)

Looking for netcdf in /usr/local Can't find NETCDF -- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") Found Doxygen -- documentation can be built -- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for curses implementation - found libncurses -- Looking for readline/readline.h - found -- Looking for editline/readline.h - not found Setting LOG4CPP_ROOT to /usr/local -- Found LOG4CPP: /usr/local/lib/liborocos-log4cpp.so
Found orocos-log4cpp in /usr/local/include/orocos -- Could NOT find LOG4CXX (missing: LOG4CXX_LIBRARY LOG4CXX_INCLUDE_DIR) -- Boost version: 1.58.0 -- Found the following Boost libraries: -- program_options -- filesystem -- system -- [UseOrocos] Building component orocos-ocl-common in library orocos-ocl-common-gnulinux -- [UseOrocos] Building typekit library ocl -- [UseOrocos] Building plugin library print -- [UseOrocos] Building plugin library os -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-common;ocl;print;os. -- [UseOrocos] Exporting libraries orocos-ocl-common;ocl;print;os. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl;/usr/local/lib/orocos/gnulinux/ocl/types;/usr/local/lib/orocos/gnulinux/ocl/plugins. -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-common;ocl;print;os. -- [UseOrocos] Exporting libraries orocos-ocl-common;ocl;print;os. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl;/usr/local/lib/orocos/gnulinux/ocl/types;/usr/local/lib/orocos/gnulinux/ocl/plugins. Building TaskBrowser with readline support. CMake Error at /usr/local/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:98 (include): include could not find load file:

/usr/local/lib/cmake/orocos-rtt/orocos-rtt-config-gnulinux.cmake

Call Stack (most recent call first): config/FindRTTPlugin.cmake:21 (find_package) taskbrowser/CMakeLists.txt:38 (find_package)

-- Found orocos-rtt 2.9.2 for the gnulinux target. -- Found RTT_PLUGIN_rtt-scripting_gnulinux -- [UseOrocos] Building library orocos-ocl-taskbrowser -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-taskbrowser. -- [UseOrocos] Exporting libraries orocos-ocl-taskbrowser. -- [UseOrocos] Exporting library directories /usr/local/lib. -- [UseOrocos] Building component orocos-ocl-timer in library orocos-ocl-timer-gnulinux -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-timer. -- [UseOrocos] Exporting libraries orocos-ocl-timer. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl. -- [UseOrocos] Building component orocos-ocl-logging in library orocos-ocl-logging-gnulinux -- [UseOrocos] Building library orocos-ocl-log4cpp -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-logging;orocos-ocl-log4cpp. -- [UseOrocos] Exporting libraries orocos-ocl-logging;orocos-ocl-log4cpp. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl;/usr/local/lib. CMake Error at /usr/local/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:98 (include): include could not find load file:

/usr/local/lib/cmake/orocos-rtt/orocos-rtt-config-gnulinux.cmake

Call Stack (most recent call first): config/FindRTTPlugin.cmake:21 (find_package) reporting/CMakeLists.txt:6 (find_package)

-- Found orocos-rtt 2.9.2 for the gnulinux target. -- Found RTT_PLUGIN_rtt-marshalling_gnulinux -- [UseOrocos] Building component orocos-ocl-reporting in library orocos-ocl-reporting-gnulinux -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-reporting. -- [UseOrocos] Exporting libraries orocos-ocl-reporting. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl. -- Found Lua51: /usr/lib/x86_64-linux-gnu/liblua5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.1.5") -- [UseOrocos] Building component orocos-ocl-lua in library orocos-ocl-lua-gnulinux -- [UseOrocos] Building executable rttlua -- [UseOrocos] Building component orocos-ocl-lua-tlsf in library orocos-ocl-lua-tlsf-gnulinux -- [UseOrocos] Building executable rttlua-tlsf -- [UseOrocos] Building plugin library rttlua-plugin -- [UseOrocos] Building plugin library rttlua-tlsf-plugin -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-lua;orocos-ocl-lua-tlsf;rttlua-plugin;rttlua-tlsf-plugin. -- [UseOrocos] Exporting libraries orocos-ocl-lua;orocos-ocl-lua-tlsf;rttlua-plugin;rttlua-tlsf-plugin. -- [UseOrocos] Exporting library directories /usr/local/lib/orocos/gnulinux/ocl;/usr/local/lib/orocos/gnulinux/ocl/plugins. CMake Error at /usr/local/lib/cmake/orocos-rtt/orocos-rtt-config.cmake:98 (include): include could not find load file:

/usr/local/lib/cmake/orocos-rtt/orocos-rtt-config-gnulinux.cmake

Call Stack (most recent call first): config/FindRTTPlugin.cmake:21 (find_package) deployment/CMakeLists.txt:5 (find_package)

-- Found orocos-rtt 2.9.2 for the gnulinux target. -- Found RTT_PLUGIN_rtt-marshalling_gnulinux -- Found RTT_PLUGIN_rtt-scripting_gnulinux -- Boost version: 1.58.0 -- Found the following Boost libraries: -- filesystem -- system -- [UseOrocos] Building library orocos-ocl-deployment -- [UseOrocos] Generating package version 2.9.2 from COMPONENT_VERSION. -- [UseOrocos] Exporting targets orocos-ocl-deployment. -- [UseOrocos] Exporting libraries orocos-ocl-deployment. -- [UseOrocos] Exporting library directories /usr/local/lib. -- [UseOrocos] Building executable helloworld -- [UseOrocos] Building component orocos-ocl-helloworld in library orocos-ocl-helloworld-gnulinux -- [UseOrocos] Building executable deployer -- [UseOrocos] Building executable rttscript -- Using CATKIN_DEVEL_PREFIX: /usr/local/ocl-2.9.2/build/devel -- Using CMAKE_PREFIX_PATH: -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /usr/local/ocl-2.9.2/build/test_results -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.16 -- Configuring incomplete, errors occurred! See also "/usr/local/ocl-2.9.2/build/CMakeFiles/CMakeOutput.log". See also "/usr/local/ocl-2.9.2/build/CMakeFiles/CMakeError.log".

This is me running "CCmake."After the interface

image image image

NeverStopLJ commented 3 years ago

My RTAI is version 5.2

NeverStopLJ commented 3 years ago

我的问题和我18岁时朋友的问题很相似。 image 我没有安装ROS,而是尝试独立安装OROCOS工具链。起初,我试图安装RTT,但是Orocret-PKG是不可用的: image 浏览Gizub,我发现内容非常复杂,没有适当的教程来帮助安装Orocos-工具链,单独安装正确吗?