The Help Thread

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
Impaler
Creative Contributor
Posts: 1060
Joined: Sun Jun 29, 2003 12:40 am
Location: Tucson, Arizona USA

#121 Post by Impaler »

I had been planning to get a Linux Distro as it is so I guess I have yet another reason to do it now :roll:

The Wiki should be updated I belive it still list Dev C++ as being supported.
Fear is the Mind Killer - Frank Herbert -Dune

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

compiling

#122 Post by trace »

I tried to compile.
I installed everything required for compiling freeorion.

I used autogen.sh

last I tried

# ./configure

and later

# ./configure --with-boost=/usr/local --with-boost-libdir=/usr/local/lib --with-boost-include=/usr/local/include/boost-1_32 --with-gigi-include=/usr/local/include/GG --with-gigi-libdir=/usr/local/lib --with-gigi=/usr/local

but following message appears:

./configure: line 8320: syntax error near unexpected token `GIGI,'
./configure: line 8320: ` PKG_CHECK_MODULES(GIGI, GiGi, FOUND=1, FOUND=0)'

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#123 Post by trace »

now I tried

./update-configure.sh

and then:

./configure --with-boost=/usr/local --with-boost-libdir=/usr/local/lib --with-boost-include=/usr/local/include/boost-1_32 --with-gigi-include=/usr/local/include/GG --with-gigi-libdir=/usr/local/lib --with-gigi=/usr/local

but now that error occurs:

checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
checking for main in -lGiGi... yes
checking for main in -lGiGiSDL... yes
checking for main in -lGiGiNet... yes
checking if we have /usr/local/share/aclocal... yes, adding it to aclocal's search-path
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#124 Post by trace »

Mhh now I installed the needed package from my SuSE 9.1. CDs,

but when I enter make now following messeges appear:

cd . && /bin/sh /home/trace/Downloads/freeorion/cvs.ver/FreeOrion/missing --runautoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-am
make[1]: Entering directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make[1]: *** Keine Regel vorhanden, um das Target »Python/PEmpire.cpp«,
benötigt von »Python/server-PEmpire.o«, zu erstellen. Schluss.
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Fehler 2


TRANSLATION:
Keine Regel vorhanden, um das Target ... benötigt von ... zu erstellen. Schluss.
=
No rule exists, to create the target ... , which ... needs. End.

Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

#125 Post by Yoghurt »

trace wrote:make[1]: *** Keine Regel vorhanden, um das Target »Python/PEmpire.cpp«,
benötigt von »Python/server-PEmpire.o«, zu erstellen. Schluss.
make[1]: Leaving directory
Oops. Seems like my personal Development-Makefile slipped into CVS :oops:
Will fix it ASAP

PS: To get english error-messages, set LC_ALL=C, e.g.

Code: Select all

LC_ALL=C make

Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

#126 Post by Yoghurt »

I hope it's fixed.
Still no test for fmod and graphviz, though.

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#127 Post by trace »

after a while compilation following error occurs:

ver-md5.o util/server-MultiplayerCommon.o util/server-OptionsDB.o util/server-Order.o util/server-OrderSet.o util/server-Process.o util/server-Random.o util/server-SitRepEntry.o UI/server-StringTable.o util/server-VarText.o -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGi -lfreetype -lboost_signals-gcc -lboost_filesystem-gcc -llog4cpp -lILUT -lGLU -lGL -lm -lSDL -lpthread -lIL -lILU -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGiNet -lSDL -lpthread -lboost_python -lpython2.3 -lSDL_mixer -llog4cpp -lboost_signals -lboost_filesystem -lGLU -lGL -lpthread -lm
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lboost_python
collect2: ld returned 1 exit status
make[1]: *** [freeoriond] Fehler 1
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Fehler 2


TRANSLATION: Fehler = Error

EDIT:
I tried to compile Boost again with python support. I tried other ways but I had to make a symlink python2.2 from the directory python2.3 in the directory /usr/local/lib and /usr/local/include . At that point boost could compile with python support,
but the same error message occupies my screen when I compile FO.

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#128 Post by trace »

Here the error message in english:

make all-am
make[1]: Entering directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
g++ -Wall -g -L/usr/local/lib -o freeoriond server/server-ServerApp.o server/server-dmain.o combat/server-CombatSystem.o Empire/server-ServerEmpireManager.o network/server-ServerNetworkCore.o combat/server-Combat.o Empire/server-ClientEmpireManager.o Empire/server-Empire.o Empire/server-EmpireManager.o Empire/server-ResourcePool.o network/server-Message.o network/server-NetworkCore.o network/server-XDiff.o network/server-XHash.o network/server-XLut.o network/server-XParser.o network/server-XTree.o universe/server-Building.o universe/server-Condition.o universe/server-Effect.o universe/server-Fleet.o universe/server-Meter.o universe/server-Planet.o universe/server-PopCenter.o universe/server-Predicates.o universe/server-ProdCenter.o universe/server-Ship.o universe/server-ShipDesign.o universe/server-Special.o universe/server-System.o universe/server-Tech.o universe/server-Universe.o universe/server-UniverseObject.o universe/server-ValueRef.o util/server-AppInterface.o util/server-DataTable.o util/server-GZStream.o util/server-md5.o util/server-MultiplayerCommon.o util/server-OptionsDB.o util/server-Order.o util/server-OrderSet.o util/server-Process.o util/server-Random.o util/server-SitRepEntry.o UI/server-StringTable.o util/server-VarText.o -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGi -lfreetype -lboost_signals-gcc -lboost_filesystem-gcc -llog4cpp -lILUT -lGLU -lGL -lm -lSDL -lpthread -lIL -lILU -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGiNet -lSDL -lpthread -lboost_python -lpython2.3 -lSDL_mixer -llog4cpp -lboost_signals -lboost_filesystem -lGLU -lGL -lpthread -lm
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lboost_python
collect2: ld returned 1 exit status
make[1]: *** [freeoriond] Error 1
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Error 2

Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

#129 Post by Yoghurt »

Sorry again, I forgot to remove boost_python, it is not needed ATM.
I will commit a new version; meanwhile, you can edit Makefile.am yourself and remove the -lboost_python stuff

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#130 Post by trace »

another error after editing makefile and makefile.am and typing in make:

ver-md5.o util/server-MultiplayerCommon.o util/server-OptionsDB.o util/server-Order.o util/server-OrderSet.o util/server-Process.o util/server-Random.o util/server-SitRepEntry.o UI/server-StringTable.o util/server-VarText.o -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGi -lfreetype -lboost_signals-gcc -lboost_filesystem-gcc -llog4cpp -lILUT -lGLU -lGL -lm -lSDL -lpthread -lIL -lILU -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGiNet -lSDL -lpthread -lpython2.3 -lSDL_mixer -llog4cpp -lboost_signals -lboost_filesystem -lGLU -lGL -lpthread -lm
server/server-dmain.o(.text+0x7ae): In function `main':
server/dmain.cpp:44: undefined reference to `inituniverse'
collect2: ld returned 1 exit status
make[1]: *** [freeoriond] Error 1
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Error 2

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#131 Post by trace »

Now I began with ./update-configure.sh .... then configure stuff and then make.

Here is the error:

gnals -lboost_filesystem -lGLU -lGL -lpthread -lm
server/server-dmain.o(.text+0x7a9): In function `main':
server/dmain.cpp:43: undefined reference to `Py_Initialize'
server/server-dmain.o(.text+0x7ae):server/dmain.cpp:44: undefined reference to `inituniverse'
server/server-dmain.o(.text+0x7c1):server/dmain.cpp:47: undefined reference to `PyRun_InteractiveLoop'
server/server-dmain.o(.text+0x7c9):server/dmain.cpp:50: undefined reference to `Py_Finalize'
server/server-dmain.o(.gnu.linkonce.t._ZN5boost6python3api6objectC2Ev+0xd): In function `boost::python::api::object::object[not-in-charge]()':
util/OptionsDB.h:143: undefined reference to `_Py_NoneStruct'
collect2: ld returned 1 exit status
make[1]: *** [freeoriond] Error 1
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Error 2

Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

#132 Post by Yoghurt »

Remove "-DWITH_PYTHON" from Makefile.am and rerun autogen.sh and configure

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#133 Post by trace »

following error occurs:

ver-SitRepEntry.o UI/server-StringTable.o util/server-VarText.o -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGi -lfreetype -lboost_signals-gcc -lboost_filesystem-gcc -llog4cpp -lILUT -lGLU -lGL -lm -lSDL -lpthread -lIL -lILU -Wl,-rpath,/usr/lib -L/usr/local/lib -lGiGiNet -lSDL -lpthread -lSDL_mixer -llog4cpp -lboost_signals -lboost_filesystem -lGLU -lGL -lpthread -lm
server/server-dmain.o(.text+0x7a9): In function `main':
server/dmain.cpp:43: undefined reference to `Py_Initialize'
server/server-dmain.o(.text+0x7ae):server/dmain.cpp:44: undefined reference to `inituniverse'
server/server-dmain.o(.text+0x7c1):server/dmain.cpp:47: undefined reference to `PyRun_InteractiveLoop'
server/server-dmain.o(.text+0x7c9):server/dmain.cpp:50: undefined reference to `Py_Finalize'
server/server-dmain.o(.gnu.linkonce.t._ZN5boost6python3api6objectC2Ev+0xd): In function `boost::python::api::object::object[not-in-charge]()':
util/OptionsDB.h:143: undefined reference to `_Py_NoneStruct'
collect2: ld returned 1 exit status
make[1]: *** [freeoriond] Error 1
make[1]: Leaving directory `/home/trace/Downloads/freeorion/cvs.ver/FreeOrion'
make: *** [all] Error 2

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

#134 Post by trace »

everything compiled :)

But when I click on my home-planet following error message appears on my screen:

~/Downloads/freeorion/cvs.ver/FreeOrion # ./freeorion --app-height 768 --app-width 1024 -f
WARNING: You are using the SDL dummy video driver!
WARNING: You are using the SDL dummy video driver!
WARNING: You are using the SDL dummy video driver!
WARNING: You are using the SDL dummy video driver!
WARNING: You are using the SDL dummy video driver!
freeorion: /usr/local/include/boost-1_32/boost/shared_ptr.hpp:253: T* boost::shared_ptr<T>::operator->() const [with T = GG::Texture]: Assertion `px != 0' failed.
1106301473 FATAL : Initiating Exit (code 1 - error termination)
Abgebrochen

trace
Space Squid
Posts: 66
Joined: Fri Jun 27, 2003 6:23 pm
Location: Milkyway

question

#135 Post by trace »

A Question to the programmers:

What libraries r most needed to code at freeorion
and which r less needed.
Which r for what needed.
And which code needs not that much libs to code,
so u have not to learn so much about your lib.

I think about coding at freeorion, but now I want to code with qt,
cause I bought a book about qt.

Post Reply