|
User Documentation Developer Documentation
ToDo
Other |
Doc /
BuildingInWindowsDoc.BuildingInWindows HistoryHide minor edits - Show changes to output Sat, 14 Apr 12 21:05:54 +0000
by - mention move to git
Added lines 33-34:
Please note that [=FreedroidRPG=] has moved to git. This page has to be updated, and will be updated in a bit. Thu, 08 Sep 11 22:07:12 +0000
by - typo fix
Changed line 5 from:
Python will be needed during the build of [=FreedroidRPG=], so you to:
Python will be needed during the build of [=FreedroidRPG=], so you first need to install it. Added lines 3-8:
! Installation of [=Python=] Python will be needed during the build of [=FreedroidRPG=], so you frist need to install it. * Download and install [=ActivePython=] from http://www.activestate.com/activepython/downloads Wed, 06 Apr 11 00:29:36 +0000
by - Added alternative svn download link, since alagazam is down
Added lines 32-33:
If that doesn't work, try: -> @@[=wget slaxer.com/chucks/svn-win32-1.6.16.zip=]@@ Tue, 05 Apr 11 23:05:44 +0000
by - Changed svn checkout url to use http instead of https
Changed line 59 from:
-> @@[=svn co to:
-> @@[=svn co http://freedroid.svn.sourceforge.net/svnroot/freedroid freedroid=]@@ Tue, 05 Apr 11 21:54:42 +0000
by - Added sdltest note
Changed line 66 from:
-> @@[=CFLAGS=-I/include ./configure --without-x=]@@ to:
-> @@[=CFLAGS=-I/include ./configure --without-x --disable-sdltest=]@@ Deleted lines 47-49:
If you also want to be able to launch the game by double-clicking on the [=freedroidRPG=] executable's icon, type the following commands: Changed line 50 from:
If you also want to be able to launch the game by double-clicking on the [=freedroidRPG=] executable's icon, to:
If you also want to be able to launch the game by double-clicking on the [=freedroidRPG=] executable's icon, type the following commands: Changed line 15 from:
and a ''[=MinGW Shell=]'' to:
and a ''[=MinGW Shell=]'' subentry. Changed line 22 from:
* If you want a better terminal than the one provided by default, open the properties of the ''[=MinGW Shell=]'' menu to:
* If you want a better terminal than the one provided by default, open the properties of the ''[=MinGW Shell=]'' menu subentry (by right-clicking on it), and change the target to @@[=C:\MinGW\msys\1.0\msys.bat --mintty=]@@, and launch a new ''[=MinGW Shell=]'' Changed line 24 from:
to:
'''Nota''': When you start a ''[=MinGW Shell=]'', the current directory is your '''HOME''' directory. This '''HOME''' directory can be found in @@[=C:\MinGW\msys\1.0\home\<your_username>=]@@ Changed line 26 from:
to:
! SVN installation Changed lines 28-35 from:
* libogg * libvorbis * SDL_Mixer * zlib * libjpeg * libpng * SDL_Image to:
To retrieve [=FreedroidRPG=] source files, you will need to use Subversion (SVN in short) (http://subversion.apache.org/). There are several graphical Windows clients for SVN, the most known and used being [=TortoiseSVN=]. Here, we will use the command line client. Changed lines 30-35 from:
to:
To download, extract and ''install'' the SVN tool, type the following commands in a ''[=MinGW Shell=]'': -> @@[=wget http://alagazam.net/svn-1.6.16/svn-win32-1.6.16.zip=]@@ -> @@[=unzip svn-win32-1.6.16.zip=]@@ -> @@[=cd svn-win32-1.6.16=]@@ -> @@[=cp -r bin iconv share /=]@@ -> @@[=cd=]@@ Changed line 37 from:
! to:
! [=FreedroidRPG=] dependencies installation Changed line 39 from:
to:
In order to compile [=FreedroidRPG=], you have to first install some library dependencies. We provide those libraries in 2 binary packages, so you do not need to compile them yourself. Changed lines 41-43 from:
to:
In a ''[=MinGW Shell=]'', type the following commands: -> @@[=wget http://buildbot.freedroid.org/downloads/freedroidRPG_dev.tar.gz=]@@ -> @@[=wget http://buildbot.freedroid.org/downloads/freedroidRPG_dependencies.zip=]@@ -> @@[=cd /=]@@ -> @@[=tar -xzf ~/freedroidRPG_dev.tar.gz=]@@ -> @@[=cd /bin=]@@ -> @@[=unzip ~/freedroidRPG_dependencies.zip=]@@ -> @@[=cd=]@@ Changed lines 50-53 from:
to:
If you also want to be able to launch the game by double-clicking on the [=freedroidRPG=] executable's icon, also type the following commands: -> @@[=cd /c/WINDOWS/system32=]@@ -> @@[=unzip ~/freedroidRPG_dependencies.zip=]@@ -> @@[=cd=]@@ Changed lines 55-56 from:
libraries which I've already built by hand: to:
! [=FreedroidRPG=] compilation Changed line 57 from:
to:
So, you are now finally ready to download and compile the game ! Changed line 59 from:
to:
In a ''[=MinGW Shell=]'', do the following: Changed lines 61-62 from:
to:
* download the source files with svn: -> @@[=svn co https://freedroid.svn.sourceforge.net/svnroot/freedroid freedroid=]@@ Changed lines 64-65 from:
You can find them all here, to:
* enter freedroid source directory: -> @@[=cd freedroid=]@@ Changed lines 67-70 from:
to:
* compile the game: -> @@[=./autogen.sh=]@@ -> @@[=CFLAGS=-I/include ./configure --without-x=]@@ -> @@[=make=]@@ Changed lines 72-77 from:
to:
'''Nota:''', if an error window opens complaining about ''libgmp-10.dll'' missing, then you used a bugged version of the [=MinGW=] installer (some [=DLLs=] are not correctly installed). To fix the problem, just type the following commands: -> @@[=cp /mingw/bin/libgmp-10.dll /mingw/libexec/gcc/mingw32/4.5.2=]@@ -> @@[=cp /mingw/bin/libmpc-2.dll /mingw/libexec/gcc/mingw32/4.5.2=]@@ -> @@[=cp /mingw/bin/libmpfr-1.dll /mingw/libexec/gcc/mingw32/4.5.2=]@@ -> @@[=cp /mingw/bin/libiconv-2.dll /mingw/mingw32/bin=]@@ -> @@[=cp /mingw/bin/libintl-8.dll /mingw/mingw32/bin=]@@ Changed lines 79-81 from:
to:
If everything went alright, you will find a @@[=freedroidRPG.exe=]@@ file in the src/ subdirectory. You can launch it from the terminal: -> @@[=cd src=]@@ -> @@[=./freedroidRPG=]@@ Changed lines 83-84 from:
to:
or you can just double-click on the executable's icon from the File Explorer. You will find it in @@[=C:\MinGW\msys\1.0\home\<your_username>\freedroid\src=]@@ Changed lines 85-90 from:
Now, run the configure file like this: CFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib" ./configure --prefix=/usr If everything went alright, you can now build Freedroid RPG as usual just by typing "make". If there are any errors, make sure you have installed every single of the required dependencies. to:
Enjoy the game ! Changed line 7 from:
* Get the to:
* Get the lastest version of [=MinGW=] from http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/ Changed line 1 from:
This page explains the required steps to build to:
This page explains the required steps to build [=FreedroidRPG=] under Windows with [=MinGW=]/[=MSys=]. Changed line 3 from:
! to:
! Installation of [=MinGW=] Changed line 5 from:
Before trying to build to:
Before trying to build [=FreedroidRPG=] under Windows, you need to setup a development environment that will "mimic" a Unix development environment: Changed lines 7-11 from:
* * [=MSys=]: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.9/MSYS-1.0.9.exe/download * [=MSys=] Developer Toolkit: http://downloads.sf.net/mingw/msysDTK-1.0.1.exe?download * Autoconf 2.65 or newer: http://ftp.gnu.org/gnu/autoconf/ * Automake 1.9 or newer: http://ftp.gnu.org/gnu/automake to:
* Get the last version of [=MinGW=] from http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/ Changed lines 9-22 from:
to:
* Run the downloaded installer, and: -> * Choose to 'download latest repository catalogues' -> * Choose following destination: [=C:\MinGW=] (if you choose an other destination, you'll have to adapt the rest of this How-To) -> * On the components selection screen, add '[=MinGW Developer Toolkit=]' Once installed, you'll have a new ''[=MinGW=]'' entry in your Start Menu, and a ''[=MinGW Shell=]'' submenu. * Launch ''[=MinGW Shell=]'', and in the terminal window just opened, type: -> @@mingw-get install msys-wget@@ -> @@mingw-get install msys-unzip@@ -> @@mingw-get install msys-mintty@@ * If you want a better terminal than the one provided by default, open the properties of the ''[=MinGW Shell=]'' menu entry, change the target to @@[=C:\MinGW\msys\1.0\msys.bat --mintty=]@@, and launch a new ''[=MinGW Shell=]'' Sat, 24 Apr 10 09:36:12 +0000
by - remove reference to ranlib call, removed in rev 2666
Changed lines 63-70 from:
if [=WIN32=] i686-pc-mingw32-ranlib ../lua/liblua.a endif Remove them if they do. Now, run the configure file like this: to:
Now, run the configure file like this: Changed line 13 from:
The versions of automake and autoconf packed in the MSys Developer Toolkit are outdated to build Freedroid; you'll need to manually download and compile more recent versions. to:
The versions of automake and autoconf packed in the [=MSys=] Developer Toolkit are outdated to build Freedroid; you'll need to manually download and compile more recent versions. Changed line 65 from:
if to:
if [=WIN32=] Changed line 1 from:
This page explains the required steps to build Freedroid RPG under Windows with MinGW/MSys. to:
This page explains the required steps to build Freedroid RPG under Windows with [=MinGW=]/[=MSys=]. Changed line 9 from:
* MSys Developer Toolkit: http://downloads.sf.net/mingw/msysDTK-1.0.1.exe?download to:
* [=MSys=] Developer Toolkit: http://downloads.sf.net/mingw/msysDTK-1.0.1.exe?download Changed line 32 from:
To manually install all dependencies, download their source code and build it from the MSys prompt like this: to:
To manually install all dependencies, download their source code and build it from the [=MSys=] prompt like this: Changed lines 7-8 from:
* MinGW: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download * MSys: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.9/MSYS-1.0.9.exe/download to:
* [=MinGW=]: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download * [=MSys=]: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.9/MSYS-1.0.9.exe/download Changed lines 1-73 from:
to:
This page explains the required steps to build Freedroid RPG under Windows with MinGW/MSys. ! Program Dependencies Before trying to build Freedroid RPG under Windows, the following software must be installed: * MinGW: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download * MSys: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.9/MSYS-1.0.9.exe/download * MSys Developer Toolkit: http://downloads.sf.net/mingw/msysDTK-1.0.1.exe?download * Autoconf 2.65 or newer: http://ftp.gnu.org/gnu/autoconf/ * Automake 1.9 or newer: http://ftp.gnu.org/gnu/automake/ The versions of automake and autoconf packed in the MSys Developer Toolkit are outdated to build Freedroid; you'll need to manually download and compile more recent versions. ! Library Dependencies The following library dependencies are also required to build Freedroid RPG: * SDL * libogg * libvorbis * SDL_Mixer * zlib * libjpeg * libpng * SDL_Image Note that lua is no longer required as an external library, since it ships inside the Freedroid SVN. !! Manual installation To manually install all dependencies, download their source code and build it from the MSys prompt like this: CFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib" ./configure --prefix=/usr make make install !! Packaged libraries Alternatively, if you run on 32 bit Windows (2000, XP, Vista, 7), you can download a package with all the required libraries which I've already built by hand: http://www.bellverde.org/files/freedroid/frd_deps.zip It must be extracted to the MSys root, by default C:\Msys\1.0\ ! Building Freedroid Before building the game, make sure that all the required DLLs from all the libraries we've compiled can be found on the path. You can find them all here, http://www.bellverde.org/files/freedroid/frd_dlls.zip You can place them in your path by copying them to your /src/ folder or to C:\Windows\System32 The next step is generating the configure file for Freedroid: change to your source checkout and run autogen cd freedroid ./autogen.sh If autogen fails, make sure you have installed the latest versions of both automake and autoconf. When the configure file has been created, check your freedroid\src\Makefile.am and make sure the following lines don't exist: if WIN32 i686-pc-mingw32-ranlib ../lua/liblua.a endif Remove them if they do. Now, run the configure file like this: CFLAGS="-I/usr/include" LDFLAGS="-L/usr/lib" ./configure --prefix=/usr If everything went alright, you can now build Freedroid RPG as usual just by typing "make". If there are any errors, make sure you have installed every single of the required dependencies. |