Armagetron compiling in windows.
Re: Armagetron compiling in windows.
Building the workspace names the library files wrong. You need to rename them to what it's says it's missing.
Re: Armagetron compiling in windows.
Nah, that's just a problem with current Code::Blocks and the 0.2.8 workspace (can't fix it or it won't build any more with 1.0_rc2); trunk and 0.4 don't do that.
Re: Armagetron compiling in windows.
Trying to compile this on Windows 7
Re: Armagetron compiling in windows.
Oh, seems like I mixed that up.Z-Man wrote:Nah, that's just a problem with current Code::Blocks and the 0.2.8 workspace (can't fix it or it won't build any more with 1.0_rc2); trunk and 0.4 don't do that.
Re: Armagetron compiling in windows.
Hmm, that rules that problem source out... what version of Code::Blocks and mingw?regedit wrote:Trying to compile this on Windows 7
Re: Armagetron compiling in windows.
I wanted to write a tutorial how to build 0.4 in windows and tried to build with actual source but get this errors:
It worked like a charm a few weeks ago...
EDIT: nvm, found the error. Will write my tutorial in next post.
Code: Select all
||=== Armagetron Advanced, Win32 Release ===|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|43|error: eEventNotification.pb.h: No such file or directory|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|47|error: variable or field 'se_eventNotificationHandler' declared void|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|47|error: 'EventNotification' is not a member of 'Engine'|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|47|error: expected primary-expression before 'const'|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: 'EventNotification' is not a member of 'Engine'|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: 'EventNotification' is not a member of 'Engine'|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: template argument 1 is invalid|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: invalid type in declaration before '(' token|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: 'se_eventNotificationHandler' was not declared in this scope|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|58|error: initializer expression list treated as compound expression|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp||In function 'void se_sendEventNotification(const tString&, const tString&)':|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|67|error: 'EventNotification' is not a member of 'Engine'|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|67|error: 'event' was not declared in this scope|
D:\armagetron\sources\0.4\armagetronad\src\engine\eEventNotification.cpp|67|error: request for member 'Broadcast' in 'se_eventNotificationDescriptor', which is of non-class type 'int'|
||=== Build finished: 13 errors, 0 warnings ===|
EDIT: nvm, found the error. Will write my tutorial in next post.
Re: Armagetron compiling in windows.
How to compile 0.4 in Windows 7 with Code::Blocks 10.05
Before everything, get Code::Blocks 10.05 with included mingw.
I downloaded and installed codeblocks-10.05mingw-setup.exe from http://www.codeblocks.org/downloads/26
1.
Make a svn checkout from
2.
Edit ..\armagetronad\win32\python.bat and change line 7 to your installation location of python
3.
Edit ..\armagetronad\src\defs.h and comment out line 122 and 125
The block should look like this:
4.
Run ..\armagetronad\win32\update_version.bat
4.
Open ..\armagetronad\win32\code_blocks\ArmagetronAd.workspace in Code::Blocks
I only build the client so I closed the dedicated and master projects (right click -> close project).
Also I set the Build target to win32 release (saves you some time if you dont want to debug)
5.
Build everything in Workspace except "Armagetron Advanced".
6.
Run ..\armagetronad\win32\makedist.bat
Run ..\armagetronad\win32\protobuf.bat
7.
Build "Armagetron Advanced"
8.
You find the build in ..\armagetronad\build\dist\
You can run the .exe from there or generate an installer with the .nsi script.
This is how it worked for me with Revision 10352: /armagetronad/branches/0.4
Before everything, get Code::Blocks 10.05 with included mingw.
I downloaded and installed codeblocks-10.05mingw-setup.exe from http://www.codeblocks.org/downloads/26
1.
Make a svn checkout from
Code: Select all
https://armagetronad.svn.sourceforge.net/svnroot/armagetronad/armagetronad/branches/0.4
Edit ..\armagetronad\win32\python.bat and change line 7 to your installation location of python
3.
Edit ..\armagetronad\src\defs.h and comment out line 122 and 125
The block should look like this:
Code: Select all
//#ifndef HAVE_ISBLANK
// this function does not seem to exist in windows and solaris 2.8
inline bool isblank(int x){ return ((x == ' ') || (x == '\t')); }
//#endif
Run ..\armagetronad\win32\update_version.bat
4.
Open ..\armagetronad\win32\code_blocks\ArmagetronAd.workspace in Code::Blocks
I only build the client so I closed the dedicated and master projects (right click -> close project).
Also I set the Build target to win32 release (saves you some time if you dont want to debug)
5.
Build everything in Workspace except "Armagetron Advanced".
6.
Run ..\armagetronad\win32\makedist.bat
Run ..\armagetronad\win32\protobuf.bat
7.
Build "Armagetron Advanced"
8.
You find the build in ..\armagetronad\build\dist\
You can run the .exe from there or generate an installer with the .nsi script.
This is how it worked for me with Revision 10352: /armagetronad/branches/0.4
Last edited by Jip on Thu Jan 12, 2012 12:50 am, edited 1 time in total.
Re: Armagetron compiling in windows.
I downloaded the Code blocks 10.05 with mingw included.
Re: Armagetron compiling in windows.
Did you follow my steps and does it still fail?
Re: Armagetron compiling in windows.
No, not yet.
How is version 2.8 different to 0.4?
How is version 2.8 different to 0.4?
Re: Armagetron compiling in windows.
Best way to find out is to install both and try themregedit wrote:No, not yet.
How is version 2.8 different to 0.4?
Re: Armagetron compiling in windows.
Where can i get 4 ?
I can only find up to 0.3
I can only find up to 0.3
Re: Armagetron compiling in windows.
You can find the snapshots on sourceforge.net
Re: Armagetron compiling in windows.
Love the minimap but i personally preferred the old meters.
Is this version stable enough for normal playing?
Is this version stable enough for normal playing?
Re: Armagetron compiling in windows.
How do i not build armagetron advanced.
Do i go through all the directories in armagetron advanced workspace one by one and build them and not build armagetron advanced?
Sorry for noobness...
Do i go through all the directories in armagetron advanced workspace one by one and build them and not build armagetron advanced?
Sorry for noobness...