User Tools

Site Tools


en:tutorials:orx:mac:building_orx_with_xcode_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:building_orx_with_xcode_on_mac [2018/06/11 04:30 (6 years ago)] sausageen:tutorials:orx:mac:building_orx_with_xcode_on_mac [2020/08/20 05:27 (4 years ago)] (current) – ↷ Links adapted because of a move operation sausage
Line 3: Line 3:
 You can build the Orx Library using Xcode. Be warned, Xcode is a fickle mistress, so unless you already know and love Xcode, I recommend Codelite, or plain gmake for building Orx. You can build the Orx Library using Xcode. Be warned, Xcode is a fickle mistress, so unless you already know and love Xcode, I recommend Codelite, or plain gmake for building Orx.
  
-I assume you have already cloned Orx. If not, follow this guide first: [[en:orx:mac:cloning_and_building_orx_on_mac|Cloning and building the Orx library on the Mac]]+I assume you have already cloned Orx. If not, follow this guide first: [[en:tutorials:orx:mac:cloning_and_building_orx_on_mac|Cloning and building the Orx library on the Mac]]
  
 When Orx is first cloned, and the ''setup.sh'' script has been run as per that tutorial, you will have a convenient Xcode project ready for you. When Orx is first cloned, and the ''setup.sh'' script has been run as per that tutorial, you will have a convenient Xcode project ready for you.
Line 9: Line 9:
 Start by loading the Orx project with Xcode. You can find this located at: ''orx/code/build/mac/xcode''. Start by loading the Orx project with Xcode. You can find this located at: ''orx/code/build/mac/xcode''.
  
-{{ :en:orx:mac:open-orx-project-with-xcode.gif |}}+{{ tutorials:orx:mac:open-orx-project-with-xcode.gif |}}
  
-Click the ''Build'' option in the ''Product'' menu. This will build the Debug / 64-bit version of the Orx library.+Click the ''Build'' option in the ''Product'' menu. This will build the Debug version of the Orx library.
  
-{{ :en:orx:mac:xcode-product-build.gif |}}+{{ tutorials:orx:mac:xcode-product-build.gif |}}
  
 Confirm this has been built by opening Finder and visiting: ''orx/code/lib/dynamic''. You'll see the //liborxd.dylib// library file. The ''d'' in the file stands for //Debug//. Confirm this has been built by opening Finder and visiting: ''orx/code/lib/dynamic''. You'll see the //liborxd.dylib// library file. The ''d'' in the file stands for //Debug//.
  
-{{ :en:orx:mac:xcode-liborxd.gif |}}+{{ tutorials:orx:mac:xcode-liborxd.gif |}}
  
-Now compile the Profile version of the Orx Library by clicking the current Scheme of Orx/64-Bit, and selecting ''Edit Scheme''.+Now compile the Profile version of the Orx Library by clicking the current Scheme of ''orx > My Mac'', and selecting ''Edit Scheme''.
  
-{{ :en:orx:mac:xcode-edit-scheme.gif |}}+{{ tutorials:orx:mac:xcode-edit-scheme.gif |}}
  
 Here you can see the Scheme settings. Ensure you are on ''Run'' on the left, and the ''Info'' tab is selected. Here you can see the Scheme settings. Ensure you are on ''Run'' on the left, and the ''Info'' tab is selected.
  
-{{ :en:orx:mac:xcode-scheme-settings.gif |}}+{{ tutorials:orx:mac:xcode-scheme-settings.gif |}}
  
 Change the ''Build Configuration'' to ''Profile'', and click ''Close''. Select the ''Build'' menu again. Change the ''Build Configuration'' to ''Profile'', and click ''Close''. Select the ''Build'' menu again.
  
-{{ :en:orx:mac:xcode-scheme-to-profile.gif |}} +{{ tutorials:orx:mac:xcode-scheme-to-profile.gif |}} 
-{{ :en:orx:mac:xcode-product-build.gif |}}+{{ tutorials:orx:mac:xcode-product-build.gif |}}
  
 The next library will be available in the ''orx/code/lib/dynamic'' folder: The next library will be available in the ''orx/code/lib/dynamic'' folder:
  
-{{ :en:orx:mac:xcode-liborxp.gif |}}+{{ tutorials:orx:mac:xcode-liborxp.gif |}}
  
-Lastly, make the Release version of the Orx library by clicking the orx / 64-bit Scheme, and ''Edit'', then changing the ''Build Configuration'' to ''Release''+Lastly, make the Release version of the Orx library by clicking the ''orx > My Mac'' Scheme, and ''Edit Scheme'', then changing the ''Build Configuration'' to ''Release''
  
-{{ :en:orx:mac:xcode-scheme-to-release.gif |}}+{{ tutorials:orx:mac:xcode-scheme-to-release.gif |}}
  
 Click ''Build'' in the ''Product'' menu. Click ''Build'' in the ''Product'' menu.
  
-{{ :en:orx:mac:xcode-product-build.gif |}} +{{ tutorials:orx:mac:xcode-product-build.gif |}}
- +
-You can also compile the 32-bit versions of the Orx library if you prefer by selecting the orx / 32-bit scheme: +
- +
-{{ :en:orx:mac:xcode-32-bit.gif |}} +
- +
- +
-===== Finding our Orx libraries ===== +
- +
-These are saved to the ''orx/code/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/building_orx_with_xcode_on_mac.1528716618.txt.gz · Last modified: 2018/06/11 07:30 (6 years ago) (external edit)