FreeOrion

Forums for the FreeOrion project
It is currently Thu May 23, 2013 12:12 am

All times are UTC




Post new topic Reply to topic  [ 294 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 20  Next
Author Message
 Post subject:
PostPosted: Sat Oct 04, 2003 3:59 pm 
Offline
Space Krill

Joined: Mon Sep 22, 2003 10:08 pm
Posts: 9
The compile error I was getting was due to an incorrect Dev-C++ upgrade. Basically, the Dev-C++ uninstall doesn't work as it leaves a cfg and an ini file that must be manually deleted prior to installing a newer version.

I have now finally got Dev-C++ to begin compiling the server.dev =) Unfortunately now I get an error when it gets to ServerNetworkCore.h This error occurs at line 11:

11 E:\Programming\FreeOrion\FreeOrion\network\ServerNetworkCore.h
In file included from ../network/ServerNetworkCore.h

Line 11 of the code is:

#include "NetworkCore.h"

Does this mean it can't find the file NetworkCore.h ? If so this is strange as I can manually locate the file, it is in the following dir:

FreeOrion\Network

This is where it is supposed to be is it not?

Thanks in advance for any help....

Sith

[EDIT] I noticed there is an error on line 15 as reported by the little window at the bottom of Dev-C++:

15 E:\Programming\FreeOrion\FreeOrion\network\NetworkCore.h
SDL.h: No such file or directory.

That would tally with the NetworkCore.h file not being found. However there is no code at line 15 of the ServerNetworkCore.h

Very strange :)

[EDIT2] Ok I think I've found the cause: the networkcore.h file is there but in that header file on line 15 it refers to SDL.h. Now I searched for this file and it is in my DevCpp\Include\SDL dir. I copied this file there as per the readme in the WindowsKit.zip. Any1 know why DevCpp is failing to find it?

[EDIT3] It is failing to find it because the dir name for DevCpp is hardcoded into the dev files :/ It says in the WindowsKit readme that DevCpp can be installed anywhere and under any name. For other new people please make sure it is installed in C:\Dev-Cpp otherwise nothing will compile.

My new problem is that the zlib.h file contains a reference to a zconf.h file. This file is not included in the FreeOrion checkout or the WindowsKit. Any know where I can get it to compile the server.dev?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2003 4:56 pm 
Offline
Space Krill

Joined: Mon Sep 22, 2003 10:08 pm
Posts: 9
I did a google search on the missing file and located the project website:

http://www.gzip.org/zlib/

Download the source code and you'll find the missing file there. Just copy it into the Dev-Cpp\Include dir and you're sorted.

I finally got the HumanClient.dev to compile :) I am so happy =D Unfortunately on clicking the single player game I get the following windows popup message:

freeorion.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

That should be a problem with the program and not a problem with the Dev-C++ compilation process so I'm content that everything is working on my end.

I'm off to get the other two dev's to compile and test 'em then I'm going to start picking through everything to get an overview of how it all fits together. Who knows maybe I'll even start to contribute s'thing :-)

Sith


Top
 Profile  
 
 Post subject: Problem with linker
PostPosted: Wed Oct 29, 2003 7:40 pm 
Offline
Space Krill

Joined: Wed Oct 29, 2003 7:34 pm
Posts: 2
Hi !

I just downloaded everything needed to compile freeorion, got over some basic problems without help, but now i am a bit confused with the following problem:

Everthing compiles fine, the *.o files are all created e.g. for server 27 !

but in the last step the linker tells me unknown command or filename:

the exact message is ( first the last sucessful compilation )
...

g++.exe -D__DEBUG__ -c ../util/AppInterface.cpp -o ../objs/server/AppInterface.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:/DEV-CPP/include" -I"C:/Dev-Cpp/include/SDL" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/boost-1.30.2" -I"C:/Expat-1.95.5/Source/lib" -I"C:/log4cpp-0.2.7/include" -I"../GG/include" -I"../GG/include/net" -I"../GG/include/dialogs" -DLOG4CPP_FIX_ERROR_COLLISION=1 -DFREEORION_WIN32 -DFREEORION_BUILD_SERVER -g3

g++.exe -D__DEBUG__ ../objs/server/dmain.o ../objs/server/ServerApp.o ../objs/server/Message.o ../objs/server/NetworkCore.o ../objs/server/ServerNetworkCore.o ../objs/server/XDiff.o ../objs/server/XHash.o ../objs/server/XLut.o ../objs/server/XParser.o ../objs/server/XTree.o ../objs/server/Process.o ../objs/server/Order.o ../objs/server/OrderSet.o ../objs/server/UniverseObject.o ../objs/server/System.o ../objs/server/Planet.o ../objs/server/PopCenter.o ../objs/server/ProdCenter.o ../objs/server/Ship.o ../objs/server/Fleet.o ../objs/server/Empire.o ../objs/server/EmpireManager.o ../objs/server/ServerEmpireManager.o ../objs/server/TechLevel.o ../objs/server/TechManager.o ../objs/server/Universe.o ../objs/server/AppInterface.o -o "..\freeoriond.exe" -L"C:/DEV-CPP/lib" -L"C:/Expat-1.95.5/StaticLibs" -lmingw32 -lSDLmain -lSDL -lwsock32 -lboost_signals -lexpat -llog4cpp -lz ../GiGi.dll ../GiGiNet.dll ../GiGiSDL.dll

Befehl oder Dateiname nicht gefunden.

Execution terminated
Compilation successful


Anybody an idea ???

Thanx Stefan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2003 9:59 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
1) What does "server 27" mean?

2) I can't read the "error" message; it's in German.

3) It looks like it compiled successfully. What is the problem, exactly?


Top
 Profile  
 
 Post subject: Missing exe
PostPosted: Thu Oct 30, 2003 9:47 am 
Offline
Space Krill

Joined: Wed Oct 29, 2003 7:34 pm
Posts: 2
Sorry :-)

1. Server 27 means in the context of its sentence ;-) that for the freeoriond.exe there are 27 object files created and these exist in the /objs/server directory.

2. Befehl oder Dateiname nicht gefunden.
Translates directly to: Command or Filename not found.
In english versions this might differ somewhat ...

I think its an error message from windows.
Maybe its a problem of WindowsME because the command line for
the linking is too long ???

3. Yes it compiled everything, but it does not link the object files together and build the freeoriond.exe file :-(


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 05, 2003 1:25 am 
Offline
Space Floater

Joined: Thu Oct 16, 2003 1:01 am
Posts: 17
Hi all,

I'd like to ask what is current procedures for working on the code. Can I start changing/building anything or are there some guidelines? Do we have a bugzilla or similar envirorment working? Is there any place I can help?

Thanks,

Gustavo


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 05, 2003 3:02 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
gralves wrote:
Hi all,

I'd like to ask what is current procedures for working on the code. Can I start changing/building anything or are there some guidelines? Do we have a bugzilla or similar envirorment working? Is there any place I can help?

Thanks,

Gustavo


Send out an email on the freeorion-programmers mailing list (sign up if you haven't already) telling us all briefly what you are working on. Then feel free to work on it and commit your changes. You absolutely must be sure that what you have committed is stable and works, so that it doesn't confuse other programmers.

Once you have committed to the CVS, you are required to add an entry to the CVS Commit Info thread in the programming forum, following the format for all previous entries.

Following these two steps gives us all a good idea what you are working on, and keeps us all involved.

If I've missed anything, I'm sure tzlaine will let you know.


Top
 Profile  
 
 Post subject: Compile failure...
PostPosted: Thu Nov 06, 2003 11:26 pm 
Offline
Space Krill

Joined: Thu Nov 06, 2003 11:18 pm
Posts: 1
During a compile I get...

<snip>
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/freetype2 -I/usr/local/include/GG -I/usr/local/include/GG/dialogs -I/usr/local/include/GG/SDL -I/usr/local/include/GG -I/usr/local/include/GG/dialogs -I/usr/local/include/GG/net -I/usr/local/include/GG/net -I/usr/include/SDL -D_REENTRANT -DFREEORION_BUILD_HUMAN -DFREEORION_LINUX -g3 -Wall -MT PopCenter.o -MD -MP -MF ".deps/PopCenter.Tpo" \
-c -o PopCenter.o `test -f '../../universe/PopCenter.cpp' || echo './'`../../universe/PopCenter.cpp; \
then mv -f ".deps/PopCenter.Tpo" ".deps/PopCenter.Po"; \
else rm -f ".deps/PopCenter.Tpo"; exit 1; \
fi
make[3]: *** No rule to make target `../../UI/libFOui-human.a', needed by `freeorion.exe'. Stop.
</snip>

Any ideas? Attempting to compile on Debian Sid.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2003 12:22 am 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
Are you using ./configure and make?

If so, I recommend you don't. Get a fresh checkout of the cvs and go into server/ client/human/ and client/AI/ and do a "make" in each of those. The configure scripts aren't working perfect yet, and this is the easiest way to get it to compile.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2003 2:58 pm 
Offline
Space Floater

Joined: Thu Oct 16, 2003 1:01 am
Posts: 17
Is there an way to start the game without any AI oponents for debugging purposes?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2003 4:04 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
Yes. Start a multiplayer game with two human players.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 11, 2003 10:14 pm 
Offline
Space Krill

Joined: Tue Nov 11, 2003 9:09 pm
Posts: 2
Hi all,

as all people asking here for tips on how to compile free orion I want to do that, too.
Ok, I'm using gcc version 3.2.3 (mingw special 20030504-1) configure runs through but compiling not:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/GG -I/usr/include/GG/net -I/usr/include/GG/SDL -I/usr/include/zlib -I/usr/include/SDL -Dmain=SDL_main -I/usr/include/freetype2 -DFREEORION_WIN32 -g3 -Wall -MT NetworkCore.o -MD -MP -MF ".deps/NetworkCore.Tpo" \
-c -o NetworkCore.o `test -f '../network/NetworkCore.cpp' || echo './'`../network/NetworkCore.cpp; \
then mv ".deps/NetworkCore.Tpo" ".deps/NetworkCore.Po"; \
else rm -f ".deps/NetworkCore.Tpo"; exit 1; \
fi
../network/NetworkCore.cpp:41: no `void NetworkCore::SendMessageA(const
Message&, int, const std::string&) const' member function declared in class
`NetworkCore'
../network/NetworkCore.cpp: In member function `void
NetworkCore::ReceiveData(int, std::string&, const std::string&)':
../network/NetworkCore.cpp:153: cannot convert `Message' to `const MSG*' for
argument `1' to `LONG DispatchMessageA(const MSG*)'
make[2]: *** [NetworkCore.o] Error 1

This seems not to be an plattform specific error... maybe the last one, but I cannot fix them. My NetworkCore.cpp has 92 lines so how could there be a line 153? And why whant the compiler NetworkCore::SendMessageA? there is only a function NetworkCore::SendMessage, or not?

And I had had to modify util/Process.h In Win32 it uses STARTUPINFO and PROCESS_INFORMATION which are windows types... but there is nowhere an include of these windows types. Maybe i crashed my installtion of... yeah of what? to fix this I added
Code:
#ifdef FREEORION_WIN32
#include <windows.h>
#endif

right after
Code:
// assume Linux environment by default
#if (!defined(FREEORION_WIN32) && !defined(FREEORION_LINUX))
#define FREEORION_LINUX
#endif


I hope this has nothing to do with the error in NetworkCore.

so far, blackdrag


Top
 Profile  
 
 Post subject: having trouble debugging freeorion.exe
PostPosted: Wed Nov 12, 2003 8:50 am 
Offline
Space Krill

Joined: Wed Nov 05, 2003 9:05 pm
Posts: 1
Hi everbody.

Another new programmer here, downloaded and installed all the required tools/libraries and got the code out of CVS (on Nov 10 i believe) and I got everything compiling and working.

Noticed it was crashing on me sometimes so I thought I'd check it out as bug hunting is sometimes a good way to get your feet wet, but I'm having trouble getting the debugger to work. When I launch in "debug" mode I see the exe is launched (in TaskManager) and pretty much nothing happens at all. When I run gdb.exe from the command line I get the following
Code:
(gdb) run
Starting program: C:\Development\FreeOrion\Project\FreeOrion\freeorion.exe C:\Development\FreeOrion\Project\FreeOrion\freeorion.exe
../../../BUILD/gdb-5.1.1/gdb/coffread.c:472: gdb-internal-error: sect_index_text not initialized


I noticed one or two others had similiar problems but I didn't see any posts about solutions they may have found. Thanks in advance for any information!

PotatoKing

PS: Running WinXP, P4 2.8 gighz, 512 megs DDR, geforce 4400


Top
 Profile  
 
 Post subject: Re: having trouble debugging freeorion.exe
PostPosted: Wed Nov 12, 2003 1:01 pm 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
PotatoKing wrote:
Hi everbody.

Another new programmer here, downloaded and installed all the required tools/libraries and got the code out of CVS (on Nov 10 i believe) and I got everything compiling and working.

Noticed it was crashing on me sometimes so I thought I'd check it out as bug hunting is sometimes a good way to get your feet wet, but I'm having trouble getting the debugger to work. When I launch in "debug" mode I see the exe is launched (in TaskManager) and pretty much nothing happens at all. When I run gdb.exe from the command line I get the following
[code]


Bug hunting is good, but at the moment there are a few major bugs being fixed so would be better to wait until they are resolved. While it's in such an early development, there's many bugs we're already aware of.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 26, 2003 1:10 pm 
Offline
Vacuum Dragon
User avatar

Joined: Fri Dec 26, 2003 12:42 pm
Posts: 872
Location: Germany, Berlin
Hi,

i'm new to this forum.

I'm trying to make myself familiar with this project. I already got all the
sources and everything works well (besides zconf.h was missing in
WindowsKit::copy-to-Dev-Cpp/include).

While clicking around i stumbled over a bug (or todo) in
FleetDetailPanel::ShipDroppedIntoList where m_create_new_fleet_sig
(ship_id) causes a crash. This occures when dropping a ship into a
window created via new fleet button.

My question is, how can i debug on WinXP. If i hit debug, gdb and
freeorion are loaded but nothing happens. I read the post above pointing
to the same problem, but without a proper answer.

Thx, Ronald.


PS: Meanwhile i checked gdb 5.2.1 and 6.0. Both give me a
segmentation fault. Any suggestions?

insight5_win32 doesn't work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 294 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 20  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group