Page 1 of 1

can't compile stk svn version on fedora

PostPosted: 28 Oct 2012, 05:05
by modz
hi,

anyone have this problem,
{l Code}: {l Select All Code}
[ cmake_build]$ cmake .. -DIRRLICHT_DIR=/home/myhome/opt/irrlicht-trunk/ -DCMAKE_INSTALL_PREFIX=/home/myhome/opt/stk-current/
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find Irrlicht (missing: IRRLICHT_LIBRARY) (found suitable version
  "1.8.0", required is "1.8")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindIrrlicht.cmake:43 (find_package_handle_standard_args)
  CMakeLists.txt:52 (find_package)


-- Configuring incomplete, errors occurred!


any idea how to solve this problem?

thanks

Re: can't compile stk svn version on fedora

PostPosted: 28 Oct 2012, 11:08
by KroArtem
As it's been stated a lot of times, supertuxkart from subversion (the recent code, bleeding edge) requires an alpha/beta version of the engine (irrlicht). That's why you have to compile irrlicht by yourself too. Just download svn code for irrlicht, enter /source/Irrlicht folder and do
{l Code}: {l Select All Code}
NDEBUG=1 make

After this you can compile stk but don't forget to point supertuxkart's cmake scripts to irrlicht, you can do this from terminal or via cmake-gui.

Re: can't compile stk svn version on fedora

PostPosted: 28 Oct 2012, 21:12
by Auria
Hi,


just follow the steps at http://supertuxkart.sourceforge.net/Build_STK_on_Linux

In the following days/weeks, we should integrate our own irrlicht into STK. Then all of these problems will go away