Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Anandesh-Sharma authored Oct 24, 2018
1 parent db4e715 commit f841bd1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@
5. After that paste those linkers, go to ```Open settings > Packages > Settings of gpp-compiler package > C++ Compiler Options```.
6. Done! Create new file and press *f5* to run the program.

# Graphics in Linux Ubuntu/Mint/Fedora
1. First Download the suitable binary file, according to your Linux OS
The current release of SDL_bgi is **2.2.3**. To compile it from sources, you will need a compiler (gcc or [clang](http://clang.llvm.org/) are fine), make, and SDL2. On Debian and Ubuntu-like distributions, you will need the package 'libsdl2-dev' and its dependencies.

Building has been tested on GNU/Linux Mint 18.*, Fedora 26, Windows ([MSYS2](https://www.msys2.org/) + mingw-w64, [Code::Blocks](http://codeblocks.org/), [Dev-C++](http://orwelldevcpp.blogspot.com/) ), and Mac OS X Yosemite.

- Sources: [SDL_bgi-2.2.3.tar.gz](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-2.2.3.tar.gz)
- Source RPM package: [SDL_bgi-2.2.3-1.src.rpm](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-2.2.3-1.src.rpm)
- 64 bit binary RPM package (Fedora): [SDL_bgi-2.2.3-1.x86_64.rpm](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-2.2.3-1.x86_64.rpm)
- 64 bit binary DEB package, for Debian-like Linux distributions: [sdl_bgi_2.2.3-1_amd64.deb](https://sourceforge.net/projects/libxbgi/files/sdl_bgi_2.2.3-1_amd64.deb)
- binaries for Windows (MSYS2 + mingw-w64, CodeBlocks, Dev-C++):
[SDL_bgi-2.2.3-win.zip](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-2.2.3-win.zip)
- Previous versions sources:
[SDL_bgi-2.2.2.tar.gz](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-2.2.2.tar.gz)
[SDL_bgi-1.0.1.tar.gz](https://sourceforge.net/projects/libxbgi/files/SDL_bgi-1.0.1.tar.gz)

2. To compile a program using SDL_bgi, make sure that it includes the 'graphics.h' header file. Then:

gcc -o program program.c -lSDL_bgi -lSDL2
3. If you want to integrate this with your favourite editors the simply add linker.

-lSDL_bgi
-lSDL2







Expand Down

0 comments on commit f841bd1

Please sign in to comment.