mibi88 / MibiCraft

A small game in a world of cubes
GNU General Public License v2.0
2 stars 0 forks source link

Make the project buildable without tinkering #1

Open attilavs2 opened 1 week ago

attilavs2 commented 1 week ago

Currently the project requires at least adding in the stb perlin header and changing the std to C99 to be able to build. It is also unbuildable on Debian-based due to a mix of poor packaging of freeglut and incompetence of meson

mibi88 commented 6 days ago

On Manjaro I managed to build it. Currently it's far from being finished, if you can show me some logs of the errors you're facing I can try to help you. I know people that managed to build it on other distros.

Currently the project requires at least adding in the stb perlin header and changing the std to C99 to be able to build.

If you install stb with your package manager, it should build correctly. (I tried to implement a noise function myself to replace it, but didn't got it working).

I'm doing nearly nothing on this project these last months because I'm writing a full game engine for it, which also simplifies building on multiple platforms (I want to support windows xp and later), but it isn't fully working yet, and I'm coding something else these last times, but I plan to finish it.

Currently you can only explore a terrain. I'm trying to add block breaking...

Thanks for your issue and your interest in this project, I'll try to help you.

Mibi88

attilavs2 commented 4 days ago

Clear dependencies would help with the stb. The packages i have found for debian are : build-essential meson freeglut3-dev (Doesn't actually work because meson doesn't find it) libgl-dev libstb-dev ninja I will update this post when i will manage to build it (on Linux Mint 21.3), and add a definitive modification list Edit : Freeglut requires the following to work with debian-based:

add_project_link_arguments([
  ´-l:libglut.a',#copied libglut to MibiCraft folder to avoid properly dealing with it 
  '-lX11',  
  '-lXxf86vm',
  '-lXi',  
], language: 'c')

The additional libs should be installed by default.