Page 1 of 1

Compiling on Pi

PostPosted: Wed Nov 14, 2012 18:23
by dextrus
I've successfully made an OpenGL ES2 version of Irrlicht on the Raspberry Pi (running nicely too!) but how on earth do I link Minetest to the extra libraries (GLESv2) using CMAKE?

/Dextrus

PostPosted: Thu Nov 15, 2012 10:53
by madarexxx
Sounds epic - if it come to life, it would be amazing! I will play it on my nearly bought tablet!

PostPosted: Thu Nov 15, 2012 16:29
by tinoesroho
This page may be helpful...
In order to ensure that the correct static library is used for linking -
even if it's located in a system directory, see [1] - you should use an
imported target and the IMPORTED_LOCATION property, e.g.:

ADD_LIBRARY(boost_unit_test_framework STATIC IMPORTED)
SET_TARGET_PROPERTIES(boost_unit_test_framework PROPERTIES
IMPORTED_LOCATION /usr/lib/libboost_unit_test_framework.a)
TARGET_LINK_LIBRARIES(mytarget A boost_unit_test_framework C)

Otherwise, CMake might drop the path of libboost_unit_test_framework.a
and take the library from another location as the one you've intended.

PostPosted: Thu Nov 15, 2012 17:33
by cisoun
Are you playing from the RP ?
Because I've compiled a MT server on it but when I played on my server from another computer, the game lagged too much...

PostPosted: Fri Nov 16, 2012 01:27
by dextrus
Well, I finally have it "running", but there's a lot to do. I'm currently getting 1-2fps and can't actually move (but can look around).

PostPosted: Fri Nov 16, 2012 05:24
by tkerwel
what system you are using on the pi ?