Compiling issues.

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
jcatana
Space Krill
Posts: 4
Joined: Wed Aug 23, 2006 3:52 am

Compiling issues.

#1 Post by jcatana »

Code: Select all

box FreeOrion # scons configure
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... failed
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... yes
Looking for boost lib boost_iostreams...
Checking for main() in C++ library boost_iostreams... yes
Looking for boost lib boost_signals...
Checking for boost::signals::connection() in C++ library boost_signals... yes
Looking for boost lib boost_filesystem...
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... yes
Boost configuration... ok
Checking for C header file pthread.h... yes
Checking for pthread_create() in C library pthread... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for glBegin() in C library GL... yes
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... yes
Checking SDL version >= 1.2.7... yes
Linking SDL/OpenGL test app... ok
SDL configuration... ok
Checking for freetype2 >= 9.0.0... ok
Checking for C header file ft2build.h... yes
Checking for FT_Init_FreeType() in C library freetype... yes
Checking DevIL version >= 1.6.1... yes
Checking for C header file IL/il.h... yes
Checking for C header file IL/ilu.h... yes
Checking for C header file IL/ilut.h... yes
Checking for ilInit() in C library IL... yes
Checking for iluInit() in C library ILU... yes
Checking for ilutInit() in C library ILUT... yes
Checking for DevIL OpenGL support... yes
Generating libltdl/config.h using libltdl/configure... OSError: [Errno 2] No such file or directory: 'libltdl':
  File "SConstruct", line 303:
    if not conf.CheckLibLTDL():
  File "/usr/lib/scons/SCons/SConf.py", line 354:
    ret = apply(self.test, (context,) +  args, kw)
  File "/root/freeorion/FreeOrion/build_support.py", line 324:
    os.chdir('libltdl')
but

Code: Select all

box FreeOrion # whereis libltdl
libltdl: /usr/lib/libltdl.so /usr/lib/libltdl.la /usr/lib/libltdl.a
I don't get why this is happening. Anyone have any ideas?
Last edited by jcatana on Wed Aug 23, 2006 5:52 pm, edited 1 time in total.

jcatana
Space Krill
Posts: 4
Joined: Wed Aug 23, 2006 3:52 am

#2 Post by jcatana »

nevermind updating from svn fixed that but now I get:

Code: Select all

box FreeOrion # scons configure
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... failed
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_serialization...
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... yes
Looking for boost lib boost_iostreams...
Checking for main() in C++ library boost_iostreams... yes
Looking for boost lib boost_signals...
Checking for boost::signals::connection() in C++ library boost_signals... yes
Looking for boost lib boost_filesystem...
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... yes
Boost configuration... ok
Checking for C header file pthread.h... yes
Checking for pthread_create() in C library pthread... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for glBegin() in C library GL... yes
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... yes
Checking SDL version >= 1.2.7... yes
Linking SDL/OpenGL test app... ok
SDL configuration... ok
Checking for freetype2 >= 9.0.0... ok
Checking for C header file ft2build.h... yes
Checking for FT_Init_FreeType() in C library freetype... yes
Checking DevIL version >= 1.6.1... yes
Checking for C header file IL/il.h... yes
Checking for C header file IL/ilu.h... yes
Checking for C header file IL/ilut.h... yes
Checking for ilInit() in C library IL... yes
Checking for iluInit() in C library ILU... yes
Checking for ilutInit() in C library ILUT... yes
Checking for DevIL OpenGL support... yes
Generating GG/libltdl/config.h using GG/libltdl/configure... ok
Checking for fmod >= 3.75... failed
Checking fmod version >= 3.75... no
Gentoo only has up to fmod-3.74 available through portage and the wiki says not to use the 4.0 string, any idea where i can get 3.75?

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

#3 Post by tzlaine »

You can use 3.74 if you like. Just change the version number in build_config.py from "3.75" to "3.74".

jcatana
Space Krill
Posts: 4
Joined: Wed Aug 23, 2006 3:52 am

#4 Post by jcatana »

I tried editing build_config.py and changed it to fmod_version="3.74" and got this:

Code: Select all

box FreeOrion # scons
scons: Reading SConscript files ...
Configuring for POSIX system...
Checking for pkg-config... ok
Checking for GiGiSDL >= 0.6.0... failed
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.33.1... yes
Looking for boost lib boost_serialization... 
Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_s
erialization... yes
Looking for boost lib boost_iostreams... 
Checking for main() in C++ library boost_iostreams... yes
Looking for boost lib boost_signals... 
Checking for boost::signals::connection() in C++ library boost_signals... yes
Looking for boost lib boost_filesystem... 
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem..
. yes
Boost configuration... ok
Checking for C header file pthread.h... yes
Checking for pthread_create() in C library pthread... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for glBegin() in C library GL... yes
Checking for gluLookAt() in C library GLU... yes
Checking for sdl-config... yes
Checking SDL version >= 1.2.7... yes
Linking SDL/OpenGL test app... ok
SDL configuration... ok
Checking for freetype2 >= 9.0.0... ok
Checking for C header file ft2build.h... yes
Checking for FT_Init_FreeType() in C library freetype... yes
Checking DevIL version >= 1.6.1... yes
Checking for C header file IL/il.h... yes
Checking for C header file IL/ilu.h... yes
Checking for C header file IL/ilut.h... yes
Checking for ilInit() in C library IL... yes
Checking for iluInit() in C library ILU... yes
Checking for ilutInit() in C library ILUT... yes
Checking for DevIL OpenGL support... yes
Generating GG/libltdl/config.h using GG/libltdl/configure... ok
Checking for fmod >= 3.74... failed
Checking fmod version >= 3.74... yes
Checking for C header file fmod.h... yes
Checking for FSOUND_GetVersion() in C library fmod-3.74... no

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

#5 Post by tzlaine »

What does the config.log file say?

jcatana
Space Krill
Posts: 4
Joined: Wed Aug 23, 2006 3:52 am

#6 Post by jcatana »

Code: Select all

file /usr/lib/scons/SCons/Environment.py,line 1019:
        Configure( confdir = .sconf_temp )

Checking for pkg-config...
pkg-config --atleast-pkgconfig-version 0.15.0
Result: ok

Checking for GiGiSDL >= 0.6.0...
pkg-config GiGiSDL --atleast-version 0.6.0
scons: *** [.sconf_temp/conftest_1] Error 1
Result: failed

Checking for C++ header file boost/shared_ptr.hpp... .sconf_temp/conftest_2.cpp <-
  |
  |#include "boost/shared_ptr.hpp"
  |
  |
g++ -c -o .sconf_temp/conftest_2.o .sconf_temp/conftest_2.cpp
yes
Checking Boost version >= 1.33.1...
Result: yes

Checking for boost::archive::binary_iarchive::is_saving() in C++ library boost_serialization... .sconf_temp/conftest_3.cpp <-
  |
  |
  |            #include "boost/archive/binary_iarchive.hpp"
  |
  |
  |            int
  |            main() {
  |            boost::archive::binary_iarchive::is_saving();
  |            return 0;
  |            }
  |
  |
  |
g++ -c -o .sconf_temp/conftest_3.o .sconf_temp/conftest_3.cpp
g++ -o .sconf_temp/conftest_3 .sconf_temp/conftest_3.o -lboost_serialization
yes
Checking for main() in C++ library boost_iostreams... .sconf_temp/conftest_4.cpp <-
  |
  |
  |            #include "boost/iostreams/filtering_stream.hpp"
  |
  |            int
  |            main() {
  |            main();
  |            return 0;
  |            }
  |
  |
  |
g++ -c -o .sconf_temp/conftest_4.o .sconf_temp/conftest_4.cpp
g++ -o .sconf_temp/conftest_4 .sconf_temp/conftest_4.o -lboost_serialization -lboost_iostreams
yes
Checking for boost::signals::connection() in C++ library boost_signals... .sconf_temp/conftest_5.cpp <-
  |
  |
  |            #include "boost/signals.hpp"
  |
  |            int
  |            main() {
  |            boost::signals::connection();
  |            return 0;
  |            }
  |
  |
  |
g++ -c -o .sconf_temp/conftest_5.o .sconf_temp/conftest_5.cpp
g++ -o .sconf_temp/conftest_5 .sconf_temp/conftest_5.o -lboost_serialization -lboost_iostreams -lboost_signals
yes
Checking for boost::filesystem::initial_path() in C++ library boost_filesystem... .sconf_temp/conftest_6.cpp <-
  |
  |
  |            #include "boost/filesystem/operations.hpp"
  |
  |            int
  |            main() {
  |            boost::filesystem::initial_path();
  |            return 0;
  |            }
  |
  |
g++ -c -o .sconf_temp/conftest_6.o .sconf_temp/conftest_6.cpp
g++ -o .sconf_temp/conftest_6 .sconf_temp/conftest_6.o -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem
yes
Boost configuration...
Result: ok

Checking for C header file pthread.h... .sconf_temp/conftest_7.c <-
  |
  |#include "pthread.h"
  |
  |
gcc -c -o .sconf_temp/conftest_7.o .sconf_temp/conftest_7.c
yes
Checking for pthread_create() in C library pthread... .sconf_temp/conftest_8.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char pthread_create();
  |            int
  |            main() {
  |            pthread_create();
  |            return 0;
  |            }
  |
  |
  |
gcc -c -o .sconf_temp/conftest_8.o .sconf_temp/conftest_8.c
gcc -o .sconf_temp/conftest_8 .sconf_temp/conftest_8.o -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lpthread
yes
Checking for C header file GL/gl.h... .sconf_temp/conftest_9.c <-
  |
  |#include "GL/gl.h"
  |
  |
gcc -pthread -c -o .sconf_temp/conftest_9.o .sconf_temp/conftest_9.c
yes
Checking for C header file GL/glu.h... .sconf_temp/conftest_10.c <-
  |
  |#include "GL/glu.h"
  |
  |
gcc -pthread -c -o .sconf_temp/conftest_10.o .sconf_temp/conftest_10.c
yes
Checking for glBegin() in C library GL... .sconf_temp/conftest_11.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char glBegin();
  |            int
  |            main() {
  |            glBegin();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -c -o .sconf_temp/conftest_11.o .sconf_temp/conftest_11.c
gcc -pthread -o .sconf_temp/conftest_11 .sconf_temp/conftest_11.o -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL
yes
Checking for gluLookAt() in C library GLU... .sconf_temp/conftest_12.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char gluLookAt();
  |            int
  |            main() {
  |            gluLookAt();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -c -o .sconf_temp/conftest_12.o .sconf_temp/conftest_12.c
gcc -pthread -o .sconf_temp/conftest_12 .sconf_temp/conftest_12.o -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU
yes
Checking for sdl-config...
Result: yes

Checking SDL version >= 1.2.7...
Result: yes

Linking SDL/OpenGL test app...
.sconf_temp/conftest_13.c <-
  |
  |#include <SDL/SDL.h>
  |#include <SDL/SDL_opengl.h>
  |int main(int argc, char** argv)
  |{
  |    SDL_Init(SDL_INIT_VIDEO);
  |    SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
  |    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
  |    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
  |    SDL_SetVideoMode(640, 480, SDL_GetVideoInfo()->vfmt->BitsPerPixel, SDL_OPENGL);
  |    glBegin(GL_TRIANGLES);
  |    glEnd();
  |    return 0;
  |}
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -c -o .sconf_temp/conftest_13.o .sconf_temp/conftest_13.c
gcc -pthread -o .sconf_temp/conftest_13 .sconf_temp/conftest_13.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread
Result: ok

SDL configuration...
Result: ok

Checking for freetype2 >= 9.0.0...
pkg-config freetype2 --atleast-version 9.0.0
Result: ok

Checking for C header file ft2build.h... .sconf_temp/conftest_15.c <-
  |
  |#include "ft2build.h"
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_15.o .sconf_temp/conftest_15.c
yes
Checking for FT_Init_FreeType() in C library freetype... .sconf_temp/conftest_16.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char FT_Init_FreeType();
  |            int
  |            main() {
  |            FT_Init_FreeType();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_16.o .sconf_temp/conftest_16.c
gcc -pthread -o .sconf_temp/conftest_16 .sconf_temp/conftest_16.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype
yes
Checking DevIL version >= 1.6.1...
Result: yes

Checking for C header file IL/il.h... .sconf_temp/conftest_17.c <-
  |
  |#include "IL/il.h"
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_17.o .sconf_temp/conftest_17.c
yes
Checking for C header file IL/ilu.h... .sconf_temp/conftest_18.c <-
  |
  |#include "IL/ilu.h"
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_18.o .sconf_temp/conftest_18.c
yes
Checking for C header file IL/ilut.h... .sconf_temp/conftest_19.c <-
  |
  |#include "IL/ilut.h"
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_19.o .sconf_temp/conftest_19.c
yes
Checking for ilInit() in C library IL... .sconf_temp/conftest_20.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char ilInit();
  |            int
  |            main() {
  |            ilInit();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_20.o .sconf_temp/conftest_20.c
gcc -pthread -o .sconf_temp/conftest_20 .sconf_temp/conftest_20.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL
yes
Checking for iluInit() in C library ILU... .sconf_temp/conftest_21.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char iluInit();
  |            int
  |            main() {
  |            iluInit();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_21.o .sconf_temp/conftest_21.c
gcc -pthread -o .sconf_temp/conftest_21 .sconf_temp/conftest_21.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL -lILU
yes
Checking for ilutInit() in C library ILUT... .sconf_temp/conftest_22.c <-
  |
  |
  |
  |                #ifdef __cplusplus
  |                extern "C"
  |                #endif
  |                char ilutInit();
  |            int
  |            main() {
  |            ilutInit();
  |            return 0;
  |            }
  |
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_22.o .sconf_temp/conftest_22.c
gcc -pthread -o .sconf_temp/conftest_22 .sconf_temp/conftest_22.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL -lILU -lILUT
yes
.sconf_temp/conftest_23.c <-
  |
  |#include <IL/ilut.h>
  |#ifndef ILUT_USE_OPENGL
  |#error "DevIL not built with OpenGL support"
  |#endif
  |int main() {
  |    return 0;
  |}
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_23.o .sconf_temp/conftest_23.c
Generating GG/libltdl/config.h using GG/libltdl/configure...
Result: ok

Checking for fmod >= 3.74...
pkg-config fmod --atleast-version 3.74
scons: *** [.sconf_temp/conftest_24] Error 1
Result: failed

Checking fmod version >= 3.74...
Result: yes

Checking for C header file fmod.h... .sconf_temp/conftest_25.c <-
  |
  |#include "fmod.h"
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_25.o .sconf_temp/conftest_25.c
yes
Checking for FSOUND_GetVersion() in C library fmod-3.74... .sconf_temp/conftest_26.c <-
  |
  |
  |            #include <fmod.h>
  |            int
  |            main() {
  |            FSOUND_GetVersion();
  |            return 0;
  |
  |
  |
gcc -pthread -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/freetype2 -c -o .sconf_temp/conftest_26.o .sconf_temp/conftest_26.c
gcc -pthread -o .sconf_temp/conftest_26 .sconf_temp/conftest_26.o -L/usr/lib64 -lboost_serialization -lboost_iostreams -lboost_signals -lboost_filesystem -lGL -lGLU -lSDL -lpthread -lfreetype -lz -lfreetype -lIL -lILU -lILUT -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libfmod-3.74.so when searching for -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib64/libfmod-3.74.so when searching for -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib64/libfmod-3.74.so when searching for -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libfmod-3.74.so when searching for -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libfmod-3.74.so when searching for -lfmod-3.74
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lfmod-3.74
collect2: ld returned 1 exit status
scons: *** [.sconf_temp/conftest_26] Error 1
no
Failed program was:
1:
2:
3:             #include <fmod.h>
4:             int
5:             main() {
6:             FSOUND_GetVersion();
7:             return 0;
8:             }
9:
10:
Error message: failed to build test program
Incompatible? is that because it's 64 bit?

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

#7 Post by tzlaine »

It looks like ld is refusing to link against /usr/lib64/libfmod-3.74.so. I have no idea why this is, but I believe it says on the fmod website that fmod does not work with 64-bit builds, though I may be misremembering. Further, neither GG nor FO is guaranteed to work when built as 64-bit code. I don't know enough about the issues involved in porting the code to 64-bit to be able to help here. Sorry, but you're on your own on this one.

Post Reply