HOWTO: debug taspring 0.40b2 source distribution
Moderator: Moderators
-
- Posts: 201
- Joined: 30 Apr 2005, 01:06
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.
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.
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.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.
It is a Subversion repository, look for a subversion client for windows (sorry, I don't know one).
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.
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.
-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
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
And click ok. The download should begin, and you'll have all the files in no-time.
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/
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.
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.
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,
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,
- PauloMorfeo
- Posts: 2004
- Joined: 15 Dec 2004, 20:53
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?coryrc wrote:Yes, I hope.Zaphod wrote:Will the linux source tree be merged with the win32 source tree at some point?
...
If so, something sounds wrong to me.

-
- Spring Developer
- Posts: 374
- Joined: 14 Mar 2005, 12:32
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.PauloMorfeo wrote:If so, something sounds wrong to me. :?
Actually, would it be possible to compile it under Code::Blocks + Microsoft Visual C++ Free Toolkit 2003, which are both freely available ?
I think if you download the Windows Plateform SDK it should be ok.Zaphod wrote:The free toolkit has a lot of missing headers
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 :
Wrapping the 2 members into a float() constructor does shut the compiler up, but i don't know if it's a good solution. 
I have a problem with dsound.h [ seems that i have to D/L the DirectX SDK

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
