Is there a way to compile minetest on puppy?

Moderator: Forum moderators

Post Reply
User avatar
FloraMae
Posts: 71
Joined: Thu May 02, 2024 3:13 am
Has thanked: 11 times
Been thanked: 16 times

Is there a way to compile minetest on puppy?

Post by FloraMae »

I tried to compile minetest via the instructions but the dependencies can't be met (Bookworm64) and not familiar enough with compiling to figure it out further without outside help. Has anyone managed to get minetest compiled on puppy bookworm64?

Looking at their website, the only options are pretty much compile or flatpak. I have seen appimages, but ideally would need to figure out how to get it to compile.

Any ideas?

User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

@FloraMae There might be a possibility to take the Void Linux package and use that binary in Bookworm64. I would have to look.

Seeing that it is in the Void Linux repo and is stable that means there is an excellent chance it will work in KLV-Airedale installed with the package manager.

Otherwise I can take a look to see what it will take to compile it a Debian based Bookworm64. Do you have any output on the missing dependencies from your compile attempt?

User avatar
FloraMae
Posts: 71
Joined: Thu May 02, 2024 3:13 am
Has thanked: 11 times
Been thanked: 16 times

Re: Is there a way to compile minetest on puppy?

Post by FloraMae »

rockedge wrote: Tue Jun 04, 2024 12:39 pm

@FloraMae There might be a possibility to take the Void Linux package and use that binary in Bookworm64. I would have to look.

Seeing that it is in the Void Linux repo and is stable that means there is an excellent chance it will work in KLV-Airedale installed with the package manager.

Otherwise I can take a look to see what it will take to compile it a Debian based Bookworm64. Do you have any output on the missing dependencies from your compile attempt?

Following the compile instructions here:
https://github.com/minetest/minetest/bl ... g/linux.md

Code: Select all

The following packages have unmet dependencies:
 libblkid-dev : Depends: libblkid1 (= 2.38.1-5+deb12u1) but 2.38.1-5+b1 is to be installed
 libc6-dev : Depends: libc6 (= 2.36-9+deb12u7) but 2.36-9+deb12u3 is to be installed
             Depends: libc-dev-bin (= 2.36-9+deb12u7)
 libcurl4-gnutls-dev : Depends: libcurl3-gnutls (= 7.88.1-10+deb12u5) but 7.88.1-10+deb12u4 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.74.6-2+deb12u2) but 2.74.6-2 is to be installed
                  Depends: libglib2.0-bin (= 2.74.6-2+deb12u2)
                  Depends: libglib2.0-dev-bin (= 2.74.6-2+deb12u2)
 libmount-dev : Depends: libmount1 (= 2.38.1-5+deb12u1) but 2.38.1-5+b1 is to be installed
 libudev-dev : Depends: libudev1 (= 252.22-1~deb12u1) but 252.17-1~deb12u1 is to be installed
 uuid-dev : Depends: libuuid1 (= 2.38.1-5+deb12u1) but 2.38.1-5+b1 is to be installed

If I ignore that and try to continue anyway, I get this:

Code: Select all

CMake Error at irr/src/CMakeLists.txt:236 (find_package):
  By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SDL2", but
  CMake did not find one.

  Could not find a package configuration file provided by "SDL2" with any of
  the following names:

    SDL2Config.cmake
    sdl2-config.cmake

  Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
  "SDL2_DIR" to a directory containing one of the above files.  If "SDL2"
  provides a separate development package or SDK, be sure it has been
  installed.
User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

Found some stuff before I give a compile a try that might help concerning the SDL2 libraries
what-happened-to-findsdl2-in-cmake

User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

I ended up doing this which cleared most cmake errors but still one more......

To easily integrate the SDL2 library, I developed cross-platform modern CMake modules for finding and using the SDL2 library as well as other related libraries:

SDL2: example, game example
SDL2_image: example
SDL2_ttf: example
SDL2_mixer: example
SDL2_net
SDL2_gfx: animation example

So the only things that you should do in order to integrate the SDL2 library are:

Clone SDL2 CMake modules inside your project:

git clone https://github.com/aminosbh/sdl2-cmake-modules cmake/sdl2

Add the following lines in your main CMakeLists.txt

Code: Select all

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/sdl2)
find_package(SDL2 REQUIRED)
target_link_libraries(${PROJECT_NAME} SDL2::Main)

which got close to working....

Code: Select all

# cmake . -DRUN_IN_PLACE=TRUE
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2.so (found version "2.0.10") 
-- Found SDL2main: /usr/lib/x86_64-linux-gnu/libSDL2main.a (found version "2.0.10") 
CMake Error at CMakeLists.txt:20 (target_link_libraries):
  Cannot specify link libraries for target "minetest" which is not built by
  this project.


-- Configuring incomplete, errors occurred!
See also "/root/Build2/minetest/CMakeFiles/CMakeOutput.log".
See also "/root/Build2/minetest/CMakeFiles/CMakeError.log".

I made a directory /root/Build2 then with cd /root/Build2 enter the directory and then ran

Code: Select all

git clone https://github.com/aminosbh/sdl2-cmake-modules cmake/sdl2

and added the parameters to CMakeLists.txt near the top of the configuration listed above in this post.

There are a few errors left to fix, but definitely a step closer to a successful build

User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

commented out a line in CmakeLists.txt and it's building !!!

Screenshot(3).jpg
Screenshot(3).jpg (48.38 KiB) Viewed 1022 times

All the way to 100% but a problem with linking the SDL2 library to make the executable right at the crucial moment.....bailed with an error

Screenshot(4).jpg
Screenshot(4).jpg (57.01 KiB) Viewed 1010 times
User avatar
mikewalsh
Moderator
Posts: 6035
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 738 times
Been thanked: 1901 times

Re: Is there a way to compile minetest on puppy?

Post by mikewalsh »

@FloraMae :-

Where missing dependencies can't be found in the distro repositories, THEN it's time to go "lib-hunting". You shouldn't just give up. I know that source code for dependencies is usually compiled against the specific 'tool-chain' FOR that distro, but it IS entirely possible to "borrow" the same dependency from other, unrelated locations. Sure, it won't be an 'exact' match.......but 9 times out of 10, it will satisfy the required functionality of the application in question.

As for .debs, .rpms, .txz, etc.......these are all packaging conventions, assembled in specific ways to work with particular package management systems. At heart, different packages of a particular dependency will have all been built against the same source code.....just packed in a slightly different way as the final step.

This is a good place to go "hunting":-

https://pkgs.org/

Or, you could try here:-

https://old-releases.ubuntu.com/ubuntu/pool/

.....although it can be a bit of a PITA to navigate around. This is the 'master' repo; here, Canonical keep every package - application, dependency, framework, whatever - that has ever been built for Ubuntu since the first release back in 2004. They haven't thrown anything away.

Mike. ;)

dimkr
Posts: 2330
Joined: Wed Dec 30, 2020 6:14 pm
Has thanked: 49 times
Been thanked: 1133 times

Re: Is there a way to compile minetest on puppy?

Post by dimkr »

FloraMae wrote: Tue Jun 04, 2024 9:55 am

Looking at their website, the only options are pretty much compile or flatpak.

Did you try apt install minetest?

User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

Did you try apt install minetest?

About to give that a try using a new woof-CE Fossapup64 that is equipped with a working APT on a bdrv. My compile attempts almost successful.

Tried with with the xbps in KLV-Airedale from the Void Linux repo and it works right away.

Screenshot_2024-06-05_06-37-54.png
Screenshot_2024-06-05_06-37-54.png (136.53 KiB) Viewed 937 times
User avatar
bigpup
Moderator
Posts: 6836
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 874 times
Been thanked: 1472 times

Re: Is there a way to compile minetest on puppy?

Post by bigpup »

Apt in BookwormPup64 10.0.6 has minetest, but most likely not the latest version.

Code: Select all

apt install minetest

did install it and it runs.

It is version 5.6.1

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: Is there a way to compile minetest on puppy?

Post by OscarTalks »

If you still want to compile from source and all issues have been fixed except for a problem with SDL2
I would suggest compling and installing SDL2 from source beforehand
Sometimes when installing dependencies you can use package manager but sometimes it is much better to compile the dependency from source as well, because you have more control over your configure options.
I seem to recall that this is the case with SDL2 in BookwormPup64

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: Is there a way to compile minetest on puppy?

Post by OscarTalks »

FloraMae wrote: Tue Jun 04, 2024 9:55 am

Has anyone managed to get minetest compiled on puppy bookworm64?

Managed to get it to compile OK
Version is 5.8.0 release tarball
They have a split-off source package of irrlicht which you have to download and compile first (must be mt13 version in this case)
That needs SDL2 so added SDL2 version 2.30.0 compiled from source so all the needed DEV files are on board with no optional dependencies complicating things
irrlicht-1.9.0mt13 compiled successfully
minetest-5.8.0 requires OpenAL for sound
Downloaded openal-soft-1.23.1 and compiled it from source (although perhaps I could have installed the DEV package via apt instead)
minetest-5.8.0 then compiled successfully

using
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu ..

for irrlicht and minetest
A few tweaks are needed in the .desktop file to make it Puppy perfect
I think that is just about everything
I can upload the package on request if you want it for testing rather than compiling guidance

Attachments
minetest580.jpg
minetest580.jpg (103.98 KiB) Viewed 819 times
User avatar
rockedge
Site Admin
Posts: 6379
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2582 times
Been thanked: 2535 times
Contact:

Re: Is there a way to compile minetest on puppy?

Post by rockedge »

I can upload the package on request if you want it for testing rather than compiling guidance

Yes please! I almost have the package compiled but would like to try out the one you've successfully compiled :ugeek: :thumbup2:

User avatar
FloraMae
Posts: 71
Joined: Thu May 02, 2024 3:13 am
Has thanked: 11 times
Been thanked: 16 times

Re: Is there a way to compile minetest on puppy?

Post by FloraMae »

OscarTalks wrote: Wed Jun 05, 2024 9:59 pm
FloraMae wrote: Tue Jun 04, 2024 9:55 am

Has anyone managed to get minetest compiled on puppy bookworm64?

Managed to get it to compile OK
Version is 5.8.0 release tarball
They have a split-off source package of irrlicht which you have to download and compile first (must be mt13 version in this case)
That needs SDL2 so added SDL2 version 2.30.0 compiled from source so all the needed DEV files are on board with no optional dependencies complicating things
irrlicht-1.9.0mt13 compiled successfully
minetest-5.8.0 requires OpenAL for sound
Downloaded openal-soft-1.23.1 and compiled it from source (although perhaps I could have installed the DEV package via apt instead)
minetest-5.8.0 then compiled successfully

using
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu ..

for irrlicht and minetest
A few tweaks are needed in the .desktop file to make it Puppy perfect
I think that is just about everything
I can upload the package on request if you want it for testing rather than compiling guidance

For the sake of others who just want an updated Minetest, a package upload would be useful. I will have to try out this compile information when I'm more awake. Not been sleeping all that well recently, dang insomnia and allergies misbehaving again. Thank you for getting it figured out.

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: Is there a way to compile minetest on puppy?

Post by OscarTalks »

OK so here is minetest-5.8.0
Compiled from source in BookwormPup64 10.0.6 and packaged as .pet
Includes libIrrlichtMt as a shared library
Language support locales are included since they provide switching within the GUI
Installed size is around 27M
Uploaded for testing and/or academic purposes
https://smokey01.com/OscarTalks/minetes ... 4-bkwm.pet

Post Reply

Return to “REQUESTS”