Page 1 of 1

Error compiling STK on Linux

PostPosted: 11 Jan 2016, 00:44
by ArDanWol
Hello,
I'm trying to compile STK from source on Ubuntu 14.04. I've downloaded all code and assets. When I enter this command:
{l Code}: {l Select All Code}
cmake ..

I get this output in terminal:
{l Code}: {l Select All Code}
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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
-- No build type selected, default to STKRelease
-- 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 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.50")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- checking for module 'bluez'
--   found bluez, version 4.101
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so 
-- Found OggVorbis: /usr/include 
-- checking for module 'freetype2'
--   package 'freetype2' not found
CMake Error at CMakeLists.txt:173 (message):
  Freetype not found.  Freetype is required to display characters in
  SuperTuxKart.


-- Configuring incomplete, errors occurred!
See also "/home/daniel/stk-code/cmake_build/CMakeFiles/CMakeOutput.log".
See also "/home/daniel/stk-code/cmake_build/CMakeFiles/CMakeError.log".

What is the problem here? When I do
{l Code}: {l Select All Code}
sudo apt-get install freetype2

it says it cannot locate that package. :? What needs to be done for me to compile STK?

Thanks!
ArDanWol

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 00:56
by benau
try sudo apt-get install libfreetype6-dev instead

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 00:59
by ArDanWol
That worked. Thanks!

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 03:29
by ArDanWol
New problem: crashes when starting using ./bin/supertuxkart
{l Code}: {l Select All Code}
[verbose  ] main: Error messages and other text output will be logged to /home/daniel/.config/supertuxkart/0.8.2/stdout.log.
[info   ] [FileManager]: Data files will be fetched from: '../data/'
[info   ] [FileManager]: Data files will be fetched from: '../data/../../stk-assets/'
[info   ] [FileManager]: User directory is '/home/daniel/.config/supertuxkart/0.8.2/'.
[info   ] [FileManager]: Addons files will be stored in '/home/daniel/.local/share/supertuxkart/addons/'.
[info   ] [FileManager]: Screenshots will be stored in '/home/daniel/.cache/supertuxkart/screenshots/'.
[info   ] [FileManager]: User-defined grand prix will be stored in '/home/daniel/.local/share/supertuxkart/grandprix/'.
[info   ] [FileManager]: Asset 0 will be loaded from '../data/challenges/'.
[info   ] [FileManager]: Asset 1 will be loaded from '../data/gfx/'.
[info   ] [FileManager]: Asset 2 will be loaded from '../data/grandprix/'.
[info   ] [FileManager]: Asset 3 will be loaded from '../data/gui/'.
[info   ] [FileManager]: Asset 4 will be loaded from '../data/../../stk-assets/library/'.
[info   ] [FileManager]: Asset 5 will be loaded from '../data/../../stk-assets/models/'.
[info   ] [FileManager]: Asset 6 will be loaded from '../data/../../stk-assets/music/'.
[info   ] [FileManager]: Asset 7 will be loaded from '../data/../../stk-assets/tracks/'.
[info   ] [FileManager]: Asset 8 will be loaded from '../data/../../stk-assets/sfx/'.
[info   ] [FileManager]: Asset 9 will be loaded from '../data/shaders/'.
[info   ] [FileManager]: Asset 10 will be loaded from '../data/skins/'.
[info   ] [FileManager]: Asset 11 will be loaded from '../data/../../stk-assets/textures/'.
[info   ] [FileManager]: Asset 12 will be loaded from '../data/ttf/'.
[info   ] [FileManager]: Asset 13 will be loaded from '../data/po/'.
[verbose  ] translation: Env var LANGUAGE = 'en_US'.
[verbose  ] translation: Language 'English (United States)'.
[warn   ] tinygettext: jbo.po: warning: ignoring, unknown language
[warn   ] tinygettext: no.po: warning: ignoring, unknown language
[warn   ] tinygettext: no_NO.po: warning: ignoring, unknown language
[warn   ] tinygettext: sc.po: warning: ignoring, unknown language
[warn   ] tinygettext: sco.po: warning: ignoring, unknown language
Adding language fallback en
[warn   ] tinygettext: jbo.po: warning: ignoring, unknown language
[warn   ] tinygettext: no.po: warning: ignoring, unknown language
[warn   ] tinygettext: no_NO.po: warning: ignoring, unknown language
[warn   ] tinygettext: sc.po: warning: ignoring, unknown language
[warn   ] tinygettext: sco.po: warning: ignoring, unknown language
Irrlicht Engine version 1.8.0
Linux 3.16.0-57-generic #77~14.04.1-Ubuntu SMP Thu Dec 17 23:20:00 UTC 2015 x86_64
[warn   ] [IrrDriver Temp Logger]: Level 2: X Error: GLXBadFBConfig

[warn   ] [IrrDriver Temp Logger]: Level 2: From call : unknown

[warn   ] [IrrDriver Temp Logger]: Level 3: Vertex shader compilation failed at position -1:


[warn   ] [IrrDriver Temp Logger]: Level 3: Pixel shader compilation failed at position -1:


[warn   ] [IrrDriver Temp Logger]: Level 3: Vertex shader compilation failed at position -1:


[warn   ] [IrrDriver Temp Logger]: Level 3: Pixel shader compilation failed at position -1:


[warn   ] [IrrDriver Temp Logger]: Level 3: Vertex shader compilation failed at position -1:


[warn   ] [IrrDriver Temp Logger]: Level 3: Pixel shader compilation failed at position -1:


[info   ] IrrDriver: OpenGL version: 3.3
[info   ] IrrDriver: OpenGL vendor: Intel Open Source Technology Center
[info   ] IrrDriver: OpenGL renderer: Mesa DRI Intel(R) Ivybridge Mobile
[info   ] IrrDriver: OpenGL version string: 3.3 (Core Profile) Mesa 10.3.2
[info   ] GLDriver: AMD Vertex Shader Layer Present
[info   ] GLDriver: ARB Buffer Storage Present
[info   ] GLDriver: ARB Base Instance Present
[info   ] GLDriver: ARB Draw Indirect Present
[info   ] GLDriver: ARB Texture Storage Present
[info   ] GLDriver: ARB Texture View Present
[info   ] GLDriver: ARB Shader Atomic Counters Present
[info   ] GLDriver: ARB Multi Draw Indirect Present
[info   ] GLDriver: ARB Uniform Buffer Object Present
[info   ] irr_driver: GLSL supported.
[info   ] Freetype Environment: Loading fonts...
[info   ] Freetype Environment: DPI for Normal Font is 25.
[info   ] Freetype Environment: DPI for Title Font is 52.
[info   ] Freetype Environment: DPI for Digit Font is 37.
[info   ] ScalableFont::loadTTF: Created 14 glyphs supporting 15 characters for high-res digits font Sigmar using 1 glyph page(s).
[info   ] ScalableFont::loadTTF: Created 94 glyphs supporting 152 characters for bold title font Ubuntu using 1 glyph page(s).
[info   ] ScalableFont::loadTTF: Created 98 glyphs supporting 101 characters for normal font Ubuntu using 1 glyph page(s).
[info   ] shader: Compiling shader : texturedquad.vert
[info   ] shader: Compiling shader : texturedquad.frag
[info   ] shader: Compiling shader : texturedquad.vert
[info   ] shader: Compiling shader : uniformcolortexturedquad.frag
[info   ] shader: Compiling shader : colortexturedquad.vert
[info   ] shader: Compiling shader : colortexturedquad.frag
[info   ] HTTPRequest: Downloading http://addons.supertuxkart.net/dl/xml/news.xml
[info   ] addons: Using cached addons.xml.
[info   ] GrandPrixManager: Loading Grand Prix files from ../data/grandprix/
[info   ] GrandPrixManager: Loading Grand Prix files from /home/daniel/.local/share/supertuxkart/grandprix/
Segmentation fault (core dumped)

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 03:38
by Arthur
Looks like a driver issue - 14.04 Mesa is a bit too old in our case maybe, I'm fuzzy on the details. Someone more knowledgeable might be able to fill you in, but that's my guess.

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 03:57
by benau
try uninstall previous stk

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 03:57
by ArDanWol
Got it working. Not sure how.

Re: Error compiling STK on Linux

PostPosted: 11 Jan 2016, 04:04
by benau
Good! Enjoy new features from git STK!