User Tools

Site Tools


en:tutorials:orx:linux:setting_up_dev_on_linux

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: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.191en: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:tutorials:community:katarak:linuxsetup|concise version of the document]] here, for more experienced Linux users who just want the short overview.+There is a more [[en:tutorials:orx:linux:linuxsetup|concise version of the document]] here, for more experienced Linux users who just want the short overview.
  
 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://cdimage.ubuntu.com/lubuntu/releases/18.04/release/|download the ISO here]]. There are many guides to [[https://docs.lubuntu.net/lubuntu_installation|installing Lubuntu onto a PC]] or as a Virtual Machine, so I'll leave that as an exercise for the reader. You can [[http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/|download the ISO here]]. There are many guides to [[https://docs.lubuntu.net/lubuntu_installation|installing Lubuntu onto a PC]] or as a Virtual Machine, so I'll leave that as an exercise for the reader.
 +
 +<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://linuxize.com/post/how-to-install-gcc-on-ubuntu-20-04/
 +</WRAP>
  
 ===== The compiler ===== ===== The compiler =====
Line 52: Line 58:
  
 <code> <code>
-sudo apt install freeglut3-dev libsndfile1-dev libopenal-dev libxrandr-dev+sudo apt install libgl1-mesa-dev libxrandr-dev
 </code> </code>
  
 ===== Downloading and Compiling Orx ===== ===== Downloading and Compiling Orx =====
  
-There is already a guide available to help you to [[en:tutorials:cloning_orx_from_github|clone Orx]] to your PC. Once you followed this, come back here after.+There is already a guide available to help you to [[en:tutorials:orx:cloning_orx_from_github|clone Orx]] to your PC. Once you followed this, come back here after.
  
 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 freeglut3-dev:i386 libsndfile1-dev:i386 libopenal-dev:i386 libxrandr-dev:i386+sudo apt install libgl1-mesa-dev:i386 libxrandr-dev:i386
  
 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:
 <code> <code>
 make config=debug32 make config=debug32
-</code> 
- 
-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 ''apt'' or ''apt-get''. You can work around this by doing the following: 
- 
-<code> 
-sudo apt install libsndfile1-dev 
-cd /usr/lib/x86_64-linux-gnu 
-sudo cp libsndfile.so libsndfile.so_ 
-sudo cp libsndfile.a libsndfile.a_ 
-sudo apt install libsndfile1-dev:i386 
-sudo cp libsndfile.so_ libsndfile.so 
-sudo cp libsndfile.a_ libsndfile.a 
 </code> </code>
  
en/tutorials/orx/linux/setting_up_dev_on_linux.1597949496.txt.gz · Last modified: 2020/08/20 11:51 (4 years ago) by 66.249.73.191