| View previous topic :: View next topic |
| Author |
Message |
denis3 Developer


Joined: 23 Dec 2007 Age: 16 Posts: 498 Location: New Zealand
|
Posted: Wed Jan 16, 2008 12:16 am Post subject: Guide: How to compile Egoboo source code on Windows |
|
|
Guide modified and updated by Zefz ( 21.03.08 )
Welcome to the newest guide of how to compile Egoboo with Visual C++ Studio 2005 or 2008 on Windows! You will need the following things to start with:
- Source code of Egoboo to compile (The source code should be included with the newer versions of Egoboo you download)! (Download it at http://sourceforge.net/projects/egoboo or get the latest source on the SVN at https://egoboo.svn.sourceforge.net/svnroot/egoboo/trunk (Insturctions on how to download SVN is here: http://sourceforge.net/docs/E09)
- Visual C++ 2005 or 2008 recommended (Download VC++ 2008 from http://www.microsoft.com/express/vc/)
- SDK latest version (I think it will probably work with older versions too. Get it from Microsoft.com). This is not needed for VS++ 2008, as it is already included.
- SDL devel package latest version (http://www.libsdl.org/)
- SDL mixer devel package latest version (http://www.libsdl.org/projects/SDL_mixer/)
- SDL ttf devel package (http://www.libsdl.org/projects/SDL_ttf/)
- SDL image devel package (http://www.libsdl.org/projects/SDL_image/)
The devel packages should look something like this: SDL_image-devel-1.2.6-VC8.zip (This case being SDL_image version 1.2.6
Okay this is good to start with.
Step 1:
Install Visual C++ 2005/2008. Good. Download all the packages that I mentioned above. Now, the developer packages are a bit complicated to handle, but here is what you do. Unpack them all. Now, in each package you will see two folders called "include" and "lib". Before you do anything, I want you to go to program files, and find the directory of Visual C++ 2005. In that directory, there will be a folder called VC. In that folder, there will be two other folders called "include" and "lib" as well. From all the unzipped packages, I want you to take all the files in the "include" folders and put it inside the "include" folder of the VC directory. Do the same thing with the files in the "lib" folders in your unzipped packages, send them to the "lib" folder in the VC directory.
Step 2:
The Egoboo project file is in the source code folder that you downloaded from the game website or the SVN repository. It is the .sln file. Open version 9 for studio 2008 and version 8 for 2005 (Version 7 is for older ones). Open it up with Visual C++ 2005/2008. If everything goes right, all of the needed compile settings should be set for you , but we are checking it, just to make sure. Now, you will see two folders on the left side called "enet" and "game". Right click "game". Go to "Linker" (Click the + button) and select Input. Go to Additional dependencies, double click it. A button like this: ... will appear on the right side, click it. You should have it like this:
shlwapi.lib
SHFolder.lib
Shell32.lib
SDL.lib
SDLmain.lib
opengl32.lib
glu32.lib
ws2_32.lib
SDL_ttf.lib
SDL_mixer.lib
SDL_image.lib
Once you made sure that these match, you can continue. (Note: they don't have to be exactly the same, but this is how I recommend you to have it).
Step 3:
Go to build -> build solution and there you go! Note: just remember about switching between debug mode and release mode (Batch build or debug build).
If you got any problems, don't hesitate to ask for help in the help section of the forums.
Good luck! _________________ Season: 3
Projects for Egoboo: Egoboo - Adventure edition
Egoboo community job: Fixing bugs and game testing.
Total code bug fixes: 3
Total game bug fixes (This season): 1 |
|
| Back to top |
|
 |
Maxaxle Elite Gamer


Joined: 06 Oct 2007 Age: 15 Posts: 2717 Location: San Diego
|
Posted: Wed Jan 16, 2008 12:52 am Post subject: |
|
|
Wouldn't it be simpler if you:
-Attached the files to an email to me
-Sent me the email and attachments
-I would open the attachments
-I would use the attachments and get Egoboo compiled on my computer
-I would upload the compiled Egoboo
...? _________________ http://www.freewebs.com/maxaxle88/
Inventor class last updated: July 9, 2008
Download: https://sourceforge.net/projects/maxaxlesegoboos
FREE PIZZA TOMORROW |
|
| Back to top |
|
 |
denis3 Developer


Joined: 23 Dec 2007 Age: 16 Posts: 498 Location: New Zealand
|
Posted: Wed Jan 16, 2008 12:58 am Post subject: |
|
|
Nope, to be able to edit Egoboo, you need to know how to compile it. Compiling it is not easy, for those who are new to programing. _________________ Season: 3
Projects for Egoboo: Egoboo - Adventure edition
Egoboo community job: Fixing bugs and game testing.
Total code bug fixes: 3
Total game bug fixes (This season): 1 |
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2306 Location: Norway
|
Posted: Wed Jan 16, 2008 8:01 am Post subject: |
|
|
Nice work. Listing all dependencies and libraries on one page.
You should also mention that we have a SVN repository up too (A place where all the coders can add their latest work and share everything, enabling many coders to work with the same code at the same time). _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
denis3 Developer


Joined: 23 Dec 2007 Age: 16 Posts: 498 Location: New Zealand
|
Posted: Wed Jan 16, 2008 8:31 am Post subject: |
|
|
Yeh, although that one is a bit complicated, because I'm not that an ADVANCED programmer, I consider myself a beginner. I should install SVN soon though, if I want to try to fix bugs properly. _________________ Season: 3
Projects for Egoboo: Egoboo - Adventure edition
Egoboo community job: Fixing bugs and game testing.
Total code bug fixes: 3
Total game bug fixes (This season): 1 |
|
| Back to top |
|
 |
Breakable Grub Bug

Joined: 04 Jun 2008 Posts: 1
|
Posted: Wed Jun 04, 2008 4:14 pm Post subject: |
|
|
Hi,
I have trouble compiling.
The trunk throws error:
Error 63 error C2198: 'sv_frameStep' : too few arguments for call d:\prj\private\egobo\trunk\game\mainloop.c 54
and the 2.7.7 gives:
Error 1 error C2143: syntax error : missing '{' before '.' d:\prj\private\egobo\tags\egoboo 2.7.7\game\cartman.c 138
Something uncommitted? |
|
| Back to top |
|
 |
bgbirdsey Developer

Joined: 25 Sep 2007 Posts: 873 Location: Minnesota
|
Posted: Wed Jun 04, 2008 5:00 pm Post subject: |
|
|
there are several files that are included with the source that are not to be compiled a this time.
Remove or disable the compiling of:
MainLoop.c
file_lin.c
file_mac.c
System_lin.c
System_mac.c
cartman.c
cartman_mouse3.c
cartman_scale.c
cartman_standard.c
|
|
| Back to top |
|
 |
Zefz Lead Designer


Joined: 16 Sep 2007 Posts: 2306 Location: Norway
|
Posted: Wed Jun 04, 2008 5:35 pm Post subject: |
|
|
Maybe I should commit my solution that compiles. Then at least VC++ studio 2008 users can compile the trunk correctly. _________________ http://egoboo.sourceforge.net
"The pen is mightier than the sword- IF it is sharpened, dipped in poison and thrown really really hard at your target. But seriously, you are better off with a sword." |
|
| Back to top |
|
 |
bgbirdsey Developer

Joined: 25 Sep 2007 Posts: 873 Location: Minnesota
|
Posted: Wed Jun 04, 2008 6:38 pm Post subject: |
|
|
That is a good idea.
vs8 can still import the vs7 solution, but maybe some of the settings will not be ideal? |
|
| Back to top |
|
 |
|