Daily Diaries Of CTK

.

Thứ Năm, 12 tháng 5, 2016

How to make install graphic in ubuntu


Hello friends , here we are with a video "Graphics Programming in C++ on Ubuntu" , how to setup graphics.h in Linux environment / Ubuntu.

Download link: http://download.savannah.gnu.org/rele...

commands used in the tutorial:

= sudo apt-get update
= sudo apt-get upgrade
= sudo apt-get install build-essential
= sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev

= cd libgraph-1.0.2
= ./configure
= sudo make
= sudo make install
= sudo cp /usr/local/lib/libgraph.* /usr/lib


after you code graphics you will buile programs by command: 
g++ name.cpp -o name -lgraph

0 nhận xét:

Đăng nhận xét