-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.txt
More file actions
40 lines (29 loc) · 1.43 KB
/
install.txt
File metadata and controls
40 lines (29 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Installing djf-3d-2 on GNU/Linux is very easy. Your mileage
may vary on other *nix systems.
There's no need to clone the repo if you just want to install
the library. All you have to do is either
0. wget https://github.com/DanteFalzone0/djf-3d-2/raw/master/djf-3d-2.tar.gz
1. Open up the tarball (tar -xzvf djf-3d-2.tar.gz)
2. cd djf-3d-2
3. make
4. sudo make install
or
0. bash main.sh (alternatively use bash simulate_build.sh)
Note that the second approach assumes that your SDL2 library is either
installed in external/SDL2 or the default installation directory
(/usr/local/include etc or equivalent). If not, the script would build SDL2 and
install it into the default installation directories.
That's it! Now you can write programs that use djf-3d-2 by
putting "#include <djf-3d-2/djf-3d.h>" in them. Remember to
link them to the engine by passing "-ldjf-3d-2 -lSDL2" to
GCC when compiling; they MUST be in that order.
The header files are filled with documentation comments, so
be sure to read /usr/include/djf-3d-2/*.h for guidance on
writing programs that use djf-3d-2. Later I will write
better documentation.
djf-3d-2 is written in C++. It is NOT written to integrate
with C. Your C++ compiler MUST support C++11 or later for
any of this to work.
To uninstall djf-3d-2, run "sudo make uninstall".
To see an example program that uses djf-3d-2, make sure that
the library is installed, then run "make run-demo".