Error compiling STK on Linux

Error compiling STK on Linux

Postby ArDanWol » 11 Jan 2016, 00:44

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
I'm know pretty much everywhere else on the internet as "Kpenguin"
"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Software bugs are impossible to detect by anybody except the end user - Murphy's 31st law of software
Each computer code has five bugs, regardless of how many bugs have been already found - Murphy's 50th law of software
"That's not a bug, it's an undocumented feature!"
User avatar
ArDanWol
 
Posts: 181
Joined: 07 Nov 2014, 17:36
Location: Ohio, USA

Re: Error compiling STK on Linux

Postby benau » 11 Jan 2016, 00:56

try sudo apt-get install libfreetype6-dev instead
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Error compiling STK on Linux

Postby ArDanWol » 11 Jan 2016, 00:59

That worked. Thanks!
I'm know pretty much everywhere else on the internet as "Kpenguin"
"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Software bugs are impossible to detect by anybody except the end user - Murphy's 31st law of software
Each computer code has five bugs, regardless of how many bugs have been already found - Murphy's 50th law of software
"That's not a bug, it's an undocumented feature!"
User avatar
ArDanWol
 
Posts: 181
Joined: 07 Nov 2014, 17:36
Location: Ohio, USA

Re: Error compiling STK on Linux

Postby ArDanWol » 11 Jan 2016, 03:29

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)
I'm know pretty much everywhere else on the internet as "Kpenguin"
"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Software bugs are impossible to detect by anybody except the end user - Murphy's 31st law of software
Each computer code has five bugs, regardless of how many bugs have been already found - Murphy's 50th law of software
"That's not a bug, it's an undocumented feature!"
User avatar
ArDanWol
 
Posts: 181
Joined: 07 Nov 2014, 17:36
Location: Ohio, USA

Re: Error compiling STK on Linux

Postby Arthur » 11 Jan 2016, 03:38

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.
Hey pal, I took an oath for justice! "In happy days or tightest tights..." or something like that.
User avatar
Arthur
 
Posts: 1073
Joined: 06 Dec 2009, 00:49

Re: Error compiling STK on Linux

Postby benau » 11 Jan 2016, 03:57

try uninstall previous stk
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Error compiling STK on Linux

Postby ArDanWol » 11 Jan 2016, 03:57

Got it working. Not sure how.
I'm know pretty much everywhere else on the internet as "Kpenguin"
"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Software bugs are impossible to detect by anybody except the end user - Murphy's 31st law of software
Each computer code has five bugs, regardless of how many bugs have been already found - Murphy's 50th law of software
"That's not a bug, it's an undocumented feature!"
User avatar
ArDanWol
 
Posts: 181
Joined: 07 Nov 2014, 17:36
Location: Ohio, USA

Re: Error compiling STK on Linux

Postby benau » 11 Jan 2016, 04:04

Good! Enjoy new features from git STK!
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Who is online

Users browsing this forum: No registered users and 1 guest