Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: How to build KeeperFX pre-release SVN from scratch ?

  
  1. #1
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Question How to build KeeperFX pre-release SVN from scratch ?

    Hi !

    Does anybody can help me to compile KeeperFX pre-release from official SVN, and from scratch ? Which tools may I install ? How to do ?

    My goal is writing a complete tutorial for helping everybody having interest in KeeperFX development.

    Thanks for help me.

    Regards.

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

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Good idea.

    1. Downloading repository - you may use the console tools, or some GUI, ie. TortoiseSVN. Developers would probably prefer Eclipse CDT, which has SVN plugin, but you must install it from inside eclipse - it's called Subversive.

    2. Install libraries.
    I think you only need MinGW - http://sourceforge.net/projects/mingw/files/
    It would be nice to also install some UNIX utilities pack. A single compilation doesn't need this (I think), but they're quite useful; I may use them in the future. Also, they are used to "make clean".
    There are many packs of GNU utilities; just decompress them somewhere (the good practice is to keep them in "bin" subfolder) and make sure PATH system variable contains the folder, so that every application can find these utilities.
    You may even place them in the same place where MinGW is (just don't replace duplicates).
    Such packs are: http://gnuwin32.sourceforge.net/ or http://unxutils.sourceforge.net/

    When everything is installed and in PATH variable, just open command line in KeeperFX source folder (where Makefile is) and type "mingw32-make all". If you wish to build the debug executable, use "mingw32-make debug". But remember - between making standard version and debug one, you should run ""mingw32-make clean" - otherwise the produced EXE will be half-debug.

    Summary of the make commands:
    all - compile standard version EXE. Result is in BIN folder.
    debug - compile debug version EXE. Result is in BIN folder.
    clean - remove half-compiled files from previous execution.
    docs - create code documentation for developers (requires doxygen installed)

  3. #3
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Thanks for reply mefistotelis

    Another question : if I follow your instructions, I'll obly get a new .EXE, it's right ? How to get a complete KeeperFX CCP distrib ?

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

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    You'll get EXE and DLL.

    There are no data files on SVN, so the only way to get complete release is to download "complete version" and replace files there. You can replace campaign configs and level scripts with those from "campgns" folder, and other config files with those from "config" folder.

    Note that level scripts for original campaign (which should be placed in "levels" folder) are stored on SVN in "campgns/keeporig". Other files and folders (content of "campgns" and "config") are easy to match.

  5. #5
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Thumbs up Re: How to build KeeperFX pre-release SVN from scratch ?

    Perfect. It's works

    Note : MinGW need C++ lib selected for compiling properly KeeperFX.

    I get these files inside /bin :

    15/02/2011 21:03 1*521*152 keeperfx.dll
    15/02/2011 21:03 2*497*281 keeperfx.exe
    15/02/2011 21:03 1*641*234 keeperfx.map

    But in downloaded KeeperFX 0.38b, files size are not the same :

    13/02/2011 18:38 1*521*152 keeperfx.dll
    13/02/2011 18:46 2*493*603 keeperfx.exe
    13/02/2011 19:23 1*572*547 keeperfx.map

    Is it normal ? May be CPU options or some other details ?
    Last edited by Chr!x; February 15th, 2011 at 20:22.

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

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Hard to tell - maybe I'm using older version of some library, and maybe I've got different environment options.
    Still, this shouldn't change anything.

  7. #7
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Tutorial is done. It's in french, but automatic translate inside website will be usefull

    Thanks mefistotelis for help me.

  8. #8
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    @ mefistotelis : what IDE/sources editor do you use for KeeperFX development ?

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

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Eclipse CDT + Subversive.
    IDA Pro for disassembly and reverse-engineering (IDA project files are on keeper.lubie.org).

  10. #10
    DK.NET Owner Chr!x's Avatar
    Join Date
    Feb 2010
    Location
    France
    Posts
    46

    Default Re: How to build KeeperFX pre-release SVN from scratch ?

    Does Wascana could be more usefull than CDT Elipse 7.01 package ?

Similar Threads

  1. Unofficial Patch 1.8 - RELEASE
    By Tomix in forum Dungeon Keeper 2
    Replies: 45
    Last Post: October 28th, 2011, 17:10
  2. Why keeperFX?
    By chrisssj2 in forum KeeperFX
    Replies: 33
    Last Post: October 23rd, 2010, 21:19
  3. Release Information and Downloads
    By Metal Gear Rex in forum Journey to the Avatar's Altar
    Replies: 1
    Last Post: June 4th, 2010, 01:07
  4. WFTO Release 0.1b Information
    By Simburgur in forum War for the Overworld
    Replies: 92
    Last Post: March 27th, 2010, 22:34

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
  •