udoprog/c10t — Issue #232: c10t does not compile (anymore)
Author: Tmkrth
Created: 2012-01-15 16:10:59+00:00
State: open

Hello everyone.

Since two weeks or so i cannot compile c10t anymore. cmake tells

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1197 (message):
Unable to find the requested Boost libraries.

Boost version: 1.46.1

Boost include path: /usr/include

The following Boost libraries could not be found:

boost_thread
boost_filesystem
boost_system

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:30 (find_package)

and

CMake Warning (dev) at CMakeLists.txt:56 (add_subdirectory):
The source directory

/home/tmk/c10t/libs/unc

does not contain a CMakeLists.txt file.

CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.

Running cmake with smth like --BOOST_LIBRARYDIR=/usr/lib64 or --BOOST_LIBRARYDIR=/usr/include/boost , where on my system boost libs are present, does not change anything. Maybe my syntax is wrong, does anyone has a command example for running cmake with arguments?

Setting "set(Boost_USE_STATIC_LIBS TRUE)" to FALSE in the CMakeLists.txt and running cmake with "-Wno-dev" finds the boost libraries and does not complain about the missing CMakeLists.txt, although this file exists in c10t/

tmk@Heisenberg:~/c10t> cmake -Wno-dev .
-- Boost version: 1.46.1
-- Found the following Boost libraries:
-- thread
-- filesystem
-- system
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tmk/c10t

But, make stops with

tmk@Heisenberg:~/c10t> make -j 4
Scanning dependencies of target c10t-nbt
Scanning dependencies of target c10t-image
Scanning dependencies of target c10t-mc
Scanning dependencies of target c10t-engine
[ 2%] [ 5%] [ 8%] Building CXX object src/nbt/CMakeFiles/c10t-nbt.dir/nbt.cpp.o
[ 10%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_operations.cpp.o
Building CXX object src/mc/CMakeFiles/c10t-mc.dir/blocks.cpp.o
Building CXX object src/engine/CMakeFiles/c10t-engine.dir/isometric_base.cpp.o
Linking CXX static library libc10t-nbt.a
[ 13%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_base.cpp.o
[ 13%] Built target c10t-nbt
[ 16%] Building CXX object src/image/CMakeFiles/c10t-image.dir/memory_image.cpp.o
[ 18%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/level.cpp.o
[ 21%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/flat_base.cpp.o
[ 24%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/topdown_engine.cpp.o
[ 27%] Building CXX object src/image/CMakeFiles/c10t-image.dir/cached_image.cpp.o
[ 29%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/utils.cpp.o
[ 32%] Building CXX object src/image/CMakeFiles/c10t-image.dir/color.cpp.o
[ 35%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/oblique_engine.cpp.o
[ 37%] Building CXX object src/image/CMakeFiles/c10t-image.dir/algorithms.cpp.o
[ 40%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/world.cpp.o
[ 43%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/region.cpp.o
[ 45%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/level_info.cpp.o
Linking CXX static library libc10t-image.a
[ 48%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/obliqueangle_engine.cpp.o
[ 48%] Built target c10t-image
[ 51%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/isometric_engine.cpp.o
[ 54%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/fatiso_engine.cpp.o
[ 56%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/region_iterator.cpp.o
[ 59%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/functions.cpp.o
[ 62%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/block_rotation.cpp.o
[ 64%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/rotated_level_info.cpp.o
[ 67%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/dynamic_buffer.cpp.o
[ 70%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/marker.cpp.o
Linking CXX static library libc10t-engine.a
[ 70%] Built target c10t-engine
Linking CXX static library libc10t-mc.a
[ 70%] Built target c10t-mc
Scanning dependencies of target c10t
[ 78%] [ 78%] [ 78%] [ 81%] Building CXX object CMakeFiles/c10t.dir/src/main_utils.cpp.o
Building CXX object CMakeFiles/c10t.dir/src/algorithm.cpp.o
Building CXX object CMakeFiles/c10t.dir/src/dlopen.cpp.o
Building CXX object CMakeFiles/c10t.dir/src/main.cpp.o
[ 83%] Building CXX object CMakeFiles/c10t.dir/src/players.cpp.o
[ 86%] Building CXX object CMakeFiles/c10t.dir/src/fileutils.cpp.o
[ 89%] Building CXX object CMakeFiles/c10t.dir/src/dirlist.cpp.o
/home/tmk/c10t/src/main.cpp: In function ‘bool generate_map(std::ostream&, std::ostream&, settings_t&, boost::filesystem3::path&, boost::filesystem3::path&)’:
/home/tmk/c10t/src/main.cpp:606:48: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object [enabled by default]
[ 91%] Building CXX object CMakeFiles/c10t.dir/src/altitude_graph.cpp.o
[ 94%] Building CXX object CMakeFiles/c10t.dir/src/warps.cpp.o
[ 97%] Building CXX object CMakeFiles/c10t.dir/src/text.cpp.o
/home/tmk/c10t/src/text.cpp:4:23: fatal error: unc/unc.hpp: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/c10t.dir/src/text.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/c10t.dir/all] Error 2
make: *** [all] Error 2

There is a directry called "unc" in c10t/libs/ but no unc.hpp

I tried this on Suse 12.1, Suse 11.4 and Lubuntu 11.10, all x86_64, whereas on Lubuntu it found the boost libs without the need of editing the CMakeLists.txt file.

Does anyone else experience this? What could I do?