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