Total servers: 3
Old community member outreach (LieroX2 General Discussion) by JasonB May 21, 2013, 12:50:52 pm
Saturday Nights (Graveyard [RIP]) by MiLeC May 19, 2013, 01:10:07 am
Thread for anything (Chat/Spam topic) (The World Outside) by Sebbe May 18, 2013, 05:28:04 pm
Dedicated server questions (Support & discussion) by Kurko May 17, 2013, 12:11:22 pm
Straight - [Str8] ([Str8]) by b-cátt May 16, 2013, 12:18:34 am
[ Fast mortars ]
Modern Warfare1.0 – 20lt
IP: 37.205.11.54
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc3
Players:
Cruel Mod by iRod
Cruel v0.96 – 50lt
IP: 69.255.183.244
Game Mode: Death Match
Lives: 5
Max Kills: 0
Version: OpenLieroX 0.58 rc3
Players:
iRod(0 lives, 0 kills)
[CPU]I'm Not A Human(5 lives, 0 kills)
[CPU]I'm Not A Human(4 lives, 0 kills)
Kurko's testlab
Liero v1.0 – 100lt
IP: 91.156.42.210
Game Mode: Death Match
Lives: 5
Max Kills: 20
Version: OpenLieroX 0.58 rc3
Players:
angry (5 lives, 0 kills)
Pages: [1]   Go Down

Author Topic: Compiling problems on Linux Mint  (Read 1452 times)

Kurko

Compiling problems on Linux Mint
« on: January 23, 2012, 08:41:45 pm »
I tried to compile 0.58 RC3 on Linux Mint Debian 64bit but it failed... Something is apparently missing. I've compiled the same version on Mandriva (32bit) a long time ago and it worked well, no problems there.


Code: [Select]
In file included from /home/username/ohjelmat/openlx_058_rc3/./include/FileDownload.h:30:0,
                 from /home/username/ohjelmat/openlx_058_rc3/./include/CClient.h:31,
                 from /home/username/ohjelmat/openlx_058_rc3/./include/CMap.h:27,
                 from /home/username/ohjelmat/openlx_058_rc3/src/client/CGameSkin.cpp:26:
/home/username/ohjelmat/openlx_058_rc3/./include/HTTP.h:24:24: fatal error: curl/types.h: Tiedostoa tai hakemistoa ei ole.
compilation terminated.

("Tiedostoa tai hakemistoa ei ole" = "File or directory does not exist.")

Edit: Curl version info (curl -V):

Code: [Select]
curl 7.21.7 (x86_64-pc-linux-gnu) libcurl/7.21.7 OpenSSL/1.0.0d zlib/1.2.3.4 libidn/1.22 libssh2/1.2.8 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz


Cmake configuration:

Code: [Select]
SYSTEM_DATA_DIR = /usr/share/games
DEBUG = OFF
DEDICATED_ONLY = OFF
G15 = OFF
X11 = ON
HAWKNL_BUILTIN = ON
LIBZIP_BUILTIN = OFF
STLPORT = OFF
GCOREDUMPER = OFF
BREAKPAD = OFF
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS =
OLX_VERSION = 0.58_rc3

Edit2: Also tried 0.59 beta9 but it gives the same error message.
« Last Edit: January 23, 2012, 08:48:11 pm by Kurko »

albert

Re: Compiling problems on Linux Mint
« Reply #1 on: January 25, 2012, 09:42:32 am »
Setting CMAKE_CXX_FLAGS=$(pkg-config curl --cflags) should probably work.

Kurko

Re: Compiling problems on Linux Mint
« Reply #2 on: January 26, 2012, 08:13:44 pm »
Setting CMAKE_CXX_FLAGS=$(pkg-config curl --cflags) should probably work.

Ok, I tried to set that but I think I did something wrong... :P

Code: [Select]
$ cmake -DCMAKE_CXX_FLAGS=$(pkg-config curl --cflags) .

Package curl was not found in the pkg-config search path.
Perhaps you should add the directory containing `curl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'curl' found
SYSTEM_DATA_DIR = /usr/share/games
DEBUG = OFF
DEDICATED_ONLY = OFF
G15 = OFF
X11 = ON
HAWKNL_BUILTIN = ON
LIBZIP_BUILTIN = OFF
STLPORT = OFF
GCOREDUMPER = OFF
BREAKPAD = OFF
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS =
OLX_VERSION = 0.58_rc3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/ohjelmat/openlx_058_rc3

I also tried to add that into CMakeCache.txt but it didn't work either. It shows up in the configuration:

Code: [Select]
BREAKPAD = OFF
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS = $(pkg-config curl --cflags)

...but compiling fails with the same error.

Code: [Select]

$ make

[  0%] Building CXX object CMakeFiles/openlierox.dir/src/main.o
In file included from /home/username/ohjelmat/openlx_058_rc3/./include/FileDownload.h:30:0,
                 from /home/username/ohjelmat/openlx_058_rc3/./include/CClient.h:31,
                 from /home/username/ohjelmat/openlx_058_rc3/src/main.cpp:20:
/home/username/ohjelmat/openlx_058_rc3/./include/HTTP.h:24:24: fatal error: curl/types.h: Tiedostoa tai hakemistoa ei ole
compilation terminated.

Btw, I found this:

http://curl.haxx.se/mail/tracker-2011-07/0011.html

It seems that types.h has been removed from the newer versions of curl, right?
« Last Edit: January 26, 2012, 08:18:31 pm by Kurko »

albert

Re: Compiling problems on Linux Mint
« Reply #3 on: January 26, 2012, 09:04:05 pm »
Ah, I think it's libcurl, not curl. And you might miss quotes, they might be needed there.

Try this:

Code: [Select]
cmake -DCMAKE_CXX_FLAGS="$(pkg-config libcurl --cflags)" .
Edit:

Just read this...

Btw, I found this:

http://curl.haxx.se/mail/tracker-2011-07/0011.html

It seems that types.h has been removed from the newer versions of curl, right?

Yes, you are right, the pkg-config stuff is also not really needed then.

I just removed the include and it compiles also without, so it was anyway not needed. Try this:
https://github.com/albertz/openlierox/commit/f2b411a890d2f7b0a4e200701fb6e553ed734bb1
« Last Edit: January 26, 2012, 09:13:18 pm by albert »

Kurko

Re: Compiling problems on Linux Mint
« Reply #4 on: January 26, 2012, 09:21:37 pm »
EDIT: Ok, I'm going to try that next... let's see what happens.


##########original message################

Thanks... but this didn't work either (with and without quotes):

Code: [Select]
$ cmake -DCMAKE_CXX_FLAGS="$(pkg-config libcurl --cflags)" .

SYSTEM_DATA_DIR = /usr/share/games
DEBUG = OFF
DEDICATED_ONLY = OFF
G15 = OFF
X11 = ON
HAWKNL_BUILTIN = ON
LIBZIP_BUILTIN = OFF
STLPORT = OFF
GCOREDUMPER = OFF
BREAKPAD = OFF
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS = 
OLX_VERSION = 0.58_rc3
-- Configuring done

The flag setting isn't shown in the config, and compiling still fails. I also tried to add the flag to CMakeCache.txt but it didn't work.
« Last Edit: January 26, 2012, 09:25:03 pm by Kurko »

Kurko

Re: Compiling problems on Linux Mint
« Reply #5 on: January 26, 2012, 09:54:53 pm »
Thx albert, now it works. I removed that line from both /include/HTTP.h and /src/common/HTTP.cpp and it compiled successfully. There were some warning messages but it still seems to run fine.

Kurko

Re: Compiling problems on Linux Mint
« Reply #6 on: April 18, 2012, 09:20:03 pm »
Tried 0.59 beta 10 but it failed:

Code: [Select]
[ 36%] Building CXX object CMakeFiles/openlierox.dir/src/common/Debug_extended_backtrace.o
/home/username/ohjelmat/openlx_059_b10/src/common/Debug_extended_backtrace.cpp:78:17: fatal error: bfd.h: Tiedostoa tai hakemistoa ei ole
compilation terminated.
make[2]: *** [CMakeFiles/openlierox.dir/src/common/Debug_extended_backtrace.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2
("Tiedostoa tai hakemistoa ei ole" = "File or directory does not exist")
("Odotetaan keskeneräisiä töitä" = "Waiting for unfinished jobs")
("Virhe" = "Error")

cmake config:

Code: [Select]
SYSTEM_DATA_DIR = /usr/share/games
DEBUG = OFF
DEDICATED_ONLY = OFF
G15 = OFF
X11 = ON
HAWKNL_BUILTIN = ON
LIBZIP_BUILTIN = OFF
LIBLUA_BUILTIN = ON
STLPORT = OFF
GCOREDUMPER = OFF
HASBFD = ON
BREAKPAD = OFF
LINENOISE = ON
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS =
MINGW_CROSS_COMPILE = OFF
OLX_VERSION = 0.59_beta10
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/ohjelmat/openlx_059_b10

EDIT: I set cmake -DHASBFD=OFF but it still doesn't work (what does that setting do btw?):

Code: [Select]
[ 39%] Building CXX object CMakeFiles/openlierox.dir/src/common/SystemFunctions.o
/home/username/ohjelmat/openlx_059_b10/src/common/SystemFunctions.cpp: In function ‘void setCurThreadName(const string&)’:
/home/username/ohjelmat/openlx_059_b10/src/common/SystemFunctions.cpp:135:33: error: invalid conversion from ‘const char*’ to ‘pthread_t {aka long unsigned int}’ [-fpermissive]
/home/username/ohjelmat/openlx_059_b10/src/common/SystemFunctions.cpp:135:33: error: too few arguments to function ‘int pthread_setname_np(pthread_t, const char*)’
/usr/include/pthread.h:435:12: note: declared here
make[2]: *** [CMakeFiles/openlierox.dir/src/common/SystemFunctions.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2



Beta 9 didn't work either (note: include lines for types.h were removed from HTTP.h and HTTP.cpp):

Code: [Select]
[ 70%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/objects_list.o
In file included from /home/username/ohjelmat/openlx_059_b9/src/gusanos/objects_list.cpp:1:0:
/home/username/ohjelmat/openlx_059_b9/src/gusanos/objects_list.h:90:2: error: ‘size_t’ does not name a type
/home/username/ohjelmat/openlx_059_b9/src/gusanos/objects_list.cpp:76:26: error: no ‘size_t ObjectsList::size()’ member function declared in class ‘ObjectsList’
make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/objects_list.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2

and the cmake config:

Code: [Select]
SYSTEM_DATA_DIR = /usr/share/games
DEBUG = OFF
DEDICATED_ONLY = OFF
G15 = OFF
X11 = ON
HAWKNL_BUILTIN = ON
LIBZIP_BUILTIN = OFF
LIBLUA_BUILTIN = ON
STLPORT = OFF
GCOREDUMPER = OFF
BREAKPAD = OFF
CMAKE_C_COMPILER = /usr/bin/gcc
CMAKE_C_FLAGS =
CMAKE_CXX_COMPILER = /usr/bin/c++
CMAKE_CXX_FLAGS =
MINGW_CROSS_COMPILE = OFF
OLX_VERSION = 0.59_beta9
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/ohjelmat/openlx_059_b9
« Last Edit: April 18, 2012, 10:00:07 pm by Kurko »

albert

Re: Compiling problems on Linux Mint
« Reply #7 on: April 18, 2012, 10:09:37 pm »
For the error in SystemFunctions.cpp, change
Code: [Select]
pthread_setname_np(name.c_str());to
Code: [Select]
pthread_setname_np(pthread_self(), name.c_str()); (I also updated this in Git.)

For the missing bfd.h, you need libbfd. I don't know the exact package for Linux Mint. On Debian, it is binutils-dev (because libbfd is usually part of binutils).

Kurko

Re: Compiling problems on Linux Mint
« Reply #8 on: April 19, 2012, 01:53:04 pm »
I fixed that and also installed binutils-dev but compiling failed again (HASBFD was set to ON). Seems to be the same (?) error as with beta 9:

Code: [Select]
[ 34%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/objects_list.o
In file included from /home/username/ohjelmat/openlx_059_b10/src/gusanos/objects_list.cpp:1:0:
/home/username/ohjelmat/openlx_059_b10/src/gusanos/objects_list.h:90:2: error: ‘size_t’ does not name a type
[ 34%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/part_type.o
/home/username/ohjelmat/openlx_059_b10/src/gusanos/objects_list.cpp:76:26: error: no ‘size_t ObjectsList::size()’ member function declared in class ‘ObjectsList’
make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/objects_list.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2


There are also lots of error messages like this:

Code: [Select]
[  7%] Building CXX object CMakeFiles/openlierox.dir/src/common/Process.o
In file included from /home/username/ohjelmat/openlx_059_b10/src/common/Process.cpp:83:0:
/home/username/ohjelmat/openlx_059_b10/libs/pstreams/pstream.h: In member function ‘redi::basic_pstreambuf<CharT, Traits>* redi::basic_pstreambuf<CharT, Traits>::open(const string&, const argv_type&, redi::pstreams::pmode, const string&) [with CharT = char, Traits = std::char_traits<char>, std::string = std::basic_string<char>, redi::pstreams::argv_type = std::vector<std::basic_string<char> >, redi::pstreams::pmode = std::_Ios_Openmode]’:
/home/username/ohjelmat/openlx_059_b10/libs/pstreams/pstream.h:1884:7:   instantiated from ‘void redi::pstream_common<CharT, Traits>::do_open(const string&, const argv_type&, redi::pstreams::pmode, const string&) [with CharT = char, Traits = std::char_traits<char>, std::string = std::basic_string<char>, redi::pstreams::argv_type = std::vector<std::basic_string<char> >, redi::pstreams::pmode = std::_Ios_Openmode]’
/home/username/ohjelmat/openlx_059_b10/libs/pstreams/pstream.h:670:9:   instantiated from ‘void redi::basic_pstream<CharT, Traits>::open(const string&, const argv_type&, redi::basic_pstream<CharT, Traits>::pmode, const string&) [with CharT = char, Traits = std::char_traits<char>, std::string = std::basic_string<char>, redi::basic_pstream<CharT, Traits>::argv_type = std::vector<std::basic_string<char> >, redi::basic_pstream<CharT, Traits>::pmode = std::_Ios_Openmode]’
/home/username/ohjelmat/openlx_059_b10/src/common/Process.cpp:102:87:   instantiated from here
/home/username/ohjelmat/openlx_059_b10/libs/pstreams/pstream.h:1116:19: warning: variable ‘ignoreme__stupid_wor_workaround’ set but not used [-Wunused-but-set-variable]
[  8%] Building CXX object CMakeFiles/openlierox.dir/src/common/FeatureList.o

albert

Re: Compiling problems on Linux Mint
« Reply #9 on: April 19, 2012, 03:33:04 pm »
Add this include to objects_lists.h:
Code: [Select]
#include <cstring>(Or fetch the latest Git code.)

You can ignore the compiler warnings. That are not errors. (I tried to fix the pstreams.h warning in Git. But as you said, many others are probably still there. I currently don't have your GCC version here to test...)

Kurko

Re: Compiling problems on Linux Mint
« Reply #10 on: April 22, 2012, 05:47:31 pm »
It still doesn't work. I tried both b9 and b10:

beta 9:

Code: [Select]
[ 30%] Building C object CMakeFiles/openlierox.dir/libs/lua/lauxlib.o
Linking CXX executable bin/openlierox
/usr/bin/ld: cannot find -lboost_signals-mt
collect2: ld returned 1 exit status
make[2]: *** [bin/openlierox] Virhe 1
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2

beta 10:

Code: [Select]
[ 29%] Building C object CMakeFiles/openlierox.dir/libs/lua/lauxlib.o
Linking CXX executable bin/openlierox
/usr/bin/ld: cannot find -lboost_signals-mt
collect2: ld returned 1 exit status
make[2]: *** [bin/openlierox] Virhe 1
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2

Then I updated libboost-dev from 1.46 to 1.48 and now it gives this error immediately when trying to run make.

albert

Re: Compiling problems on Linux Mint
« Reply #11 on: April 22, 2012, 06:21:51 pm »
It seems the library is named differently for you. Maybe try "-lboost_signals" ? (You'll find that in CMakeOlxCommon.cmake, line 318).

Edit: I tried to make the CMake check for the right boost signals lib more dynamic. Just check out latest Git.
« Last Edit: April 22, 2012, 06:50:17 pm by albert »

Kurko

Re: Compiling problems on Linux Mint
« Reply #12 on: April 22, 2012, 07:28:33 pm »
Didn't work, same error:

Code: [Select]
username@computer:~/ohjelmat/openlx_059_b10$ make
Linking CXX executable bin/openlierox
/usr/bin/ld: cannot find -lboost_signals
collect2: ld returned 1 exit status
make[2]: *** [bin/openlierox] Virhe 1
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2

I'm going to try the current (Git) version next but it would be nice to get beta 9 to work too.

albert

Re: Compiling problems on Linux Mint
« Reply #13 on: April 22, 2012, 07:32:45 pm »
Well, do you have boost signals installed? Is that file available? By default, it searches in /usr/lib and /usr/local/lib. And the lib name is always prefixed by lib. So originally it has searched for libboost_signals-mt.so. Such a file (or similarly named) must be there, otherwise you have to install it first. Maybe libboost-dev is not enough, maybe there is sth like libboost-signals-dev on your system or so (dunno; have you checked that)?

Kurko

Re: Compiling problems on Linux Mint
« Reply #14 on: April 22, 2012, 08:01:29 pm »
Hm, thanks for pointing that out... signals library (libboost-signalsXYZ-dev) had to be installed separately. Beta 10 compiled successfully.


Beta 9 failed, it gave a bunch of error messages:

Code: [Select]
[ 72%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/keyboard.o
In file included from /usr/include/boost/random/detail/large_arithmetic.hpp:19:0,
                 from /usr/include/boost/random/detail/const_mod.hpp:23,
                 from /usr/include/boost/random/linear_congruential.hpp:30,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/part_type.cpp:5:
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected unqualified-id before ‘)’ token
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected unqualified-id before ‘)’ token
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected unqualified-id before ‘)’ token
In file included from /usr/include/boost/random/detail/const_mod.hpp:23:0,
                 from /usr/include/boost/random/linear_congruential.hpp:30,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/part_type.cpp:5:
/usr/include/boost/random/detail/large_arithmetic.hpp: In function ‘boost::random::detail::div_t boost::random::detail::muldivmod(uintmax_t, uintmax_t, uintmax_t)’:
/usr/include/boost/random/detail/large_arithmetic.hpp:40:11: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/large_arithmetic.hpp:40:11: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
In file included from /usr/include/boost/random/linear_congruential.hpp:32:0,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/part_type.cpp:5:
/usr/include/boost/random/detail/seed_impl.hpp: In function ‘void boost::random::detail::generate_from_int(Engine&, Iter, Iter)’:
/usr/include/boost/random/detail/seed_impl.hpp:145:13: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:145:13: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
/usr/include/boost/random/detail/seed_impl.hpp:148:30: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:148:30: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
/usr/include/boost/random/detail/seed_impl.hpp:151:30: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:151:30: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
In file included from /usr/include/boost/random.hpp:38:0,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/part_type.cpp:5:
/usr/include/boost/random/independent_bits.hpp: In member function ‘boost::random::independent_bits_engine<Engine, w, UIntType>::result_type boost::random::independent_bits_engine<Engine, w, UIntType>::operator()()’:
/usr/include/boost/random/independent_bits.hpp:146:17: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/independent_bits.hpp:146:17: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
In file included from /usr/include/boost/random/detail/large_arithmetic.hpp:19:0,
                 from /usr/include/boost/random/detail/const_mod.hpp:23,
                 from /usr/include/boost/random/linear_congruential.hpp:30,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/explosion.cpp:4:
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:39:5: error: expected unqualified-id before ‘)’ token
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:51:5: error: expected unqualified-id before ‘)’ token
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: ‘always_inline’ was not declared in this scope
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected ‘)’ before ‘inline’
/usr/include/boost/random/detail/integer_log2.hpp:58:1: error: expected unqualified-id before ‘)’ token
In file included from /usr/include/boost/random/detail/const_mod.hpp:23:0,
                 from /usr/include/boost/random/linear_congruential.hpp:30,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/explosion.cpp:4:
/usr/include/boost/random/detail/large_arithmetic.hpp: In function ‘boost::random::detail::div_t boost::random::detail::muldivmod(uintmax_t, uintmax_t, uintmax_t)’:
/usr/include/boost/random/detail/large_arithmetic.hpp:40:11: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/large_arithmetic.hpp:40:11: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
In file included from /usr/include/boost/random/linear_congruential.hpp:32:0,
                 from /usr/include/boost/random/additive_combine.hpp:27,
                 from /usr/include/boost/random.hpp:36,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/explosion.cpp:4:
/usr/include/boost/random/detail/seed_impl.hpp: In function ‘void boost::random::detail::generate_from_int(Engine&, Iter, Iter)’:
/usr/include/boost/random/detail/seed_impl.hpp:145:13: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:145:13: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
/usr/include/boost/random/detail/seed_impl.hpp:148:30: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:148:30: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
/usr/include/boost/random/detail/seed_impl.hpp:151:30: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/detail/seed_impl.hpp:151:30: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
In file included from /usr/include/boost/random.hpp:38:0,
                 from /home/username/ohjelmat/openlx_059_b9/./src/util/math_func.h:5,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/level.h:6,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/gusgame.h:4,
                 from /home/username/ohjelmat/openlx_059_b9/src/gusanos/explosion.cpp:4:
/usr/include/boost/random/independent_bits.hpp: In member function ‘boost::random::independent_bits_engine<Engine, w, UIntType>::result_type boost::random::independent_bits_engine<Engine, w, UIntType>::operator()()’:
/usr/include/boost/random/independent_bits.hpp:146:17: error: ‘integer_log2’ is not a member of ‘boost::random::detail’
/usr/include/boost/random/independent_bits.hpp:146:17: note: suggested alternative:
/usr/include/boost/pending/integer_log2.hpp:94:6: note:   ‘boost::integer_log2’
[ 72%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/detect_event.o
[ 72%] Building CXX object CMakeFiles/openlierox.dir/src/gusanos/simple_particle.o
make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/part_type.o] Virhe 1
make[2]: *** Odotetaan keskeneräisiä töitä....
make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/explosion.o] Virhe 1
make[1]: *** [CMakeFiles/openlierox.dir/all] Virhe 2
make: *** [all] Virhe 2

albert

Re: Compiling problems on Linux Mint
« Reply #15 on: April 22, 2012, 08:16:10 pm »
I guess that always_inline was a macro earlier that was defined somewhere in OLX (search via `grep always_inline -r src include`) and your Boost version also defines that (differently). I guess it should work if you globally remove all always_inline stuff from OLX.

I searched a bit around and it seems that other people have been hit by the same problem and already made a patch for that.

Kurko

Re: Compiling problems on Linux Mint
« Reply #16 on: April 22, 2012, 10:04:18 pm »
Thanks, now it worked. I removed the lines listed on Redhat bugtracker and it compiled successfully.

Kurko

Re: Compiling problems on Linux Mint
« Reply #17 on: October 19, 2012, 08:34:29 pm »
Found a possible bug... Both 0.59 b9 and b10 failed to start after updating libboost-signals from 1.48 to 1.49 and removing the older version. They were apparently trying to locate a file that had the version number in its name. Recompiling was needed to get them to work again.
« Last Edit: October 19, 2012, 09:17:15 pm by Kurko »
Pages: [1]   Go Up
 

anything