10000 GitHub - PacCol/GraphLib: A graphic library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PacCol/GraphLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphLib

Language License: MIT

A graphic library

Get started

Graphlib is very easy to learn. This library can open, read, edit and save jpeg images.

Installation (On linux)

Build and install the library

To begin download the last release in a directory
Open a terminal, unzip the release and go into the repository
Go into the the build directory (cd build)
The library will be installed into /usr/local/lib/
The headers will be installed into /usr/local/include/
Build the library (make auto)
The library will be compiled and installed

Set the LD_LIBRARY_PATH

The LD_LIBRARY_PATH is /usr/local/lib/
G++ needs it to find the library when you run a programm that use this library
To set it, return at the root of the repository (cd ..)
Set the LD_LIBRARY_PATH running env.sh (. ./env.sh)

You must run the env.sh command each time you open a terminal (. ./env.sh)

Your first example

Go into the examples directory (cd /examples/jpeg/)
Build the example (make)
Now read the main.cc file
The comments will help you
To build the programm you need to use this shell line :
g++ -Wall -o main main.cc -I/usr/local/include -L/usr/local/lib -lgraph
-Wall option : show all warnings
-I/usr/local/include option : find the graphlib headers
-L/usr/local/lib option : find the graphlib executable
-lgraph option : include the graphlib
Open the output image and view the change
Begin your first project !

Errors

If you detected any errors, please contact me in the issues section !

0