don't click here

Preparing Mobius for development on Windows

Discussion in 'Mobius Engine Project' started by Relick, Nov 29, 2012.

  1. Relick

    Relick

    Member
    197
    0
    16
    England
    C++/DX10 Engine (not sonic related)
    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.
    [​IMG]

    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.
    [​IMG]
    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.
    [​IMG]
    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:

    Code (Text):
    1. 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)

    [​IMG]

    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.
    [​IMG]

    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.
    [​IMG]
    Append to the beginning of the line:
    Code (Text):
    1. C:\MinGW\bin;
    [​IMG]
    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):

    Code (Text):
    1. cd C:\Users\<name>\mobius-game-engine
    2. mingw32-make
    This will put mobius.exe into your bin/Windows folder. Double click it to play use.
    [​IMG]

    If people fail to understand my explanation (Please don't hesitate to ask me to clarify) then I'll add some pictures. Done.
     
  2. Sofox

    Sofox

    Member
    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. Sofox

    Sofox

    Member
    Thanks again Relick, I've added your full set of instructions to the wiki here: https://bitbucket.org/Sofox/mobius-game-engine/wiki/Build_Instructions (had to edit your screenshots for resolution though, hope that's okay).

    Once again, greatly appreciated.
     
  4. Aerosol

    Aerosol

    Not here. Moderator
    11,163
    573
    93
    Not where I want to be.
    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?
     
  5. Relick

    Relick

    Member
    197
    0
    16
    England
    C++/DX10 Engine (not sonic related)
    I'm in the IRC if you need me.