Git Product home page Git Product logo

Comments (5)

TheTechRobo avatar TheTechRobo commented on May 28, 2024 1

We can't help you if you don't tell us your problem. What don't you understand?

from minecraft-weekend.

0rbianta avatar 0rbianta commented on May 28, 2024 1

Some of the libraries not exist at ./lib. You should clone cglm and glad from github to ./lib location.
After installing them build the libraries first before building the game so it can link them.
Clone libraries by:
git clone https://github.com/recp/cglm.git
...

Build libraries:
make libs
Make bin directory:
make dirs
Build game:
make game
Run game:
make run

It might give a duplicated definition error due to library versions not same. Remove one defined at ./src if that happens

from minecraft-weekend.

GamerHammer2K4F647Ultimate avatar GamerHammer2K4F647Ultimate commented on May 28, 2024 1
$ make libs

$ make 

should be enough

from minecraft-weekend.

S0L0d0b0 avatar S0L0d0b0 commented on May 28, 2024

so I did the first command
$ git clone --recurse-submodules https://github.com/jdah/minecraft-weekend.git

the next command is $ make
Idk if im supposed to know if there's something supposed to be after that, like $ make... ?

The following static libraries under lib/ must be built before the main project can be built:

GLAD lib/glad/src/glad.o
CGLM lib/cglm/.libs/libcglm.a
GLFW lib/glfw/src/libglfw3.a
libnoise lib/noise/libnoise.a

so im guessing im supposed to make the files: glad.o, libcglm.a, libglfw3.a, libnoise.a, because they aren't there.
what I did was I used the make function as make glad.o while in the subdirectory

I got
cc -c -o glad.o glad.c
glad.c:633:10: fatal error: glad/glad.h: No such file or directory
633 | #include <glad/glad.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [: glad.o] Error 1
Note Im not familiar with a makefile. I dont know what it is.

All of the above have their own Makefile under their respective subdirectory and can be built with $ make libs. If libraries are not found, ensure that submodules have been cloned.

are the "makefiles under their respective subdirectory" the same as the "static libraries under lib/ that must be built"? is he talking about the same thing?
I went to the subdirectory lib/glad/src and on terminal I typed " make libs, make glad.o, make libs glad.o, wich I got nothing for any of it.
So yea I dont know what is going on. heck I dont know what to even explain what I dont understand because I just dont understand any of it. make sence?

from minecraft-weekend.

avighnac avatar avighnac commented on May 28, 2024

Yes, but note that you might need to install libxcursor, libxinerama, and stuff like that. You can google how to download those libraries for your linux distro.

from minecraft-weekend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.