HOWTO: debug taspring 0.40b2 source distribution - Page 2

HOWTO: debug taspring 0.40b2 source distribution

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

i managed to get the microsoft c++ compiler without the IDE (it is free) but how can i compile the source with it? any suggestions? :)

JOnny C
el_muchacho
Posts: 201
Joined: 30 Apr 2005, 01:06

Post by el_muchacho »

JohnnyC, if I were you, I would start with the Linux port, I think it would be much less trouble than trying to recompile everything with a new compiler (even if the code is pretty standard).
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

Ok.
I've got Gentoo Linux with KDE on my pc (along side XP), If i download the source, can i just use Gcc in a console to compile the entire rts? If so:- What do i do? (what switches, files etc. etc. etc.)
- In detail plaese -

Thanks.
Jonny C.
Last edited by Jonny C on 15 Jun 2005, 23:52, edited 2 times in total.
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

ok, i don't wana sound stupid but i just went on the linux source website and am i right in thinking i have to individual click everysingle .cpp & .h file to download it? (is there a 'downlaod all' button somwhere? :>)

Jonny C.
coryrc
Posts: 81
Joined: 01 May 2005, 23:09

Post by coryrc »

Jonny C wrote:ok, i don't wana sound stupid but i just went on the linux source website and am i right in thinking i have to individual click everysingle .cpp & .h file to download it? (is there a 'downlaod all' button somwhere? :>)

Jonny C.
Sorry if you misunderstood everyone, but it does NOT yet work under Linux; we, at this point, have just ifdef'd or removed non-standard constructs.

It is a Subversion repository, look for a subversion client for windows (sorry, I don't know one).
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

I think I've already got the Client installed... (I'm not sure though)... (what does it actually do??)

I'll tell you what i CAN do...
currently i can go on the sourcecode website and view all the files and download them by selecting them. This is great only I have to click everysingle .cpp and .h file to donwload the entire source... (not exactly easy when there is like loads of em).

Does the client allow me to downlaod them all in one big download?
(if not, any chance the person whome is hosting the source could stick it in a Tar / Rar / Zip etc. ? :-) )

Jonny C.
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

As a subversion client i can recommended TortoiseSVN: http://tortoisesvn.tigris.org/
It neatly integrates with Windows Explorer ... jay.

To obtain every file of the linux version (in svn language, do a export of the repository) you have to do the following: once you got tortoise installed, create an empty folder on your harddisk, rightclick on it, go to the tortoiseSVN tab, and select export. For the url of the repository, fill in

Code: Select all

https://lolut.utbm.info/svn/taspring_linux/trunk/rts/
And click ok. The download should begin, and you'll have all the files in no-time.
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

hello, I've tried it in DEV C++ but that gets lots of errors (lots and lots and lots 100's+) so i tried it in Borland Builder 5 and it works a bit better.

I've fixed quite allot but i'm left with this collection which are a bit confusing:
--------------------------------------------------
[Linker Error] Unresolved external 'CGlobalSyncedStuff::~CGlobalSyncedStuff()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGlobalUnsyncedStuff::~CGlobalUnsyncedStuff()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CglFont::~CglFont()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CPreGame::~CPreGame()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGameController::~CGameController()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGameSetup::~CGameSetup()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGame::~CGame()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGlobalSyncedStuff::CGlobalSyncedStuff()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_gs' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGlobalUnsyncedStuff::CGlobalUnsyncedStuff()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_gu' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGameSetup::CGameSetup()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CGameSetup::Init(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_regHandler' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'RegHandler::GetInt
(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_game' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CMouseHandler::MouseMove(int, int)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CMouseHandler::MouseRelease(int, int, int)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_mouse' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CMouseHandler::MousePress(int, int, int)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CglFont::CglFont(void *, int, int)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'LoadExtensions()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'CPreGame::CPreGame(bool)' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_pregame' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_gameSetup' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external '_font' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ

[Linker Error] Unresolved external 'UnloadExtensions()' referenced from F:\LINUX SPRING SOURCE\LESSON2.OBJ
---------------------------------------------------------

As you can see they are all Linker Errors with 'Unresolved external refrences"... Like I know what that means! :p

so does anyone have a suggestion and/or know whats an 'Unresolved External Refrence' is??

Jonny C.
coryrc
Posts: 81
Joined: 01 May 2005, 23:09

Post by coryrc »

Your linker isn't automatically including all .obj files?

What did you have change? I don't want to move far away from still being compilable in windows.
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

there were a few things which i just commenetded out (this such as "on error return 0") i was kinda lucky cos the stuff i commented out isn't that important unless an error occurs... lol, but i still couldn't get it to compile.

Has nobody got a version of the sourcecode that will succesfully compile in either the free "Dev C++" or "Borland C++ 5" ?

i use both and i can't get it to compile in either :(

please help me somone !

Jonny C,
User avatar
[K.B.] Napalm Cobra
Posts: 1222
Joined: 16 Aug 2004, 06:15

Post by [K.B.] Napalm Cobra »

*cough* bit torrent *cough*
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

*cough* can you shead more light on your subtle suggestion? *cough*
lol

Jonny C
User avatar
PauloMorfeo
Posts: 2004
Joined: 15 Dec 2004, 20:53

Post by PauloMorfeo »

coryrc wrote:
Zaphod wrote:Will the linux source tree be merged with the win32 source tree at some point?
Yes, I hope.
...
Since the Spring team is actively working (changing) on the original code, does that mean that the porting team is working on a diferent (outdated) code? And does that also mean that, when you finish, the outcome of the port will be a diferent code than the Spring code?

If so, something sounds wrong to me. :?
Jonny C
Posts: 94
Joined: 31 May 2005, 18:06

Post by Jonny C »

lol, thats exactly what i was thinking... :p
what version is the linux one?
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

PauloMorfeo wrote:If so, something sounds wrong to me. :?
Relax, take a deep breath, count to 10, and read this part of the Subversion book. You'll find that version control is pretty cool.
snide
Posts: 18
Joined: 15 Jul 2005, 11:55

Post by snide »

Actually, would it be possible to compile it under Code::Blocks + Microsoft Visual C++ Free Toolkit 2003, which are both freely available ?
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

The free toolkit has a lot of missing headers though, also be aware of files that are in the code but shouldn't be compiled, such as Aircraft.cpp.
However, it should be possible to compile.
snide
Posts: 18
Joined: 15 Jul 2005, 11:55

Post by snide »

Zaphod wrote:The free toolkit has a lot of missing headers
I think if you download the Windows Plateform SDK it should be ok.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

A very large and unwieldy download package that si might I say. Not to be attempted if you onyl ahve an hour or two.
snide
Posts: 18
Joined: 15 Jul 2005, 11:55

Post by snide »

I almost managed to compile with C::B & VC++ Toolkit.

I have a problem with dsound.h [ seems that i have to D/L the DirectX SDK :( ] that i bypassed with undefing USE_DSOUND.

I still have many errors about not finding a good template for std::max() like :

Code: Select all

Builder.cpp(290) : error C2782: 'const _Ty &std::max(const _Ty &,const _Ty &)' : template parameter '_Ty' is ambiguous
Wrapping the 2 members into a float() constructor does shut the compiler up, but i don't know if it's a good solution. :roll:
Post Reply

Return to “Engine”