This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:tutorials:orx:linux:setting_up_dev_on_linux [2020/08/20 11:51 (4 years ago)] – ↷ Links adapted because of a move operation 66.249.73.191 | en:tutorials:orx:linux:setting_up_dev_on_linux [2022/03/27 13:44 (2 years ago)] (current) – Removed LibSndFile references iarwain | ||
---|---|---|---|
Line 3: | Line 3: | ||
The aim of this guide is to show you how to install the GCC compiler onto a fresh version of Linux and how prepare it for using Orx. | The aim of this guide is to show you how to install the GCC compiler onto a fresh version of Linux and how prepare it for using Orx. | ||
- | There is a more [[en: | + | There is a more [[en: |
We'll begin with a new Linux distribution. The one I've chosen is Lubuntu 18.04 Bionic. It comes in both 32-bit and 64-bit versions. The reason I chose this is because it is a reasonably small version of Ubuntu Linux, that ships with the bare essentials. | We'll begin with a new Linux distribution. The one I've chosen is Lubuntu 18.04 Bionic. It comes in both 32-bit and 64-bit versions. The reason I chose this is because it is a reasonably small version of Ubuntu Linux, that ships with the bare essentials. | ||
Line 15: | Line 15: | ||
You can [[http:// | You can [[http:// | ||
+ | |||
+ | <WRAP center round info 90%> | ||
+ | **Easier way to install gcc on Linux** | ||
+ | |||
+ | A better way to install GCC on Ubuntu (at least) look to following this simpler guide: https:// | ||
+ | </ | ||
===== The compiler ===== | ===== The compiler ===== | ||
Line 52: | Line 58: | ||
< | < | ||
- | sudo apt install | + | sudo apt install |
</ | </ | ||
===== Downloading and Compiling Orx ===== | ===== Downloading and Compiling Orx ===== | ||
- | There is already a guide available to help you to [[en: | + | There is already a guide available to help you to [[en: |
Once complete, you now have everything you need in order to compile Orx and your own Orx-based projects. | Once complete, you now have everything you need in order to compile Orx and your own Orx-based projects. | ||
Line 69: | Line 75: | ||
In order to do that, you must first install the 32-bit versions of the development libraries that Orx depends on with: | In order to do that, you must first install the 32-bit versions of the development libraries that Orx depends on with: | ||
- | sudo apt install | + | sudo apt install |
Now you will be able to compile with configs such as: | Now you will be able to compile with configs such as: | ||
Line 75: | Line 81: | ||
< | < | ||
make config=debug32 | make config=debug32 | ||
- | </ | ||
- | |||
- | There is a very small gotcha. Because the libsndfile1-dev library does not yet contain multi-arch support (at least on Ubuntu), you cannot usually keep both the 32-bit and 64-bit versions of libsndfile1-dev on your system at the same time with '' | ||
- | |||
- | < | ||
- | sudo apt install libsndfile1-dev | ||
- | cd / | ||
- | sudo cp libsndfile.so libsndfile.so_ | ||
- | sudo cp libsndfile.a libsndfile.a_ | ||
- | sudo apt install libsndfile1-dev: | ||
- | sudo cp libsndfile.so_ libsndfile.so | ||
- | sudo cp libsndfile.a_ libsndfile.a | ||
</ | </ | ||