README
This commit is contained in:
parent
74301a7554
commit
4b78ecf617
13
README.md
13
README.md
@ -12,7 +12,6 @@ git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/GraphC.git
|
|||||||
3. Install **SDL2** from package manager or compile it from source.
|
3. Install **SDL2** from package manager or compile it from source.
|
||||||
**If you are using msys, switch to mingw64 sh.**
|
**If you are using msys, switch to mingw64 sh.**
|
||||||
```sh
|
```sh
|
||||||
cd ..
|
|
||||||
git clone https://github.com/libsdl-org/SDL.git
|
git clone https://github.com/libsdl-org/SDL.git
|
||||||
cd SDL
|
cd SDL
|
||||||
./configure
|
./configure
|
||||||
@ -22,20 +21,20 @@ git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/GraphC.git
|
|||||||
```sh
|
```sh
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
or copy to ./libs (on **Windows**):
|
or copy to ./dependencies/precompiled/ (on **Windows**):
|
||||||
```sh
|
```sh
|
||||||
mkdir -p GraphC/libs
|
mkdir -p ../GraphC/dependencies/precompiled/
|
||||||
cp ./build/.libs/SDL2.dll GraphC/libs/
|
cp ./build/.libs/SDL2.dll ../GraphC/dependencies/precompiled/
|
||||||
```
|
```
|
||||||
If it doesn't work, read [SDL/INSTALL.txt](https://github.com/libsdl-org/SDL/blob/SDL2/INSTALL.txt) and [SDL/docs/README.md](https://github.com/libsdl-org/SDL/blob/SDL2/docs/README.md).
|
If it doesn't work, read [SDL/INSTALL.txt](https://github.com/libsdl-org/SDL/blob/SDL2/INSTALL.txt) and [SDL/docs/README.md](https://github.com/libsdl-org/SDL/blob/SDL2/docs/README.md).
|
||||||
4. Symlink SDL headers directory to `dependencies/include`
|
4. Symlink SDL headers directory to `dependencies/include`
|
||||||
```sh
|
```sh
|
||||||
cd GraphC
|
cd ../GraphC
|
||||||
ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH -T dependencies/include/SDL2
|
ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH -T dependencies/include/SDL2
|
||||||
```
|
```
|
||||||
Location of the headers can be found by `pkg-config --cflags --libs sdl2`.
|
Location of the headers can be found by `pkg-config --cflags --libs sdl2`.
|
||||||
Mingw installs SDL2 headers to `/mingw64/include/SDL2`.
|
Mingw installs SDL2 headers to `/mingw64/include/SDL2`.
|
||||||
5. Compile the program
|
5. Compile the program
|
||||||
```sh
|
```sh
|
||||||
cbuild build_exec
|
cbuild build_exec_dbg
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user