Comments (5)
We can't help you if you don't tell us your problem. What don't you understand?
from minecraft-weekend.
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.
$ make libs
$ make
should be enough
from minecraft-weekend.
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.
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)
- textures HOT 1
- gcc makefile HOT 2
- build on Linux: mismatched bound float[4] HOT 2
- make compile error HOT 1
- make compile problem HOT 1
- Compiling dont works because of redefinitions HOT 4
- A problem with "Unix-like" compiling (on macOS 10.13.6)
- A potentially major problem with OSX Compiling HOT 1
- [1] 36812 segmentation fault (core dumped) ./bin/game HOT 3
- User placed blocks disappearing after unloading chunk
- Makefile in src ERRO HOT 1
- 2023 came minecraftweekend HOT 2
- How do i access it HOT 1
- Make Command Not Working HOT 2
- pls tell me how to run on windows. i dont have unix ;( HOT 2
- Why no interpolation?
- Error compiling HOT 4
- undefined reference to `glm_ivec2_div' when building in wsl
- Add arm64 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minecraft-weekend.