orocos-toolchain / ocl

Orocos Component Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant compile in ubuntu 16.04

k-maheshkumar opened this issue · comments

Hi, I am trying to build the ocl package, but I get the following error. Can you please help me to resolve the problem.

~/ocl/build (master) $ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Orocos Component Library version 2.8.3
No orocos-ocl.cmake file loaded, using default settings.See orocos-ocl.default.cmake
-- - Detected OROCOS_TARGET environment variable. Using: gnulinux
-- Orocos-RTT found in /opt/rock/master-17.11/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake
-- Found orocos-rtt 2.8.3 for the gnulinux target. Available transports: corba mqueue
-- 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
-- Checking for one of the modules 'log4cpp-gnulinux'
Looking for netcdf in /usr/local
Found NetCDF
  include dirs: /usr/include
  libs: /usr/lib/x86_64-linux-gnu/libnetcdf.so
-- 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
Log4cpp version to look for: 6.0.0 (hard-coded in FindLog4cpp.cmake).
-- Found LOG4CPP: /home/dfki.uni-bremen.de/mkarikalan/dev_1711/install/lib/liblog4cpp.so  
Found log4cpp in /home/dfki.uni-bremen.de/mkarikalan/dev_1711/install/include
-- 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.8.3 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.8.3 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.
-- - Detected OROCOS_TARGET environment variable. Using: gnulinux
-- Found orocos-rtt 2.8.3 for the gnulinux target. Available transports: corba mqueue
-- Found RTT_PLUGIN_rtt-scripting_gnulinux 
-- [UseOrocos] Building library orocos-ocl-taskbrowser
-- [UseOrocos] Generating package version 2.8.3 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.8.3 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.8.3 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.
-- - Detected OROCOS_TARGET environment variable. Using: gnulinux
-- Found orocos-rtt 2.8.3 for the gnulinux target. Available transports: corba mqueue
-- Found RTT_PLUGIN_rtt-marshalling_gnulinux 
-- [UseOrocos] Building component orocos-ocl-reporting in library orocos-ocl-reporting-gnulinux
-- [UseOrocos] Building component orocos-ocl-reporting-netcdf in library orocos-ocl-reporting-netcdf-gnulinux
-- [UseOrocos] Generating package version 2.8.3 from COMPONENT_VERSION.
-- [UseOrocos] Exporting targets orocos-ocl-reporting;orocos-ocl-reporting-netcdf.
-- [UseOrocos] Exporting libraries orocos-ocl-reporting;orocos-ocl-reporting-netcdf.
-- [UseOrocos] Exporting include directories /usr/include.
-- [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 executable rttlua-corba
-- [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.8.3 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.
-- - Detected OROCOS_TARGET environment variable. Using: gnulinux
-- Found orocos-rtt 2.8.3 for the gnulinux target. Available transports: corba mqueue
-- 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] Building library orocos-ocl-deployment-corba
-- [UseOrocos] Generating package version 2.8.3 from COMPONENT_VERSION.
-- [UseOrocos] Exporting targets orocos-ocl-deployment;orocos-ocl-deployment-corba.
-- [UseOrocos] Exporting libraries orocos-ocl-deployment;orocos-ocl-deployment-corba.
-- [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
-- [UseOrocos] Building executable ctaskbrowser
-- [UseOrocos] Building executable cdeployer
-- [UseOrocos] Building executable deployer-corba
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ocl/build
~/ocl/build (master) $ make
Scanning dependencies of target message
Use: make\ docapi\ dochtml\ docpdf to build the documentation.
[  0%] Built target message
Scanning dependencies of target print
[  1%] Building CXX object ocl/CMakeFiles/print.dir/PrintService.cpp.o
[  2%] Linking CXX shared library orocos/gnulinux/ocl/plugins/libprint-gnulinux.so
[  2%] Built target print
Scanning dependencies of target os
[  2%] Building CXX object ocl/CMakeFiles/os.dir/OSService.cpp.o
[  4%] Linking CXX shared library orocos/gnulinux/ocl/plugins/libos-gnulinux.so
[  4%] Built target os
Scanning dependencies of target ocl
[  5%] Building CXX object ocl/CMakeFiles/ocl.dir/ocltoolkit.cpp.o
[  7%] Linking CXX shared library orocos/gnulinux/ocl/types/libocl-gnulinux.so
[  7%] Built target ocl
Scanning dependencies of target orocos-ocl-common
[  8%] Building CXX object ocl/CMakeFiles/orocos-ocl-common.dir/HMIConsoleOutput.cpp.o
[  9%] Building CXX object ocl/CMakeFiles/orocos-ocl-common.dir/EmptyTaskContext.cpp.o
[ 11%] Linking CXX shared library orocos/gnulinux/ocl/liborocos-ocl-common-gnulinux.so
[ 11%] Built target orocos-ocl-common
Scanning dependencies of target orocos-ocl-taskbrowser
[ 12%] Building CXX object taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/TaskBrowser.cpp.o
/home/ocl/taskbrowser/TaskBrowser.cpp:64:40: fatal error: rtt/scripting/TryCommand.hpp: No such file or directory
compilation terminated.
taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/build.make:62: recipe for target 'taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/TaskBrowser.cpp.o' failed
make[2]: *** [taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/TaskBrowser.cpp.o] Error 1
CMakeFiles/Makefile2:1405: recipe for target 'taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/all' failed
make[1]: *** [taskbrowser/CMakeFiles/orocos-ocl-taskbrowser.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Does your distribution of RTT in /opt/rock/master-17.11 include the scripting plugin and can you find the missing header file in /opt/rock/master-17.11/include/rtt/scripting/TryCommand.hpp? Did you build RTT from source? Which branches of RTT and OCL are you using?

From the fact that log4cpp has been found in /home/dfki.uni-bremen.de/mkarikalan/dev_1711/install and not in /opt/rock/master-17.11 I assume that you use a binary distribution of RTT from Rock, that might not include the scripting headers or you need to install them separately?

The only recent patches I can think of that might be related are

but none of those is in master or toolchain-2.8.

You should also add a -DCMAKE_INSTALL_PREFIX=... argument to the cmake command line if you do no plan to install to /usr/local, but that does not explain the compile error.