Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
159 views2 pages

Graphics Installation Steps On Ubuntu 22.04-1

Sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
159 views2 pages

Graphics Installation Steps On Ubuntu 22.04-1

Sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Graphics Installation Commands

(Paste the following commands in terminal. Dont include ‘ $ ’ while pasting)

$ 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-2.2 guile-2.2-dev

$ wget http://download.savannah.gnu.org/releases/libgraph/libgraph-1.0.2.tar.gz

$ tar -xzvf libgraph-1.0.2.tar.gz

$ cd libgraph-1.0.2

$ CPPFLAGS="$CPPFLAGS $(pkg-config --cflags-only-I guile-2.2) -fcommon" \


CFLAGS="$CFLAGS $(pkg-config --cflags-only-other guile-2.2) -fcommon" \
LDFLAGS="$LDFLAGS $(pkg-config --libs guile-2.2)" \
./configure

$ make && sudo make install

$ sudo cp /usr/local/lib/libgraph.* /usr/lib

----------------------------------------------------------------------------------------------------------
To check
(put program circle.cpp in home directory)

$ cd
$ g++ circle.cpp -o abc.o -lgraph
$ ./abc.o //circle should be displayed

------------------------------------------------------------------------

OpenGL Installation Commands


$ sudo apt update
$ sudo apt install build-essential freeglut3-dev libglew-dev
------------------------------------------------------------------------------------
To check
(put program main6.cpp in home directory)

$ g++ main6.cpp -o cube -lGL -lGLU -lglut


$ ./cube // cube should be displayed

You might also like