this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >:(

Post Reply
24/7minetester
Member
Posts: 52
Joined: Fri Jun 05, 2015 22:36
IRC: Trifton
In-game: Trifton
Contact:

this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >:(

by 24/7minetester » Post

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.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by kaeza » Post

Can you post the actual error?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

24/7minetester
Member
Posts: 52
Joined: Fri Jun 05, 2015 22:36
IRC: Trifton
In-game: Trifton
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by 24/7minetester » Post

Code: Select all

root@office-pc2:~/minetest# cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -VORBIS_INCLUDE_DIR="/usr/share/doc/libvorbisenc2"
-- *** Will build version 0.4.14-dev ***
-- cURL support enabled.
-- GetText enabled; locales found: tr;it;ro;cs;fr;he;ja;jbo;et;be;nb;pt_BR;nl;ru;lt;zh_CN;hu;ko;sr_Cyrl;de;id;uk;pt;zh_TW;ca;pl;eo;da;ky;es
-- Could NOT find VORBIS (missing:  OGG_INCLUDE_DIR VORBIS_INCLUDE_DIR OGG_LIBRARY VORBIS_LIBRARY VORBISFILE_LIBRARY) 
-- Sound enabled, but Vorbis libraries not found!
CMake Error at src/CMakeLists.txt:99 (message):
  Sound enabled, but cannot be used.

  To continue, either fill in the required paths or disable sound.
  (-DENABLE_SOUND=0)


-- Configuring incomplete, errors occurred!
See also "/root/minetest/CMakeFiles/CMakeOutput.log".

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by kaeza » Post

Hmm... this is weird. I'm having the exact same error.

The weird thing is I have a working Minetest build directory already, but can't get a fresh clone to find any of those libs either.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by duane » Post

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:

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:

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.
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1715
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by duane » Post

kaeza wrote:Hmm... this is weird. I'm having the exact same error.

The weird thing is I have a working Minetest build directory already, but can't get a fresh clone to find any of those libs either.
That is strange. I just re-cloned it and had no trouble at all. I even took out run in place to be sure that wasn't an issue.
Believe in people and you don't need to believe anything else.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by kaeza » Post

duane wrote:That is strange. I just re-cloned it and had no trouble at all. I even took out run in place to be sure that wasn't an issue.
And now it magically works here too... WTH

So the steps I did were:

Code: Select all

$ # Create clean copy of local master
$ # No patience to fetch from remote repo
$ git clone file://$(pwd)/minetest minetest-test
$ cd minetest-test
$ cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1
-- *** Will build version 0.4.14-dev ***
-- Could NOT find Irrlicht (missing:  IRRLICHT_LIBRARY) 
-- Could NOT find CURL (missing:  CURL_LIBRARY) 
CMake Warning at src/CMakeLists.txt:52 (message):
  cURL is required to load the server list


-- GetText enabled; locales found: pt_BR;be;id;tr;eo;zh_CN;ro;he;pl;et;de;da;fr;nl;ca;jbo;ru;ky;sr_Cyrl;ja;nb;hu;pt;ko;es;it;zh_TW;lt;cs;uk
-- Could NOT find OpenAL (missing:  OPENAL_LIBRARY) 
-- Sound enabled, but OpenAL not found!
-- Sound enabled, but Vorbis libraries not found!
CMake Error at src/CMakeLists.txt:99 (message):
  Sound enabled, but cannot be used.

  To continue, either fill in the required paths or disable sound.
  (-DENABLE_SOUND=0)


-- Configuring incomplete, errors occurred!
See also ".../minetest-test/CMakeFiles/CMakeOutput.log".
$ cd ..; rm -fr minetest-test
$ git clone file://$(pwd)/minetest minetest-test
$ cd minetest-test
$ cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1
-- The C compiler identification is GNU 5.4.0


-- The CXX compiler identification is GNU 5.4.0

-- Check for working C compiler: /usr/bin/cc



-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** Will build version 0.4.14-dev ***
-- Found Irrlicht: /usr/lib/x86_64-linux-gnu/libIrrlicht.so  
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so  
-- cURL support enabled.
-- Found GetText: /usr/include  
-- GetText enabled; locales found: pt_BR;be;id;tr;eo;zh_CN;ro;he;pl;et;de;da;fr;nl;ca;jbo;ru;ky;sr_Cyrl;ja;nb;hu;pt;ko;es;it;zh_TW;lt;cs;uk
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Found VORBIS: /usr/include  
-- Sound enabled.
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so  
-- Freetype enabled.
-- Found LuaJit: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so  
-- Using GMP provided by system.
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so  
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so  
-- ncurses console enabled.
-- Could NOT find PostgreSQL (missing:  PostgreSQL_TYPE_INCLUDE_DIR) (found version "9.5.4")
-- PostgreSQL not found!
-- LevelDB backend enabled.
-- Redis not found!
-- Found SQLite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so  
-- Using bundled JSONCPP library.
-- SpatialIndex not found!
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54") 
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: .../minetest-test
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

24/7minetester
Member
Posts: 52
Joined: Fri Jun 05, 2015 22:36
IRC: Trifton
In-game: Trifton
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by 24/7minetester » Post

Using the dev packages worked. Will retry on my other system(I compiled on my main computer).

24/7minetester
Member
Posts: 52
Joined: Fri Jun 05, 2015 22:36
IRC: Trifton
In-game: Trifton
Contact:

Re: this is driving me NUTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >

by 24/7minetester » Post

duane wrote:
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:

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:

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.
THIS worked. No errors whatsoever. Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests