User Tools

Site Tools


en:tutorials:orx:mac:cloning_and_building_orx_on_mac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:orx:mac:cloning_and_building_orx_on_mac [2018/05/31 06:05 (6 years ago)] sausageen:tutorials:orx:mac:cloning_and_building_orx_on_mac [2024/02/26 23:17 (4 weeks ago)] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Cloning and building the Orx library on the Mac ======+====== Cloning and building the Orx library on the Mac with gmake ======
  
-In the [[en:orx:mac:setting_up_dev_on_mac|last article]], I showed you how to get your Mac ready to develop Orx by downloading the //Xcode Commandline Developer Tools// which gives you ''git'', ''gcc'' and a MacOSX SDK.+In the [[en:tutorials:orx:mac:setting_up_dev_on_mac|last article]], I showed you how to get your Mac ready to develop Orx by downloading the //Xcode Commandline Developer Tools// which gives you ''git'', ''gcc'' and a MacOSX SDK.
  
 ''git'' is the tool that we will use to clone (or download) the latest repo of the Orx library. ''git'' is the tool that we will use to clone (or download) the latest repo of the Orx library.
Line 45: Line 45:
 == [ d99b8c61d781 ] needed, current [ ] == [ d99b8c61d781 ] needed, current [ ]
 == [ d99b8c61d781 ] not in cache == [ d99b8c61d781 ] not in cache
-== Fetching [ https://bitbucket.org/orx/orx-extern/get/d99b8c61d781.zip ]+== Fetching [ https://codeload.github.com/orx/orx-extern/zip/d99b8c61d781 ]
 == Please wait! == Please wait!
 == [ d99b8c61d781 ] cached! == [ d99b8c61d781 ] cached!
Line 111: Line 111:
  
 We now have everything in place to actually build the Orx library. We now have everything in place to actually build the Orx library.
 +
 +<WRAP center round important 90%>
 +Please note the message above that says:
 +''== IMPORTANT - New environment detected: Please logout/login to refresh your environment if you're using an IDE.''
 +Just close your Terminal and open a new one so that Orx settings are available during Terminal sessions.
 +</WRAP>
  
  
Line 117: Line 123:
 Notice in the output above, Solution Projects have been created for gmake, Codelite, Code::Blocks and Xcode. Notice in the output above, Solution Projects have been created for gmake, Codelite, Code::Blocks and Xcode.
  
-At the time of writing''Codelite'' and ''Code::Blocks'' are not currently supported without hacks. That leaves ''Xcode'' and ''gmake''As we are setting up without ''Xcode'', let's use ''gmake'' as our method to build Orx as it is available to everyone (if you followed the [[en:orx:mac:setting_up_dev_on_mac|first article]]).+<WRAP center round info 90%> 
 +If you would rather compile using Xcode than gmakefollow this tutorial[[en:tutorials:orx:mac:building_orx_with_xcode_on_mac|Building the Orx Library with Xcode on Mac OS X]] 
 +</WRAP> 
 + 
 +<WRAP center round info 90%> 
 +If you would rather compile using Codelite than gmake, follow this tutorial: [[en:tutorials:orx:mac:building_orx_on_codelite_for_mac|Building the Orx library on a Mac with Codelite]] 
 +</WRAP> 
 + 
 +As we are setting up without ''Xcode'', let's use ''gmake'' as our method to build Orx as it is available to everyone (if you followed the [[en:tutorials:orx:mac:setting_up_dev_on_mac|first article]]).
  
   * cd into the build folder:   * cd into the build folder:
Line 125: Line 139:
 </code> </code>
  
-Then build the 32-bit debug version of the Orx library with:+Then build the **Debug** version of the Orx library with:
  
 <code> <code>
-$ make config=debug32+$ make config=debuguniv64
 </code> </code>
  
Line 134: Line 148:
  
 <code> <code>
-==== Building orxLIB (debug32) ==== +==== Building orxLIB (debuguniv64) ==== 
-Creating obj/x32/Debug/orxLIB+Creating obj/x64/Debug/orxLIB
 orxPlugin_EmbeddedList.cpp orxPlugin_EmbeddedList.cpp
 orxAnim.c orxAnim.c
Line 144: Line 158:
 orxTree.c orxTree.c
 Linking orxLIB Linking orxLIB
-ld: warning: directory not found for option '-L/usr/lib32'+ld: warning: directory not found for option '-L/usr/lib64'
 Running post-build commands Running post-build commands
 cp -f ../../../lib/dynamic/liborx*.dylib ../../../bin cp -f ../../../lib/dynamic/liborx*.dylib ../../../bin
-==== Building orx (debug32) ==== +==== Building orx (debuguniv64) ==== 
-Creating obj/x32/Debug/orx+Creating obj/x64/Debug/orx
 orxMain.c orxMain.c
 Linking orx Linking orx
-ld: warning: directory not found for option '-L/usr/lib32+ld: warning: directory not found for option '-L/usr/lib64
-==== Building Bounce (debug32) ==== +==== Building Bounce (debuguniv64) ==== 
-Creating obj/x32/Debug/Bounce+Creating obj/x64/Debug/Bounce
 orxBounce.c orxBounce.c
 Linking Bounce Linking Bounce
-ld: warning: directory not found for option '-L/usr/lib32'+ld: warning: directory not found for option '-L/usr/lib64'
 </code> </code>
  
-Next, create the 32-bit Profile version of the library with:+Next, create the **Profile** version of the library with:
  
 <code> <code>
-$ make config=profile32+$ make config=profileuniv64
 </code> </code>
  
-And finally, the release version of the library with:+And finally, the **Release** version of the library with:
  
 <code> <code>
-$ make config=release32+$ make config=releaseuniv64
 </code> </code>
  
-You can also create 64-bit versions if you wish with:  
- 
-<code> 
-make config=debug64 
-make config=profile64 
- 
-or 
- 
-make config=release64 
-</code> 
- 
-These are saved to the ''orx/libs/dynamic'' folder. Use finder to take a look at the output: 
- 
-{{ :en:orx:mac:orx-libraries-in-folder.jpg |}} 
- 
-You can see the ''liborx.dylib'', ''liborxd.dylib'' and the ''liborxp.dylib'' versions. 
- 
-Well done. You have compiled the Orx library which can now be used in your own game projects. 
  
-Now we are ready to [[en:orx:mac:setting_up_a_project_on_mac|make a game project of our own]].+{{section>en:tutorials:orx:mac:finding_the_orx_libraries_for_mac&nofooter&noeditbutton}}
  
  
en/tutorials/orx/mac/cloning_and_building_orx_on_mac.1527771951.txt.gz · Last modified: 2018/05/31 09:05 (6 years ago) (external edit)