This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:community:grey:setup_cl [2018/06/12 04:39 (6 years ago)] – sausage | en:tutorials:orx:linux:compiling-orx-linux [2020/10/02 15:45 (4 years ago)] (current) – Removed freeglut iarwain | ||
---|---|---|---|
Line 4: | Line 4: | ||
- | ====== Compiling the Orx library | + | ====== Compiling the Orx library for Linux ====== |
- | This guide assumes that you have cloned Orx from github and that the setup.sh script has been automatically run. You will receive a notice when the script completes that states: | + | This guide assumes that you have [[en: |
< | < | ||
== IMPORTANT - Make sure the following libraries are installed on your system: | == IMPORTANT - Make sure the following libraries are installed on your system: | ||
- | ==[ freeglut3-dev ] | ||
==[ libsndfile1-dev ] | ==[ libsndfile1-dev ] | ||
==[ libopenal-dev ] | ==[ libopenal-dev ] | ||
Line 20: | Line 19: | ||
On linux, these dev libraries are sometimes missing from fresh installs. Or you might have only 64-bit or 32-bit versions of the following libraries. You'll need to add them using your favourite package manager (apt, yum, pacman, rpm etc...). In order to get the 64-bit libraries using something like Ubuntu: | On linux, these dev libraries are sometimes missing from fresh installs. Or you might have only 64-bit or 32-bit versions of the following libraries. You'll need to add them using your favourite package manager (apt, yum, pacman, rpm etc...). In order to get the 64-bit libraries using something like Ubuntu: | ||
- | * apt-get install freeglut3-dev | ||
* apt-get install libsndfile1-dev | * apt-get install libsndfile1-dev | ||
* apt-get install libopenal-dev | * apt-get install libopenal-dev | ||
Line 27: | Line 25: | ||
And, if you want to distribute your game or application more widely, you might want to consider compiling on 32-bit. For that you'll need to install the 32-bit versions to your linux machine with: | And, if you want to distribute your game or application more widely, you might want to consider compiling on 32-bit. For that you'll need to install the 32-bit versions to your linux machine with: | ||
- | * apt-get install freeglut3-dev: | ||
* apt-get install libsndfile1-dev: | * apt-get install libsndfile1-dev: | ||
* apt-get install libopenal-dev: | * apt-get install libopenal-dev: | ||
* apt-get install libxrandr-dev: | * apt-get install libxrandr-dev: | ||
- | For other linux flavours, like Fedora, use the appropriate package manager command. | + | For other Linux flavours, like Fedora, use the appropriate package manager command. |
<WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
- | It seems that installing one version of the libraries, means automatically removing the other. | + | It seems that installing one version of the libraries, means automatically removing the other. |
</ | </ | ||
- | ==== Finding the Codelite Workspace (project) ==== | ||
- | In the following folder you will find the Codelite project to build the Orx library and Demo program: | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | If for any reason the codelite folder is missing or you removed it, all the tools to regenerate it are available to you. [[en: | ||
- | |||
- | ==== Loading the Codelite Workspace ==== | ||
- | |||
- | Open Codelite and choose "Open Workspace" | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | You can select from the following configurations to build Orx libraries under 32-bit: | ||
- | |||
- | * Debug_x32 | ||
- | * Profile_x32 | ||
- | * Release_x32 | ||
- | |||
- | In the same way, to compile Orx libraries for 64-bit: | ||
- | |||
- | * Debug_x64 | ||
- | * Profile_x64 | ||
- | * Release_x64 | ||
When you compile all three configurations, | When you compile all three configurations, | ||
Line 75: | Line 44: | ||
And you have the three Orx libraries ready for use in your own projects. | And you have the three Orx libraries ready for use in your own projects. | ||
- | |||
- | ==== The Orx Demo ==== | ||
- | |||
- | Not only are the Orx libraries built when you compile, but also the Orx demo can be found at: | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | There are three versions of the executable as: | ||
- | |||
- | * orx | ||
- | * orxd | ||
- | * orxp | ||
- | |||
- | Run one to play with the demo. | ||
- | |||
- | That's it. |