Editing MG/Mac 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 4: Line 4:
 
==Prerequisites==
 
==Prerequisites==
 
* XCode (from App store)
 
* XCode (from App store)
 +
* [http://developer.apple.com/opensource/tools/x11.html X11 for Mac OS] (stable / older version)
 
* Various 3rd party build dependencies, also GCC compiler (all from MacPorts)
 
* Various 3rd party build dependencies, also GCC compiler (all from MacPorts)
  
Line 15: Line 16:
 
In this example you'll see how to install the packages with MacPorts which will handle the install of dependencies. (Full dependency lists are available in [[MG/Linux Compiling|Linux Compiling]] section if something is missing and you would like to install them manually.)
 
In this example you'll see how to install the packages with MacPorts which will handle the install of dependencies. (Full dependency lists are available in [[MG/Linux Compiling|Linux Compiling]] section if something is missing and you would like to install them manually.)
  
   sudo port install git pkgconfig cmake libsdl2 lua jpeg libpng freetype ftgl libogg glew libvorbis cppunit fribidi miniupnpc
+
   sudo port install git pkgconfig cmake libsdl lua jpeg libpng freetype ftgl libogg glew libvorbis cppunit fribidi miniupnpc gcc5 wxWidgets-3.0
 
 
  sudo port install curl wxWidgets-3.0
 
 
If you have few possibilities, then always install latest stable version (or even older) of the package (not beta or devel).
 
If you have few possibilities, then always install latest stable version (or even older) of the package (not beta or devel).
  
Choosing correct [http://www.xquartz.org/releases/index.html X11 for Mac OS] is a bit tricky especially if you have some version already installed, but if you haven't just do:
+
Don't try compile with VLC unless you really have to (long list of "dynamic" dependencies).
  sudo port install xorg-server
 
 
 
Don't try compile with VLC unless you really have to (long list of nasty "dynamic" dependencies).
 
  
  
Line 30: Line 26:
  
 
* Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks
 
* Retrieve the build dependencies / 3rd party libraries and extract the contents of the archive in your library directory ~/Library/Frameworks
 +
  
 
=== Configuring Environment ===
 
=== Configuring Environment ===
Line 105: Line 102:
 
*[[MG/Windows Compiling|Windows Compiling]]
 
*[[MG/Windows Compiling|Windows Compiling]]
 
*[[MG/FreeBSD Compiling|FreeBSD Compiling]]
 
*[[MG/FreeBSD Compiling|FreeBSD Compiling]]
 
 
[[Category:MG]]
 
[[Category:Development]]
 

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)