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}} | ||
This page explains how to compile [[MegaGlest]] on FreeBSD. | This page explains how to compile [[MegaGlest]] on FreeBSD. | ||
==Getting the source code== | ==Getting the source code== | ||
− | + | Get the source from svn: | |
+ | |||
+ | svn co https://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk megaglest | ||
==Build dependencies== | ==Build dependencies== | ||
Line 50: | Line 53: | ||
wxgtk2-unicode-2.8.10_4</pre> | wxgtk2-unicode-2.8.10_4</pre> | ||
− | |||
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 | ||
− | |||
− | + | in the megaglest directory. If you are going to compile from older version of the source tree, with jam, read on. | |
− | If you are going to compile from older version of the source tree, with jam, read on. | ||
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 72: | ||
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 91: | Line 94: | ||
./glest.bin | ./glest.bin | ||
− | + | ==Alternative method== | |
*Retrieve two files from the [http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155111 corresponding PR]. | *Retrieve two files from the [http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155111 corresponding PR]. | ||
− | *Get the [http://www.freebsd.org/cgi/query-pr.cgi?prp=155111-1-txt&n=/megaglest.shar megaglest.shar] and the [http://www.freebsd.org/cgi/query-pr.cgi?prp=155111-2-txt&n=/megaglest-data. | + | *Get the [http://www.freebsd.org/cgi/query-pr.cgi?prp=155111-1-txt&n=/megaglest.shar megaglest.shar] and the [http://www.freebsd.org/cgi/query-pr.cgi?prp=155111-2-txt&n=/megaglest-data.sharmegaglest-data.shar] files. |
As root user, copy or move these files to <tt>/usr/ports/games</tt> and execute them: | As root user, copy or move these files to <tt>/usr/ports/games</tt> and execute them: | ||
+ | |||
sh megaglest.shar | sh megaglest.shar | ||
+ | |||
sh megaglest-data.shar | sh megaglest-data.shar | ||
Line 102: | Line 107: | ||
Go to <tt>/usr/ports/games/megaglest</tt> and install it like any other port by typing: | Go to <tt>/usr/ports/games/megaglest</tt> and install it like any other port by typing: | ||
+ | |||
cd /usr/ports/games/megaglest ; make install clean | cd /usr/ports/games/megaglest ; make install clean | ||
After build and installation has finished successfully you should be able to start MegaGlest by typing: | After build and installation has finished successfully you should be able to start MegaGlest by typing: | ||
+ | |||
megaglest | megaglest | ||
==See Also== | ==See Also== | ||
*[[MegaGlest]] | *[[MegaGlest]] | ||
− | |||
− | |||
− | |||
[[Category:MG]] | [[Category:MG]] | ||
− | |||
− |