Problem with Minetest-5.5.0-dev compiling.

Post Reply
User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Problem with Minetest-5.5.0-dev compiling.

by Andrey01 » Post

I am trying to compile the newest Minetest-5.5.0-dev version, but as it has become to use an own fork of Irrlicht (IrrlichtMt) recently, I have one problem here: after I compiled IrrlichtMt following these instructions: https://github.com/minetest/irrlicht#build and tried to run cmake -IRRLICHT_LIBRARY=~/irrlicht_mt/lib/Linux/libIrrlichtMt.so -DRUN_IN_PLACE=1 -S . in the minetest directory it output me a warning:

Code: Select all

Irrlicht found, but it is not Minetest's Irrlicht fork.  The Minetest team
  has forked Irrlicht to make their own customizations.  It can be found
  here: https://github.com/minetest/irrlicht

  Building the client with upstream Irrlicht is no longer possible.
But although I explicitly defined the source path to IrrlichtMt and it insistently writes me it couldn`t find! How do I solve this problem?

x2048
Developer
Posts: 68
Joined: Mon Feb 15, 2021 22:41
GitHub: x2048

Re: Problem with Minetest-5.5.0-dev compiling.

by x2048 » Post

Hey, you need to add -DIRRLICHT_INCLUDE_DIR=<path to .../include> to your cmake command line.

Example:

cmake . -DCMAKE_BUILD_TYPE=MinSizeRel -DRUN_IN_PLACE=TRUE -DIRRLICHT_LIBRARY=~/dev/irrlicht/lib/Linux/libIrrlichtMt.so -DIRRLICHT_INCLUDE_DIR=~/dev/irrlicht/include

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: Problem with Minetest-5.5.0-dev compiling.

by Andrey01 » Post

Thanks for help! I'll try!

User avatar
Linuxdirk
Member
Posts: 3216
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Problem with Minetest-5.5.0-dev compiling.

by Linuxdirk » Post

Do I need to keep it there or is it only a build-time dependency?

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: Problem with Minetest-5.5.0-dev compiling.

by sfan5 » Post

If you built Irrlicht as a static library you can throw it away after building, if not the libIrrlichtMt.so needs to continue existing at some place the linker will find it.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests