How to compile from source on Windows?
#1
I need to compile AC from source on Windows, but this whole CVS thing has proven to be nothing but trouble, not to mention there is little to no support on the internet.

Would any mind giving me a step by step guide on how to compile from source on Windows?
Thanks given by:
#2
This is for 1.1.0.4.
Download either Visual C++ Express or MinGW.
Get this file
Extract it with your favourite program and put the "source" directory in your main AssaultCube folder in Program Files.

MinGW:
1. From the start menu open the "MinGW Shell"
2. Navigate to AC's source folder ("AssaultCube_v1.1.0.4\source\src") using cd to change the directory. You must use forward slashes "/" instead of the usual backslash "\" for showing sub-directories, and use backslashes to specify spaces
i.e. C:/Program\ Files/AssaultCube_v1.1.0.4/source/src
3. Type "make" (no quotes, of course)
4. Be patient

It's quite possible that this will compile fine but when you try to run it, it will complain that it's missing some libraries (such as libstdc++.dll, libgcc.dll or something similar). The best solution for this seems to be to link statically to these libraries.
EDIT: If this is the case, open "Makefile" (in /src) in your favourite text editor that isn't notepad (Notepad won't split it up into individual lines).
Go down to where it says CLIENT_LIBS= -mwindows ...
At the end of that line, after "-lwinmm", type "-static" and save the file. This will make the executable file a bit bigger, but if you're only compiling it for yourself, this shouldn't be much of an issue.

As for compiling with Visual C++, I can't help you. I've never used it, although I hear it's quite simple and it's what tempest recommends.
Thanks given by:
#3
(22 Dec 11, 07:15AM)Frogulis Wrote: This is for 1.1.0.4.
Download either Visual C++ Express or MinGW.
Get this file
Extract it with your favourite program and put the "source" directory in your main AssaultCube folder in Program Files.

MinGW:
1. From the start menu open the "MinGW Shell"
2. Navigate to AC's source folder ("AssaultCube_v1.1.0.4\source\src") using cd to change the directory. You must use forward slashes "/" instead of the usual backslash "\" for showing sub-directories, and use backslashes to specify spaces
i.e. C:/Program\ Files/AssaultCube_v1.1.0.4/source/src
3. Type "make" (no quotes, of course)
4. Be patient

It's quite possible that this will compile fine but when you try to run it, it will complain that it's missing some libraries (such as libstdc++.dll, libgcc.dll or something similar). The best solution for this seems to be to link statically to these libraries.
EDIT: If this is the case, open "Makefile" (in /src) in your favourite text editor that isn't notepad (Notepad won't split it up into individual lines).
Go down to where it says CLIENT_LIBS= -mwindows ...
At the end of that line, after "-lwinmm", type "-static" and save the file. This will make the executable file a bit bigger, but if you're only compiling it for yourself, this shouldn't be much of an issue.

As for compiling with Visual C++, I can't help you. I've never used it, although I hear it's quite simple and it's what tempest recommends.


If i compile AC Svn, i use MinGW, VC++ gives me errors.
but i always, just copy the Mingw dlls from the bin folder, where the lib files are.
Thanks given by:
#4
Get vc++, open cube.vcproj in /source/vcpp/

Build tab -> Batch build -> select release|win32 and standalone|win32 -> click Build -> wait

The binaries will show up in /bin_win32/
Thanks given by: