apl-ocean-engineering / lsd-slam

My experiments with LSD-SLAM
GNU General Public License v3.0
25 stars 5 forks source link

Build error with g3log #7

Closed Arsakes closed 8 years ago

Arsakes commented 8 years ago

Strangely I'm getting following error during compilation - I've didn't notice it earlier probably - not sure what has changed.

Scanning dependencies of target g3log
Scanning dependencies of target active_object
[  2%] Creating directories for 'g3log'
[  4%] Building CXX object lib/active_object/CMakeFiles/active_object.dir/active.cpp.o
[  6%] Performing download step (git clone) for 'g3log'
Cloning into 'g3log'...
[  8%] Building CXX object lib/active_object/CMakeFiles/active_object.dir/active_idle.cpp.o
[ 10%] Linking CXX shared library libactive_object.so
[ 10%] Built target active_object
Scanning dependencies of target logger
[ 12%] Building CXX object lib/logger/CMakeFiles/logger.dir/LogReader.cpp.o
In file included from /home/piotr/programy_spoza_repo/lsd_slam_amarburg/lsd_slam/lib/logger/LogReader.h:17:0,
                 from /home/piotr/programy_spoza_repo/lsd_slam_amarburg/lsd_slam/lib/logger/LogReader.cpp:12:
/home/piotr/programy_spoza_repo/lsd_slam_amarburg/lsd_slam/lib/logger/LogFields.h:9:27: fatal error: g3log/g3log.hpp: No such file or directory
compilation terminated.
amarburg commented 8 years ago

Hm. Do "VERBOSE=1 make" and post the command line call to gcc which causes the error.

Arsakes commented 8 years ago

It builds without errors when I'm using just make - I've got the cause. First time I was using: make -j2 Building with VERBOSE=1 make resolve the problem. It seems that when you try make working on many parallel threads you got errors g3log library isn't build in the right moment.

amarburg commented 8 years ago

Thanks for that. I'll put a note in the README about that.