Sonic and Sega Retro Message Board: Preparing Mobius for development on Windows - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Preparing Mobius for development on Windows Also a general compilation guide for windows

#1 User is offline Relick 

Posted 29 November 2012 - 01:03 PM

  • Posts: 197
  • Joined: 20-March 10
  • Gender:Male
  • Location:England
  • Project:C++/DX10 Engine (not sonic related)
  • Wiki edits:5
Sofox asked me to I get get all the bitbucket repo downloaded and compiled on Windows, so I did just that. I initially did it with Visual Studio so I knew what to put where, then I converted what I learnt from there into the makefile for use with NinGW.

1) Download Prerequisites
You'll need GIT, MinGW and SDL.

2) Install GIT and MinGW
Both are self-explanatory installers, but remember that when you install MinGW you need to tick the C++ compiler box - this is extremely important.
Posted Image

3) Install SDL into MinGW
This bit is a bit more difficult. Navigate to where you installed MinGW (default is C:\MinGW\). Navigate to the 'include' folder inside here. Open/extract the SDL file and drag the 'SDL' folder located inside 'include' into MinGW's 'include' folder.
Posted Image
Now in MinGW go back up a folder and navigate to the 'lib' folder. Copy everything from the 'lib' folder in the SDL file into MinGW's 'lib' folder.
Posted Image
Now you are done with MinGW, but leave the SDL file open somewhere.


4) Clone the Repo
Open GIT Bash and type in the command:

git clone https://bitbucket.org/Sofox/mobius-game-engine.git


This will download everything on the repo straight to your home folder (C:\Users\<name>\mobius-game-engine)

Posted Image

5) Copy in the SDL dll
Within the mobius-game-engine folder, navigate through these folders:
bin/Windows
then in the SDL file we used earlier, look inside it's bin folder and copy to the folder above the SDL.dll.
Posted Image

6) Modify PATH
Press Start, then right click on My Computer and then click Properties. From the window that opens, click Advanced (or anything similar to it) then Environment Variables. Scroll down in System Variables until you find PATH and open it up. DO NOT DELETE ANYTHING.
Posted Image
Append to the beginning of the line:
C:\MinGW\bin;

Posted Image
Click save, then close the window.

7) Ready
Test out whether you got it working by opening up command line (Start -> cmd) then typing these commands (replacing <name> with your name):

cd C:\Users\<name>\mobius-game-engine
mingw32-make


This will put mobius.exe into your bin/Windows folder. Double click it to play use.
Posted Image

If people fail to understand my explanation (Please don't hesitate to ask me to clarify) then I'll add some pictures. Done.
This post has been edited by Relick: 30 November 2012 - 01:15 PM

#2 User is offline Sofox 

Posted 30 November 2012 - 05:45 AM

  • Posts: 86
  • Joined: 26-March 12
  • Gender:Male
  • Location:Ireland
Relick, what you've done is awesome. Clear instructions, screenshots and everything! That is great work.

I've made your changes to the source code, thanks again!

#3 User is offline Sofox 

Posted 30 November 2012 - 07:48 PM

  • Posts: 86
  • Joined: 26-March 12
  • Gender:Male
  • Location:Ireland
Thanks again Relick, I've added your full set of instructions to the wiki here: https://bitbucket.or...ld_Instructions (had to edit your screenshots for resolution though, hope that's okay).

Once again, greatly appreciated.

#4 User is offline Aerosol 

Posted 04 December 2012 - 01:44 PM

  • FML and FU2
  • Posts: 9242
  • Joined: 27-April 08
  • Gender:Male
  • Location:Not where I want to be.
  • Project:Sonic (?): Coming summer of 2055...?
Just wanted to add my thanks too. I'm following the instructions to build Mobius myself. I'll edit this post if I have any problems.

EDIT: Success! Though...may I suggest some punctuation to the guide on the wiki to make things a little clearer?
This post has been edited by AerosolSP: 04 December 2012 - 01:58 PM

#5 User is offline Relick 

Posted 04 December 2012 - 01:45 PM

  • Posts: 197
  • Joined: 20-March 10
  • Gender:Male
  • Location:England
  • Project:C++/DX10 Engine (not sonic related)
  • Wiki edits:5

View PostAerosolSP, on 04 December 2012 - 01:44 PM, said:

Just wanted to add my thanks too. I'm following the instructions to build Mobius myself. I'll edit this post if I have any problems.


I'm in the IRC if you need me.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users