24/7minetester wrote:Hi all. I am attempting to compile from source on a Ubuntu 16.04 system and it's giving me trouble. I followed the instructions on the dev article, and when running cmake, it came up with cURL and Vorbis errors. I solved the cURL error, but this Vorbis error is persistent, despite Vorbis being present. What is going on? Please help before I smash a keyboard over this.
Make sure you've installed the development versions of all the libraries listed in readme.txt (e.g. libvorbis-dev, lobogg-dev, etc). Run the suggested install if in doubt:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
You shouldn't have to specify the location of any libraries with ubuntu (so take out VORBIS_INCLUDE_DIR). I just installed ubuntu 16.04 recently on a new system and have no problems compiling with this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1
Also, if you're not installing for multiple users, you might as well use -DRUN_IN_PLACE=TRUE. It lets you run from your home directory -- very useful if you compile frequently.