[Rock-dev] problems with include path in newly created libs

Sascha Arnold sascha.arnold at dfki.de
Wed Dec 3 13:19:47 CET 2014


Hello Sitta,
did you also add the dependency to base-types to the rock_library cmake 
macro in src/CMakeLists.txt?
As shown here:
> rock_library(libname
>     SOURCES ${SOURCES}
>     HEADERS ${HEADERS}
>     DEPS_PKGCONFIG base-types
>     )

Best regards
Sascha

Am 03.12.2014 um 13:13 schrieb Sitta Buhmann:
> branch = master
>
> Hi,
>
> I have a problem with newly created libs. The include path
> {ROCK_DIR}/install/include ist not added to the compiler flags.
>
> For testing purposes I created a lib with rock-create-lib test_include,
> added base/types to the dependencies (and it shows up in the manifest.xml),
> added #include <base/time.h> to the Dummy.hpp
>
> I get the following error when I first try amake, which fails and then
> run make VERBOSE=1 in the build directory (see below)
>
> Sitta
>
>    make VERBOSE=1
> /usr/bin/cmake -H/home/sbuhmann/src/hrov/master/control/test_include
> -B/home/sbuhmann/src/hrov/master/control/test_include/build
> --check-build-system CMakeFiles/Makefile.cmake 0
> /usr/bin/cmake -E cmake_progress_start
> /home/sbuhmann/src/hrov/master/control/test_include/build/CMakeFiles
> /home/sbuhmann/src/hrov/master/control/test_include/build/CMakeFiles/progress.marks
> make -f CMakeFiles/Makefile2 all
> make[1]: Entering directory
> `/home/sbuhmann/src/hrov/master/control/test_include/build'
> make -f src/CMakeFiles/test_include.dir/build.make
> src/CMakeFiles/test_include.dir/depend
> make[2]: Entering directory
> `/home/sbuhmann/src/hrov/master/control/test_include/build'
> cd /home/sbuhmann/src/hrov/master/control/test_include/build &&
> /usr/bin/cmake -E cmake_depends "Unix Makefiles"
> /home/sbuhmann/src/hrov/master/control/test_include
> /home/sbuhmann/src/hrov/master/control/test_include/src
> /home/sbuhmann/src/hrov/master/control/test_include/build
> /home/sbuhmann/src/hrov/master/control/test_include/build/src
> /home/sbuhmann/src/hrov/master/control/test_include/build/src/CMakeFiles/test_include.dir/DependInfo.cmake
> --color=
> make[2]: Leaving directory
> `/home/sbuhmann/src/hrov/master/control/test_include/build'
> make -f src/CMakeFiles/test_include.dir/build.make
> src/CMakeFiles/test_include.dir/build
> make[2]: Entering directory
> `/home/sbuhmann/src/hrov/master/control/test_include/build'
> /usr/bin/cmake -E cmake_progress_report
> /home/sbuhmann/src/hrov/master/control/test_include/build/CMakeFiles 1
> [ 25%] Building CXX object src/CMakeFiles/test_include.dir/Dummy.cpp.o
> cd /home/sbuhmann/src/hrov/master/control/test_include/build/src &&
> /usr/bin/c++   -DBASE_LOG_NAMESPACE=test_include -Dtest_include_EXPORTS
> -g -fPIC
> -I/home/sbuhmann/src/hrov/master/control/test_include/build/include/_test_include_
> -Wall -Wno-unused-local-typedefs -o
> CMakeFiles/test_include.dir/Dummy.cpp.o -c
> /home/sbuhmann/src/hrov/master/control/test_include/src/Dummy.cpp
> In file included from
> /home/sbuhmann/src/hrov/master/control/test_include/src/Dummy.cpp:1:0:
> /home/sbuhmann/src/hrov/master/control/test_include/src/Dummy.hpp:5:23:
> fatal error: base/time.h: No such file or directory
>    #include <base/time.h>
>                          ^
> compilation terminated.
>
>
>

-- 
  Sascha Arnold
  Space & Underwater Robotics

  Hauptgeschäftsstelle Standort Bremen:
  DFKI GmbH
  Robotics Innovation Center
  Robert-Hooke-Straße 1
  28359 Bremen, Germany

  Tel.:     +49 421 178 45-4197
  Zentrale: +49 421 178 45-0
  Fax:      +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
  E-Mail:   Sascha.Arnold at dfki.de

  Weitere Informationen: http://www.dfki.de/robotik
  -----------------------------------------------------------------------
  Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
  Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
  Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
  (Vorsitzender) Dr. Walter Olthoff
  Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
  Amtsgericht Kaiserslautern, HRB 2313
  Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
  USt-Id.Nr.:    DE 148646973
  Steuernummer:  19/673/0060/3
  -----------------------------------------------------------------------



More information about the Rock-dev mailing list