This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:orx:mac:setting_up_a_project_on_mac [2018/05/31 19:22 (6 years ago)] – sausage | en:tutorials:orx:mac:setting_up_a_project_on_mac [2024/02/27 18:56 (4 weeks ago)] (current) – debug64 -> debuguniv64 iarwain | ||
---|---|---|---|
Line 3: | Line 3: | ||
This is the third article in a series for Orx on Mac OS X. | This is the third article in a series for Orx on Mac OS X. | ||
- | The [[en: | + | The [[en:tutorials: |
- | The [[en: | + | The [[en:tutorials: |
This article will teach how to create your own game project using the Orx tools and Orx library. | This article will teach how to create your own game project using the Orx tools and Orx library. | ||
Line 66: | Line 66: | ||
Use Finder to take a look at the structure of your game folders: | Use Finder to take a look at the structure of your game folders: | ||
- | {{ :en: | + | {{ tutorials: |
Your project can be compiled and developed in any of these IDE's (or a text editor in the case of gmake). We'll use gmake because if you have been following the series with a clean Mac, gcc/make is what we have. | Your project can be compiled and developed in any of these IDE's (or a text editor in the case of gmake). We'll use gmake because if you have been following the series with a clean Mac, gcc/make is what we have. | ||
Line 75: | Line 75: | ||
- type: '' | - type: '' | ||
- | (the above is the same as typing the default of: '' | + | (the above is the same as typing the default of: '' |
You'll see your game compile with: | You'll see your game compile with: | ||
< | < | ||
- | ==== Building orxLIB (debug32) ==== | + | ==== Building orxLIB (debuguniv64) ==== |
- | Creating obj/x32/ | + | Creating obj/x64/ |
orxPlugin_EmbeddedList.cpp | orxPlugin_EmbeddedList.cpp | ||
orxAnim.c | orxAnim.c | ||
Line 91: | Line 91: | ||
orxTree.c | orxTree.c | ||
Linking orxLIB | Linking orxLIB | ||
- | ld: warning: directory not found for option ' | + | ld: warning: directory not found for option ' |
Running post-build commands | Running post-build commands | ||
cp -f ../ | cp -f ../ | ||
- | ==== 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 ' | + | ld: warning: directory not found for option ' |
- | ==== Building Bounce (debug32) ==== | + | ==== Building Bounce (debuguniv64) ==== |
- | Creating obj/x32/ | + | Creating obj/x64/ |
orxBounce.c | orxBounce.c | ||
Linking Bounce | Linking Bounce | ||
- | ld: warning: directory not found for option ' | + | ld: warning: directory not found for option ' |
</ | </ | ||
Line 124: | Line 124: | ||
* Type: '' | * Type: '' | ||
- | {{ :en: | + | {{ tutorials: |
You're all done! Congratulations on compiling the Orx library, and your very first Orx game project. | You're all done! Congratulations on compiling the Orx library, and your very first Orx game project. | ||
You might be interested to move onto the [[en: | You might be interested to move onto the [[en: | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | MacOS varies in it's treatment of environment variables, So depending on which MacOS version or Codelite version you have, you may need to perform some extra steps. | ||
+ | |||
+ | |||
+ | ==== Environment Variable Problems ==== | ||
+ | |||
+ | If when trying to compile you may get an error similar to the following: | ||
+ | |||
+ | < | ||
+ | cp: / | ||
+ | make: *** [PostBuild] Error 1 | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | / | ||
+ | #include " | ||
+ | | ||
+ | </ | ||
+ | |||
+ | This one is generally caused by the '' | ||
+ | |||
+ | To do this, go to: Settings / Environment Variables | ||
+ | |||
+ | Add the following line: | ||
+ | |||
+ | ORX=/ | ||
+ | |||
+ | ==== Debugging Problems ==== | ||
+ | |||
+ | When trying to run the debugger you may get a dialog box saying: | ||
+ | |||
+ | Failed to locate gdb at ‘gdb’ | ||
+ | |||
+ | Right click on your project. Then go to '' |