udoprog/c10t

Compile doesn't work

Opened this issue · 9 comments

After seeing the new Version of c10t tried to compile:

First run cmake:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/include
-- Found PNG: /usr/lib/libpng.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Boost version: 1.49.0
-- Found the following Boost libraries:
-- thread
-- filesystem
-- system
-- Configuring done
-- Generating done
-- Build files have been written to: /root/c10t/build

Then make c10t
Scanning dependencies of target c10t-mc
[ 2%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/blocks.cpp.o
[ 5%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/level.cpp.o
[ 7%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/utils.cpp.o
[ 10%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/world.cpp.o
[ 12%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/region.cpp.o
[ 15%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/level_info.cpp.o
[ 17%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/region_iterator.cpp.o
[ 20%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/rotated_level_info.cpp.o
[ 22%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/dynamic_buffer.cpp.o
[ 25%] Building CXX object src/mc/CMakeFiles/c10t-mc.dir/marker.cpp.o
Linking CXX static library libc10t-mc.a
[ 25%] Built target c10t-mc
Scanning dependencies of target unc
[ 27%] Building CXX object libs/unc/CMakeFiles/unc.dir/src/unc/unc.cpp.o
Linking CXX static library libunc.a
[ 27%] Built target unc
Scanning dependencies of target c10t-nbt
[ 30%] Building CXX object src/nbt/CMakeFiles/c10t-nbt.dir/nbt.cpp.o
Linking CXX static library libc10t-nbt.a
[ 30%] Built target c10t-nbt
Scanning dependencies of target c10t-engine
[ 32%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/isometric_base.cpp.o
[ 35%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/flat_base.cpp.o
[ 37%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/topdown_engine.cpp.o
[ 40%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/oblique_engine.cpp.o
[ 42%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/obliqueangle_engine.cpp.o
[ 45%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/isometric_engine.cpp.o
[ 47%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/fatiso_engine.cpp.o
[ 50%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/functions.cpp.o
[ 52%] Building CXX object src/engine/CMakeFiles/c10t-engine.dir/block_rotation.cpp.o
Linking CXX static library libc10t-engine.a
[ 52%] Built target c10t-engine
Scanning dependencies of target c10t-image
[ 55%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_operations.cpp.o
/root/c10t/src/image/image_operations.cpp: In member function ‘void image_operations::optimize()’:
/root/c10t/src/image/image_operations.cpp:44: warning: comparison between signed and unsigned integer expressions
[ 57%] Building CXX object src/image/CMakeFiles/c10t-image.dir/image_base.cpp.o
[ 60%] Building CXX object src/image/CMakeFiles/c10t-image.dir/memory_image.cpp.o
[ 62%] Building CXX object src/image/CMakeFiles/c10t-image.dir/cached_image.cpp.o
[ 65%] Building CXX object src/image/CMakeFiles/c10t-image.dir/color.cpp.o
[ 67%] Building CXX object src/image/CMakeFiles/c10t-image.dir/algorithms.cpp.o
Linking CXX static library libc10t-image.a
[ 67%] Built target c10t-image
Scanning dependencies of target uncdata
[ 70%] Building CXX object libs/unc/CMakeFiles/uncdata.dir/gen/unc/iso8859.cpp.o
[ 72%] Building CXX object libs/unc/CMakeFiles/uncdata.dir/gen/unc/unccase.cpp.o
Linking CXX static library libuncdata.a
[ 72%] Built target uncdata
Scanning dependencies of target c10t
[ 75%] Building CXX object CMakeFiles/c10t.dir/src/main.cpp.o
In file included from /usr/include/boost/exception/detail/exception_ptr.hpp:20,
from /usr/include/boost/exception_ptr.hpp:9,
from /usr/include/boost/thread/future.hpp:14,
from /usr/include/boost/thread.hpp:24,
from /root/c10t/src/threads/threadworker_impl.hpp:7,
from /root/c10t/src/threads/threadworker.hpp:16,
from /root/c10t/src/threads/renderer.hpp:18,
from /root/c10t/src/main.cpp:30:
/usr/include/boost/exception/info.hpp:51: error: prototype for ‘std::string boost::error_info<Tag, T>::tag_typeid_name() const’ does not match any in class ‘boost::error_info<Tag, T>’
/usr/include/boost/exception/detail/error_info_impl.hpp:65: error: candidate is: const char* boost::error_info<Tag, T>::tag_typeid_name() const
/root/c10t/src/main.cpp: In function ‘bool generate_map(std::ostream&, std::ostream&, settings_t&, boost::filesystem3::path&, boost::filesystem3::path&)’:
/root/c10t/src/main.cpp:606: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
make[3]: *** [CMakeFiles/c10t.dir/src/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/c10t.dir/all] Error 2
make[1]: *** [CMakeFiles/c10t.dir/rule] Error 2
make: *** [c10t] Error 2

Dependencies are installed. Compiled with this howto: Building from Source (using cmake) ( https://github.com/udoprog/c10t )

I've got exactly the same error.

What version of libboost do you have?

version 1.49.0

I am getting the same error when trying to build the git sources. My libboost is also 1.49.0.

make c10t
[ 2%] Built target c10t-nbt
[ 7%] Built target uncdata
[ 30%] Built target c10t-engine
[ 32%] Built target unc
[ 57%] Built target c10t-mc
[ 72%] Built target c10t-image
Scanning dependencies of target c10t
[ 75%] Building CXX object CMakeFiles/c10t.dir/src/main.cpp.o
In file included from /usr/include/boost/exception/detail/exception_ptr.hpp:20,
from /usr/include/boost/exception_ptr.hpp:9,
from /usr/include/boost/thread/future.hpp:14,
from /usr/include/boost/thread.hpp:24,
from /home/quantax/c10t-git/c10t/src/threads/threadworker_impl.hpp:7,
from /home/quantax/c10t-git/c10t/src/threads/threadworker.hpp:14,
from /home/quantax/c10t-git/c10t/src/threads/renderer.hpp:18,
from /home/quantax/c10t-git/c10t/src/main.cpp:30:
/usr/include/boost/exception/info.hpp:51: error: prototype for 'std::string boost::error_info<Tag, T>::tag_typeid_name() const' does not match any in class 'boost::error_info<Tag, T>'
/usr/include/boost/exception/detail/error_info_impl.hpp:65: error: candidate is: const char* boost::error_info<Tag, T>::tag_typeid_name() const
make[3]: *** [CMakeFiles/c10t.dir/src/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/c10t.dir/all] Error 2
make[1]: *** [CMakeFiles/c10t.dir/rule] Error 2
make: *** [c10t] Error 2

did you guys both install libboost-all-dev? I think the non "-dev" package is missing the headers.

Yes, I have the dev libraries installed.

what distro are you all using?

Debian 6.0 64-bit

Debian 6.0.3 64-bit here too.