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
Compiling on Pi
-
- Member
- Posts: 570
- Joined: Fri Feb 17, 2012 21:55
- Location: Canada
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.
We are what we create.
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
- cisoun
- Member
- Posts: 232
- Joined: Tue Apr 19, 2011 18:56
- GitHub: cisoun
- IRC: cisoun
- In-game: cisoun
- Location: Switzerland
- Contact:
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...
Because I've compiled a MT server on it but when I played on my server from another computer, the game lagged too much...
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website
Who is online
Users browsing this forum: No registered users and 23 guests