Editing MG/FreeBSD Compiling
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{Wikify}} | |
+ | Get the source from svn: | ||
− | + | svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest | |
− | + | BUILD DEPENDENCIES: | |
− | + | Following build deps have to be met: | |
− | Following build | + | |
− | < | + | B-deps:<br />aalib-1.4.r5_5 autoconf-2.67 autoconf-wrapper-20071109 automake-1.9.6_4 \<br />automake-wrapper-20071109 damageproto-1.2.0 dri2proto-2.2 expat-2.0.1_1 \<br />fixesproto-4.1.1 freealut-1.1.0_2 jam-2.5_2 kbproto-1.0.4 libGL-7.4.4 libGLU-7.4.4 \<br />libX11-1.3.3_1,1 libXau-1.0.5 libXdamage-1.1.2 libXdmcp-1.0.3 libXext-1.1.1,1 \<br />libXfixes-4.0.4 libXrandr-1.3.0 libXrender-0.9.5 libXxf86vm-1.1.0 libdrm-2.4.12_1 \<br />libiconv-1.13.1_1 libogg-1.2.0,4 libpthread-stubs-0.3_3 libvorbis-1.3.1,3 libxcb-1.7 \<br />lua-5.1.4_5 m4-1.4.15,1 openal-soft-1.12.854_1 perl-5.10.1_2 pkg-config-0.25_1 \<br />randrproto-1.3.1 renderproto-0.11 sdl-1.2.14_2,2 xerces-c2-2.7.0_1 xextproto-7.1.1 \<br />xf86vidmodeproto-2.3 xproto-7.0.16 wxgtk2-unicode-2.8.10_4 |
− | aalib-1.4. | + | |
− | autoconf-wrapper-20071109 | + | Install these package e.g. from ports tree. |
− | automake-1.9.6_4 | ||
− | automake-wrapper-20071109 | ||
− | |||
− | damageproto-1.2.0 | ||
− | dri2proto-2.2 | ||
− | expat-2.0.1_1 | ||
− | fixesproto-4.1.1 | ||
− | freealut-1.1.0_2 | ||
− | jam-2.5_2 | ||
− | kbproto-1.0.4 | ||
− | libGL-7.4.4 | ||
− | libGLU-7.4.4 | ||
− | libX11-1.3.3_1,1 | ||
− | libXau-1.0.5 | ||
− | libXdamage-1.1.2 | ||
− | libXdmcp-1.0.3 | ||
− | libXext-1.1.1,1 | ||
− | libXfixes-4.0.4 | ||
− | libXrandr-1.3.0 | ||
− | libXrender-0.9.5 | ||
− | libXxf86vm-1.1.0 | ||
− | libdrm-2.4.12_1 | ||
− | libiconv-1.13.1_1 | ||
− | libogg-1.2.0,4 | ||
− | libpthread-stubs-0.3_3 | ||
− | libvorbis-1.3.1,3 | ||
− | libxcb-1.7 | ||
− | lua-5.1.4_5 | ||
− | m4-1.4.15,1 | ||
− | openal-soft-1.12.854_1 | ||
− | perl-5.10.1_2 | ||
− | pkg-config-0.25_1 | ||
− | randrproto-1.3.1 | ||
− | renderproto-0.11 | ||
− | sdl-1.2.14_2,2 | ||
− | xerces-c2-2.7.0_1 | ||
− | xextproto-7.1.1 | ||
− | xf86vidmodeproto-2.3 | ||
− | xproto-7.0.16 | ||
− | wxgtk2-unicode-2.8.10_4 | ||
− | |||
Recently the build system was changed to cmake. Therefor you should just have to do: | Recently the build system was changed to cmake. Therefor you should just have to do: | ||
+ | |||
./build-mg.sh | ./build-mg.sh | ||
− | |||
− | + | ||
− | If you are going to compile from older version of the source tree, with jam, read on. | + | |
+ | in the megaglest directory. If you are going to compile from older version of the source tree, with jam, read on. | ||
+ | |||
+ | |||
+ | |||
+ | '''ATTENTION: jam is needed to build MegaGlest, not make''' | ||
go to megaglest/mk/linux and run | go to megaglest/mk/linux and run | ||
./autogen.sh | ./autogen.sh | ||
+ | |||
next call the configure script this way: | next call the configure script this way: | ||
+ | |||
./configure --with-libxerces=/usr/local --with-libOpenAL=/usr/local --with-libLibPng=/usr/local \ | ./configure --with-libxerces=/usr/local --with-libOpenAL=/usr/local --with-libLibPng=/usr/local \ | ||
--with-libLibJPEG=/usr/local --with-libLibCurl=/usr/local --with-libLibX11=/usr/local \ | --with-libLibJPEG=/usr/local --with-libLibCurl=/usr/local --with-libLibX11=/usr/local \ | ||
Line 69: | Line 36: | ||
If this has finnished successfully without errors and a message like this: | If this has finnished successfully without errors and a message like this: | ||
− | '''Notice: This project uses jam (and not make) as build tool.''' | + | '''Notice: This project uses jam (and not make) as build tool.''' |
+ | |||
+ | type in: | ||
jam | jam | ||
− | If everything went well the last lines of the output of jam should look like this: | + | If everything went well the last lines of the output of jam should look like this:<br />[....]<br />LinkApplication glest_configurator<br />...updated 257 target(s)... |
− | + | You should create under megaglest/mk/linux a new folder: | |
− | |||
− | |||
mkdir mydata | mkdir mydata | ||
Line 90: | Line 57: | ||
Now you can start MegaGlest by typing within the folder megaglest/mk/linux | Now you can start MegaGlest by typing within the folder megaglest/mk/linux | ||
./glest.bin | ./glest.bin | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:MG]] | [[Category:MG]] | ||
− | |||
− |