Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 31

Thread: [Tutorial] Recompiling KeeperFX - MinGW, MSYS and Coreutils

  
  1. #1
    Beetle Stanislas Dolcini's Avatar
    Join Date
    Aug 2012
    Location
    France
    Posts
    113
    Gamer IDs

    Steam ID: StanleySweet Raptr ID: stanleysweet

    Default [Tutorial] Recompiling KeeperFX - MinGW, MSYS and Coreutils

    For All that are as messed up as I am about compilation here is what you need to do.


    METHOD 1


    First you need to download and install the exe file on this page.Check everything in the installation options.

    http://sourceforge.net/projects/ming...inst-20120426/

    Then download all the files in the next link except the readme file. Extract all of them in the same folder.
    Then overwrite the folders in the Mingw folder at the root

    http://sourceforge.net/projects/ming...msys-1.0.18-1/

    Then download all the files in the next link except the readme file. Extract all of them in the same folder.
    Then overwrite the Msys\1.0 in Mingw

    http://sourceforge.net/news/?group_id=2435&id=309746

    Finally install Coreutils

    http://gnuwin32.sourceforge.net/downlinks/coreutils.php

    Then you need to change environment variables:
    Right-click My Computer, and then click Properties.
    Click the Advanced tab.
    Click Environment variables.
    Double click on path
    add ";C:\MinGW\bin;C:\Program Files (x86)\GnuWin32\bin"(Without quotes)

    after that if you want to compile the keeper fx follow mefisto's guide
    https://code.google.com/p/keeperfx/s...structions.txt

    In order to the "make package" command to work you need to copy the file 7z.exe from you 7zip installation folder to C:\MinGW\msys\1.0\bin
    A restart may be needed.

    METHOD 2

    1. Install MinGW with MSYS

    You need to download and install the exe file on this page. Check MSYS in the installation options - it's important! You may actually check everything.
    http://sourceforge.net/projects/ming...inst-20120426/

    2. Add MSYS path to system variables

    To change environment variables:
    • Right-click My Computer, and then click Properties.
    • Click the Advanced tab.
    • Click Environment variables.
    • Double click on "PATH"
    • add ";C:\MinGW\bin;C:\MinGW\msys\1.0\bin" (without quotes, with semicolon)


    3. Update MinGW packages

    • Go to C:\MinGW\Msys\1.0
    • Run Msys.bat
    • In the command line type
      Code:
      mingw-get update
      mingw-get upgrade
      mingw-get install msys-coreutils


    3. Follow build guide

    after that if you want to compile the keeper fx follow mefisto's guide
    https://code.google.com/p/keeperfx/s...structions.txt

    In order to the "make package" command to work you need to copy the file 7z.exe from you 7zip installation folder to C:\MinGW\msys\1.0\bin
    A restart may be needed.
    Last edited by mefistotelis; December 27th, 2012 at 16:03.

  2. #2
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    Nice guide! Still, could be improved a bit:

    During MinGW installation, you may select to install MSYS, so you won't need to install second package.
    (note: it's better to use "sh.exe" from MSYS instead of "cmd.exe" as a console shell for invoking the commands below; just Start->Run sh)

    All packages in MinGW may be upgraded with "mingw-get", like this:
    Code:
    mingw-get update
    mingw-get upgrade
    Invoking these two commands will always bring your version of MinGW to the latest. You don't have to download upgrades and install manually.

    Installing additional packages is also that simple:
    Code:
    mingw-get install msys-coreutils

  3. #3
    Beetle Stanislas Dolcini's Avatar
    Join Date
    Aug 2012
    Location
    France
    Posts
    113
    Gamer IDs

    Steam ID: StanleySweet Raptr ID: stanleysweet

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    May be wrong but If I remember correctly on the website they say that this command (mingw-get) only allows you to get the 3.** versions because they are no more updated.
    Quote from http://www.mingw.org/wiki/Getting_Started
    "MinGW-5.1.6.exe to install any version of GCC later than 3.4.5."

    Will had that part in the tutorial =) I didn't put it because I'm not really familiar with those commands.

    EDIT : To make a nightly build in one row just type "make standard;make heavylog;make package"
    Last edited by Stanislas Dolcini; December 26th, 2012 at 14:56.

  4. #4
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    Quote Originally Posted by Stanislas Dolcini View Post
    May be wrong but If I remember correctly on the website they say that this command (mingw-get) only allows you to get the 3.** versions because they are no more updated.
    You are right, they weren't updated for some time.

    Anyway, now the upgrade command seem to download exactly what we want.
    This is part of the messages shown by "mingw-get upgrade":
    Code:
    upgrade: libgcc-4.7.2-1-mingw32-dll-1.tar.lzma
    mingw-get.exe: *** INFO *** package libgcc-4.7.2-1-mingw32-dll-1.tar.lzma is up to date
    upgrade: gcc-4.7.2-1-mingw32-lic.tar.lzma
    mingw-get.exe: *** INFO *** package gcc-4.7.2-1-mingw32-lic.tar.lzma is up to date

  5. #5
    Beetle Stanislas Dolcini's Avatar
    Join Date
    Aug 2012
    Location
    France
    Posts
    113
    Gamer IDs

    Steam ID: StanleySweet Raptr ID: stanleysweet

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    So for a guy who now nothing. He installs http://sourceforge.net/projects/ming...inst-20120426/ then he goes to the msys folder after setting the environnement variables and launch msys.bat

    After that all he has to do is type mingw-get upgrade; mingw-get install msys-coreutils and he gets everything ?

  6. #6
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    Quote Originally Posted by Stanislas Dolcini View Post
    After that all he has to do is type mingw-get upgrade; mingw-get install msys-coreutils and he gets everything ?
    Yes; but before "mingw-get upgrade", he needs "mingw-get update" - this downloads the information about latest available packages.

  7. #7
    Beetle Stanislas Dolcini's Avatar
    Join Date
    Aug 2012
    Location
    France
    Posts
    113
    Gamer IDs

    Steam ID: StanleySweet Raptr ID: stanleysweet

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    Updated first post.

  8. #8
    Beetle Stanislas Dolcini's Avatar
    Join Date
    Aug 2012
    Location
    France
    Posts
    113
    Gamer IDs

    Steam ID: StanleySweet Raptr ID: stanleysweet

    Default Re: [Tuto] Mingw Msys and Gnu Coreutils

    Maybe you could stick it =)

  9. #9

    Default Re: [Tutorial] Recompiling KeeperFX - MinGW, MSYS and Coreutils

    I have successfully built KeeperFX using the instructions here.

    I would like to go a bit further and play around with the code.

    Can anyone recommend the best way to approach this, notepad is a bit cumbersome,
    I have installed codeblocks ide but would need to create a project file?

    Thanks

  10. #10
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: [Tutorial] Recompiling KeeperFX - MinGW, MSYS and Coreutils

    Quote Originally Posted by Ernisius View Post
    Can anyone recommend the best way to approach this, notepad is a bit cumbersome,
    I have installed codeblocks ide but would need to create a project file?
    You can create a project in any IDE.

    I'm using Eclipse CDT for KeeperFX development.
    The files ".project" and ".cproject" included in KeeperFX repository are eclipse project files.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •