Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOOB I want to give this a try, But I dont seem to understand the instructions #77

Open
S0L0d0b0 opened this issue Jan 22, 2022 · 5 comments

Comments

@S0L0d0b0
Copy link

Im not well educated in coding but I know a little. Unfortunately not well enough to achieve opening the game. I would just like some help please

@TheTechRobo
Copy link

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

@S0L0d0b0
Copy link
Author

S0L0d0b0 commented Mar 2, 2022

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?

@0rbianta
Copy link

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

@GamerHammer2K4F647Ultimate
$ make libs

$ make 

should be enough

@avighnac
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants