Unable to build STK

Unable to build STK

Postby aaditya » 23 Mar 2016, 10:43

Hi,

Since about 2-3 weeks, I find myself unable to compile STK git version on my system.

The error I get is:

{l Code}: {l Select All Code}
[ 46%] Building CXX object CMakeFiles/supertuxkart.dir/src/audio/sfx_openal.cpp.o
In file included from /usr/include/fribidi/fribidi.h:35:0,
                 from /home/aaditya/git/stk/stk-code/src/utils/translation.cpp:40:
/usr/include/fribidi/fribidi-common.h:61:20: fatal error: glib.h: No such file or directory
compilation terminated.
CMakeFiles/supertuxkart.dir/build.make:422: recipe for target 'CMakeFiles/supertuxkart.dir/src/utils/translation.cpp.o' failed
make[2]: *** [CMakeFiles/supertuxkart.dir/src/utils/translation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:74: recipe for target 'CMakeFiles/supertuxkart.dir/all' failed
make[1]: *** [CMakeFiles/supertuxkart.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Following this link, glib.h does seem to be present on my system:

{l Code}: {l Select All Code}
$ find /usr -iname glib.h
/usr/include/glib-2.0/glib.h
/usr/include/glib-1.2/glib.h


OS is Slackware64-current, with following packages:

{l Code}: {l Select All Code}
glib-1.2.10
glib2-2.46.2
glibc-2.23
gcc-5.3.0
xorg-server-1.18.2
mesa-11.1.2
fribidi-0.19.7


System details here

Edit

stk-code git version has the following last commit (link):

{l Code}: {l Select All Code}
Author: Marianne Gagnon <auria.mg@gmail.com>
Date:   Mon Mar 21 20:16:59 2016 -0400

    Merge most modifications by egirsova to build 64-bits on OS X
aaditya
 
Posts: 17
Joined: 02 Oct 2014, 21:54

Re: Unable to build STK

Postby benau » 23 Mar 2016, 12:43

Try reinstall glib and fribidi from slackware, or build stk without fribidi?
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Unable to build STK

Postby aaditya » 23 Mar 2016, 13:26

benau {l Wrote}:Try reinstall glib and fribidi from slackware

This did not make a difference.

benau {l Wrote}:or build stk without fribidi?

This worked!

Relevant section from CMakeLists.txt
{l Code}: {l Select All Code}
# Fribidi
if(USE_FRIBIDI)
    find_package(Fribidi)
    if(FRIBIDI_FOUND)
        include_directories(${FRIBIDI_INCLUDE_DIRS})
    else()
        message(FATAL_ERROR "Fribidi not found. "
            "Either install fribidi or disable bidi support with -DUSE_FRIBIDI=0 "
            "(if you don't use a right-to-left language then you don't need this).")
    endif()
endif()


Thx for the help, it is solved for me.

However, maybe someone would like to investigate as to why this happens, in case there is some STK and Slackware user which needs a right-to-left language support.
aaditya
 
Posts: 17
Joined: 02 Oct 2014, 21:54

Who is online

Users browsing this forum: No registered users and 1 guest