Page 1 of 1

Wrong OpenGL version with NVidia driver and compiling error

PostPosted: Mon Jun 09, 2014 23:01
by Joz
Hi,
I have looked on the wiki and searched in the forum, but didn't find a solution. When I try to start minetest using the proprietary NVidia graphic driver on my openSuse 13.1, I have exactly the same problem as decribed here: viewtopic.php?id=7832
(Minetest is not able to display things correctly and says I had no OpenGL 1.2 or better.)
One user in this thread says that compiling from github was the solution. I followed the Readme file for compiling minetest and ended up in this:
Translated:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
[100%] make[2]: *** No rule to build »/usr/lib64/libGL.so«, which
  is needed by »bin/minetest«.  Byebye.
make[2]: *** Waiting for not yet terminated processes...
Building CXX object src/CMakeFiles/minetest.dir/voxelalgorithms.cpp.o
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2

The executable bin/minetestserver is created, but not bin/minetest.

Has anyone a solution either to
· compile correctly
or
· a way to tell minetest that I do have »OpenGL 1.2 or better«?

I use openSUSE 13.1 with a Geforce gtx 550 Ti and a driver in version 331.79.

Re: Wrong OpenGL version with NVidia driver and compiling er

PostPosted: Mon Jun 09, 2014 23:06
by Joz
Here my output of cmake if anyone is interested in:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
> cmake . -DRUN_IN_PLACE=1
-- *** Will build version 0.4.9-dev ***
-- IRRLICHT_SOURCE_DIR =
-- IRRLICHT_INCLUDE_DIR = /usr/include/irrlicht
-- IRRLICHT_LIBRARY = /usr/lib64/libIrrlicht.so
-- CURL_INCLUDE_DIR = /usr/include/curl
-- CURL_LIBRARY = /usr/lib64/libcurl.so
-- CURL_DLL =
-- cURL support enabled
-- GetText disabled
-- Sound enabled
-- Found system sqlite3 header file in /usr/include
-- Found system sqlite3 library /usr/lib64/libsqlite3.so
-- Using project jsoncpp library
-- LuaJIT library: /usr/lib64/libluajit-5.1.so
-- LuaJIT headers: /usr/include/luajit-2.0
-- LuaJIT found, checking for broken versions...
-- LuaJIT version ok
-- redis library: REDIS_LIBRARY-NOTFOUND
-- redis headers: REDIS_INCLUDE_DIR-NOTFOUND
-- redis not found!
-- Configuring done
-- Generating done
-- Build files have been written to: …

Maybe »redis not found!« has something to do with it?

Re: Wrong OpenGL version with NVidia driver and compiling er

PostPosted: Tue Jun 10, 2014 19:12
by PilzAdam
I know a few people who had this problem. For all of them the problem "fixed itself".
Maybe try rebooting, deleting CMakeCache.txt and compile again.

Re: Wrong OpenGL version with NVidia driver and compiling er

PostPosted: Thu Jun 12, 2014 13:37
by Joz
Thank you. Only running "Cmake . -DRUN…" again or reboot hadn't worked.