Minetest on Rasbpberry Pi

Re: Minetest on Rasbpberry Pi

Postby Ivà » Wed Sep 09, 2015 6:48 am

4aiman wrote:I've tried to compile the latest MT last night, but sadly it didn't finish even half of it when I came up.


Uhmmmm... 4aiman I compile the git MT server on my RPi 1 in about 90 minutes. I don't use any special trick to do it and my RPI 1 is only slightly overclocked (800 MHz).
Ivà
Member
 
Posts: 115
Joined: Sun Feb 22, 2015 7:11 am
GitHub: melzua
In-game: melzua

Re: Minetest on Rasbpberry Pi

Postby 4aiman » Wed Sep 09, 2015 7:42 am

Try performing a "clean" compilation and see the difference.

BTW, if you're able to do what is needed, then it would be cool to share your way of doing it and free me from performing useless activity ;)
4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 5:47 am

Re: Minetest on Rasbpberry Pi

Postby 4aiman » Wed Sep 09, 2015 11:41 am

@Amicadi

You need to either build OGLES Irrlicht or supply a egl header and library.
The first way worked for me. (Haven't try the second way at all.)

Anyway, you'll need to install libgl-mesa-x11-dev (look through this thread to find the exact name - it's not that long)
I
Then search for header and libs in /opt/vc/include and use those to build the client.


PS: This
http://dev.minetest.net/CMake_Options wrote:OpenGL ES
EGL_INCLUDE_DIR - directory that contains egl.h
EGL_LIBRARY - path to libEGL.a/libEGL.so
OPENGLES2_INCLUDE_DIR - directory that contains gl2.h
OPENGLES2_LIBRARY - path to libGLESv2.a/libGLESv2.so

doesn't work without ENABLE_GLES=1
4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 5:47 am

Re: Minetest on Rasbpberry Pi

Postby Amicadi » Wed Sep 09, 2015 12:03 pm

4aiman wrote:@Amicadi

You need to either build OGLES Irrlicht or supply a egl header and library.
The first way worked for me. (Haven't try the second way at all.)

Anyway, you'll need to install libgl-mesa-x11-dev (look through this thread to find the exact name - it's not that long)
I
Then search for header and libs in /opt/vc/include and use those to build the client.


PS: This
http://dev.minetest.net/CMake_Options wrote:OpenGL ES
EGL_INCLUDE_DIR - directory that contains egl.h
EGL_LIBRARY - path to libEGL.a/libEGL.so
OPENGLES2_INCLUDE_DIR - directory that contains gl2.h
OPENGLES2_LIBRARY - path to libGLESv2.a/libGLESv2.so

doesn't work without ENABLE_GLES=1


Yes at raspbian2015-05-05:

Code: Select all
pi@pi ~ $ apt-cache search libgl mesa x11
libgl1-mesa-dev - free implementation of the OpenGL API -- GLX development files
libgl1-mesa-dri - free implementation of the OpenGL API -- DRI modules
libgl1-mesa-dri-dbg - Debugging symbols for the Mesa DRI modules
libgl1-mesa-dri-experimental - free implementation of the OpenGL API -- Extra DRI modules
libgl1-mesa-dri-experimental-dbg - Debugging symbols for the experimental Mesa DRI modules
libgl1-mesa-glx - free implementation of the OpenGL API -- GLX runtime
libgl1-mesa-glx-dbg - Debugging symbols for the Mesa GLX runtime
libgl1-mesa-swx11 - free implementation of the OpenGL API -- runtime
libgl1-mesa-swx11-dbg - free implementation of the OpenGL API -- debugging symbols
libgl1-mesa-swx11-dev - free implementation of the OpenGL API -- development files


I was missing libgl1-mesa-swx11-dev, in its place i had libgl1-mesa-dev:

Code: Select all
dpkg: libgl1-mesa-dev: dependency problems, but removing anyway as you requested:
 libglu1-mesa-dev depends on libgl1-mesa-dev | libgl-dev; however:
  Package libgl1-mesa-dev is to be removed.
  Package libgl-dev is not installed.
  Package libgl1-mesa-dev which provides libgl-dev is to be removed.
 libglu1-mesa-dev depends on libgl1-mesa-dev | libgl-dev; however:
  Package libgl1-mesa-dev is to be removed.
  Package libgl-dev is not installed.
  Package libgl1-mesa-dev which provides libgl-dev is to be removed.
(Reading database ... 92051 files and directories currently installed.)
Removing libgl1-mesa-dev ...


After that, sudo apt-get install libgl1-mesa-swx11-dev and recompiling the whole thing with best hopes :-)
Amicadi
Member
 
Posts: 13
Joined: Fri Sep 04, 2015 12:40 am

Re: Minetest on Rasbpberry Pi

Postby Ivà » Wed Sep 09, 2015 12:05 pm

4aiman wrote:Try performing a "clean" compilation and see the difference.

BTW, if you're able to do what is needed, then it would be cool to share your way of doing it and free me from performing useless activity ;)


As I said before I don't do any special trick, just git clone, cmake and make. Note that I said that I'm only compiling the server, not irrlicht or opengl or something else.
Ivà
Member
 
Posts: 115
Joined: Sun Feb 22, 2015 7:11 am
GitHub: melzua
In-game: melzua

Re: Minetest on Rasbpberry Pi

Postby Dartmouth » Wed Sep 09, 2015 3:36 pm

Compiling the server took me less than half an hour on the quadcore RPi2...
Dartmouth
Member
 
Posts: 121
Joined: Sat Dec 06, 2014 2:39 pm

Re: Minetest on Rasbpberry Pi

Postby Amicadi » Thu Sep 10, 2015 1:15 am

@4aiman Thank for your help

Irrlicht-ogl-es (from http://svn.code.sf.net/p/irrlicht/code/branches/ogl-es/ ) is compiled with:

#define _IRR_COMPILE_WITH_OPENGL_
#define _IRR_COMPILE_WITH_OGLES1_
#define _IRR_COMPILE_WITH_OGLES2_
#define _IRR_COMPILE_WITH_EGL_MANAGER_
#define _IRR_COMPILE_WITH_GLX_MANAGER_
#define _IRR_COMPILE_WITH_X11_DEVICE_

make clean && make

Minetest is compiled as:

make clean
cmake . -DRUN_IN_PLACE=TRUE -DENABLE_GLES=1 -DEGL_INCLUDE_DIR=/opt/vc/include/EGL -DEGL_LIBRARY=/usr/lib/arm-linux-gnueabihf/libEGL.so -DOPENGLES2_INCLUDE_DIR=/opt/vc/include/GLES2 -DOPENGLES2_LIBRARY=/usr/lib/arm-linux-gnueabihf/libGLESv2.so -DFREETYPE_INCLUDE_DIR_freetype2=/usr/include/freetype2 -DFREETYPE_INCLUDE_DIR_ft2build=/usr/include/freetype2 -DFREETYPE_LIBRARY=/usr/lib/arm-linux-gnueabihf/libfreetype.a -DIRRLICHT_INCLUDE_DIR=/home/pi/irrlicht/ogl-es/include -DIRRLICHT_LIBRARY=/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a
make -j 4

In the system are installed these packages:

libegl1-mesa-dev - free implementation of the EGL API -- development files
libgegl-dev - Generic Graphics Library (development files)
libgles2-mesa-dev - free implementation of the OpenGL|ES 2.x API -- development files
libgl1-mesa-swx11-dev - free implementation of the OpenGL API -- development files


still, getting these errors at linking time:

Code: Select all
Linking CXX executable ../bin/minetest
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(COGLESDriver.o): In function `irr::video::COGLES1Driver::drawVertexPrimitiveList2d3d(void const*, unsigned int, void const*, unsigned int, irr::video::E_VERTEX_TYPE, irr::scene::E_PRIMITIVE_TYPE, irr::video::E_INDEX_TYPE, bool)':
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESDriver.cpp:773: undefined reference to `glPointSizePointerOES'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(COGLESDriver.o): In function `irr::video::COGLES1Driver::uploadClipPlane(unsigned int)':
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESDriver.cpp:3098: undefined reference to `glClipPlanef'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(COGLESExtensionHandler.o): In function `irr::video::COGLES1ExtensionHandler::initExtensions(irr::video::COGLES1Driver*, bool)':
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:248: undefined reference to `eglGetProcAddress'
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:249: undefined reference to `eglGetProcAddress'
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:250: undefined reference to `eglGetProcAddress'
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:251: undefined reference to `eglGetProcAddress'
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:255: undefined reference to `eglGetProcAddress'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(COGLESExtensionHandler.o):/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLESExtensionHandler.cpp:259: more undefined references to `eglGetProcAddress' follow
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(COGLES2Driver.o): In function `irr::video::COGLES2Driver::testEGLError()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/COGLES2Driver.cpp:1663: undefined reference to `eglGetError'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::initialize(irr::SIrrlichtCreationParameters const&, irr::video::SExposedVideoData const&)':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:48: undefined reference to `eglGetDisplay'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:66: undefined reference to `eglInitialize'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::terminate()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:88: undefined reference to `eglMakeCurrent'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:90: undefined reference to `eglTerminate'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::generateSurface()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:160: undefined reference to `eglChooseConfig'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:249: undefined reference to `eglCreateWindowSurface'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:252: undefined reference to `eglCreateWindowSurface'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:259: undefined reference to `eglBindAPI'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:263: undefined reference to `eglSwapInterval'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::destroySurface()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:274: undefined reference to `eglMakeCurrent'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:276: undefined reference to `eglDestroySurface'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::generateContext()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:310: undefined reference to `eglCreateContext'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::destroyContext()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:329: undefined reference to `eglMakeCurrent'
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:330: undefined reference to `eglDestroyContext'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::activateContext(irr::video::SExposedVideoData const&)':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:337: undefined reference to `eglMakeCurrent'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::swapBuffers()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:354: undefined reference to `eglSwapBuffers'
/home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a(CEGLManager.o): In function `irr::video::CEGLManager::testEGLError()':
/home/pi/irrlicht/ogl-es/source/Irrlicht/CEGLManager.cpp:360: undefined reference to `eglGetError'
collect2: ld returned 1 exit status
src/CMakeFiles/minetest.dir/build.make:4827: recipe for target 'bin/minetest' failed
make[2]: *** [bin/minetest] Error 1
CMakeFiles/Makefile2:136: recipe for target 'src/CMakeFiles/minetest.dir/all' failed
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
Amicadi
Member
 
Posts: 13
Joined: Fri Sep 04, 2015 12:40 am

Re: Minetest on Rasbpberry Pi

Postby 4aiman » Thu Sep 10, 2015 8:45 am

@Ivà (may I call you just "Iva"? I don't have "à" in my kb layouts)
Well, I'm compiling the entire Minetest - client and server :)
Haven't tried to build server only.


@Amicadi
I'm still away from my RPi but I'm using a virtual RPi to build MT at the very moment.
Once I'm done, I'll share the *.img files I use as well as the tutorial on how to setup a virtual Pi.

Gotta go now...
4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 5:47 am

Re: Minetest on Rasbpberry Pi

Postby Amicadi » Thu Sep 10, 2015 7:33 pm

Continuing with Minetest compilation with OpenGL ES support.

Minetest linking is done by the command at /home/pi/minetest/src/CMakeFiles/minetest.dir/link.txt

Code: Select all
/usr/bin/c++   -DNDEBUG -Wall   -ffast-math -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer  ...Long list of object files... ../bin/minetest -rdynamic -lz /home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a -lGLU -lGL -lX11 -lXext -ljpeg -lbz2 -lpng -lz -lX11 -lXext -lopenal -lvorbisfile -lvorbis -logg -lsqlite3 lua/build/liblua.a -lgmp json/libjsoncpp.a -lGLESv2 -lX11 -lXext -lGLESv2 -lrt -lpthread -ldl -lXxf86vm -lcurl -Wl,-Bstatic -lfreetype cguittfont/libcguittfont.a -Wl,-Bdynamic -ljpeg -lbz2 -lpng -lopenal -lvorbisfile -lvorbis -logg -lsqlite3 -lgmp -lrt -lpthread -ldl -lXxf86vm -lcurl /home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a -lz -Wl,-Bstatic -lfreetype -Wl,-Bdynamic


Here there is somethings missing. As seen, Irrlicht is linked without -lGLESv2 or -lEGL flags and -L/opt/vc/lib is not there which seem to be mandatory according to https://www.raspberrypi.org/forums/view ... 3&p=259277

so, I changed the linking command for:

Code: Select all
/usr/bin/c++   -DNDEBUG -Wall   -ffast-math -Wall -pipe -funroll-loops -O3 -fomit-frame-pointer  ...Long list of object files... ../bin/minetest -rdynamic -lz /home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a -lGLU -lGL -lGLESv2 -lEGL -lX11 -lXext -ljpeg -lbz2 -lpng -lz -lX11 -L/opt/vc/lib -lXext -lopenal -lvorbisfile -lvorbis -logg -lsqlite3 lua/build/liblua.a -lgmp json/libjsoncpp.a -lGLESv2 -lEGL -lX11 -lXext -lrt -lpthread -ldl -lXxf86vm -lcurl -Wl,-Bstatic -lfreetype cguittfont/libcguittfont.a -Wl,-Bdynamic -ljpeg -lbz2 -lpng -lopenal -lvorbisfile -lvorbis -logg -lsqlite3 -lgmp -lrt -lpthread -ldl -lXxf86vm -lcurl /home/pi/irrlicht/ogl-es/lib/Linux/libIrrlicht.a -lz -Wl,-Bstatic -lfreetype -Wl,-Bdynamic


And then I executed the whole command. I succeed linking and I got minetest binary at /home/pi/minetest/bin

I add the line:

Code: Select all
video_driver = ogles2


to minetest.conf and I execute minetest who complains about the shaders location. So, I copied irrlicht media folder (which contains the shaders) to /home/pi and executed it again getting:

Automatically selecting world at [/home/pi/minetest/bin/../worlds/world]
ERROR[Main]: Irrlicht: Bad Display ----> EGL_BAD_DISPLAY
Floating point exception

Am I getting any closer? :-)
Amicadi
Member
 
Posts: 13
Joined: Fri Sep 04, 2015 12:40 am

Re: Minetest on Rasbpberry Pi

Postby Amicadi » Fri Sep 11, 2015 1:52 am

I Compiled Irrlich with loglevel set to verbose, and added debug_log_level = 4 to minetest.conf

at first try:

Code: Select all
INFO[Main]: logfile = debug.txt
VERBOSE[Main]: httpfetch_init: parallel_limit=8
INFO[Main]: Message locale is now set to: LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=en_GB.UTF-8;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=en_GB.UTF-8;LC_ADDRESS=en_GB.UTF-8;LC_TELEPHONE=en_GB.UTF-8;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=en_GB.UTF-8
VERBOSE[Main]: Determining world path
INFO[Main]: Searching worlds...
INFO[Main]:   In /home/pi/minetest/bin/../worlds:
INFO[Main]: world
INFO[Main]: 1 found.
Automatically selecting world at [/home/pi/minetest/bin/../worlds/world]
VERBOSE[Main]: Determining gameid/gamespec
INFO[Main]: Using world gameid [minetest]
INFO[Main]: Using commanded world path [/home/pi/minetest/bin/../worlds/world]
INFO[Main]: Irrlicht: Irrlicht Engine version 1.9.0
INFO[Main]: Irrlicht: Linux 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l
INFO[Main]: Irrlicht: Creating X window...
INFO[Main]: Irrlicht: Using plain X visual
VERBOSE[Main]: Irrlicht: Visual chosen: : 33
INFO[Main]: Irrlicht: Could not get EGL display.
ERROR[Main]: Irrlicht: Bad Display
INFO[Main]: Irrlicht: Could not make EGL context current.
INFO[Main]: Irrlicht: Using renderer:


So, I made some changes at CEGLManager.cpp (initialize function):

Code: Select all
#elif defined(_IRR_COMPILE_WITH_X11_DEVICE_)
        EglWindow = (NativeWindowType)Data.OpenGLLinux.X11Window;
--      EglDisplay = eglGetDisplay((NativeDisplayType)Data.OpenGLLinux.X11Display);
++      //EglDisplay = eglGetDisplay((NativeDisplayType)Data.OpenGLLinux.X11Display);
++      EglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);


Then eglInitialize was sucessful, but then I got this log:

Code: Select all
....
INFO[Main]: Irrlicht: Irrlicht Engine version 1.9.0
INFO[Main]: Irrlicht: Linux 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l
INFO[Main]: Irrlicht: Creating X window...
INFO[Main]: Irrlicht: Using plain X visual
VERBOSE[Main]: Irrlicht: Visual chosen: : 33
INFO[Main]: Irrlicht: EGL version: 1.400000
Segmentation fault -- at COGLES2Driver::COGLES2Driver --> ContextManager->generateSurface()


so I changed CEGLManager::generateSurface() function:

Code: Select all
-- #ifdef EGL_VERSION_1_3
++ // #ifdef EGL_VERSION_1_3
                EGL_RENDERABLE_TYPE, EglOpenGLBIT,
-- #endif
++ //#endif


After this modification, I got:

Code: Select all
....
INFO[Main]: Irrlicht: Irrlicht Engine version 1.9.0
INFO[Main]: Irrlicht: Linux 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l
INFO[Main]: Irrlicht: Creating X window...
INFO[Main]: Irrlicht: Using plain X visual
VERBOSE[Main]: Irrlicht: Visual chosen: : 33
INFO[Main]: Irrlicht: EGL version: 1.400000
INFO[Main]: Irrlicht: Could not get config for EGL display.
Floating point exception


I guess that Irrlicht ogl-es needs some more code for EGL 1.4 to work in other devices than ANDROID_DEVICE. Irrlicht ogl-es 1.9.0 is in alpha version, so, who knows... :-)
Amicadi
Member
 
Posts: 13
Joined: Fri Sep 04, 2015 12:40 am

Re: Minetest on Rasbpberry Pi

Postby Laser0073 » Sat Jun 25, 2016 1:32 am

I ran a server on the Model B 512MB, and tested it...works, but i got tons of lag. :( Not tested it on any later models of the pi.
Laser0073
Member
 
Posts: 59
Joined: Fri Jun 03, 2016 1:26 am
GitHub: Laser0073
In-game: Laser0073

Re: Minetest on Rasbpberry Pi

Postby jdonald » Tue Nov 21, 2017 4:28 pm

For others attempting to run Irrlicht/Minetest with brcmEGL/brcmGLES on the Pi, I have posted code and instructions in this thread on the Raspberry Pi forums.
jdonald
New member
 
Posts: 1
Joined: Tue Nov 21, 2017 4:08 pm
GitHub: jdonald

Re: Minetest on Rasbpberry Pi

Postby Miniontoby » Sat Mar 30, 2019 10:41 am

I have an error

Code: Select all
2019-03-30 11:34:08: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2019-03-30 11:34:08: ERROR[Main]: ModError: Failed to load and run script from /home/pi/.minetest/games/minetest_game/mods/default/init.lua:
2019-03-30 11:34:08: ERROR[Main]: ....minetest/games/minetest_game/mods/default/functions.lua:134: attempt to index field 'settings' (a nil value)
2019-03-30 11:34:08: ERROR[Main]: stack traceback:
2019-03-30 11:34:08: ERROR[Main]:    ....minetest/games/minetest_game/mods/default/functions.lua:134: in main chunk
2019-03-30 11:34:08: ERROR[Main]:    [C]: in function 'dofile'
2019-03-30 11:34:08: ERROR[Main]:    ...e/pi/.minetest/games/minetest_game/mods/default/init.lua:40: in main chunk

Does anyone have a solution
Miniontoby
New member
 
Posts: 8
Joined: Fri Mar 01, 2019 7:25 pm
In-game: Miniontoby

Re: Minetest on Rasbpberry Pi

Postby wziard » Sat Mar 30, 2019 6:51 pm

Amicadi wrote:Continuing with Minetest compilation with OpenGL ES support.


Is there a reason you insist on ES?

If you have a clean Raspbian and a clean minetest checkout and just do cmake . && make in the main minetest dir it works like a charm here. Provided you install all the correct dev packages of course.

See here for how I did it.
wziard
Member
 
Posts: 131
Joined: Mon Oct 29, 2018 7:12 pm

Re: Minetest on Rasbpberry Pi

Postby wziard » Sat Mar 30, 2019 6:58 pm

You didn't set RUN_IN_PLACE in cmake. So minetest looks for it's files in the $HOME/.minetest folder (or in /usr/local/share/minetest IRRC?) But they don't go there automatically.

You have 2 options: either run 'sudo make install' to let the makefile copy the files a standard location somewhere under /usr/ or if you don't want to 'pollute' your system just create the $HOME/.minetest folder and symlink the games and mods folder over there.

Oh, another possibilty is that you didn't checkout the minetest_game files? If you get the source form git you only get the engine, and not the minetest_game files, you need to dowload those separately.
wziard
Member
 
Posts: 131
Joined: Mon Oct 29, 2018 7:12 pm



Return to General Discussion



Who is online

Users browsing this forum: Bing Bot [Bot] and 0 guests