[Rock-dev] problems with include path in newly created libs
Sitta Buhmann
sbuhmann at marum.de
Wed Dec 3 13:13:13 CET 2014
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.
--
Sitta Buhmann
MARUM
Centre for Marine Environmental Sciences
University of Bremen / Dept. of Geosciences
Leobener Str.
D-28359 Bremen
Phone: +49 421 218 65613
Fax.: +49 421 218 9865613
E-Mail: sbuhmann at marum.de
URL: www.marum.de
More information about the Rock-dev
mailing list