Patrick’s development blog

Compile SDL/OpenGL applications using g++

Posted in SDL / OpenGL by Patrick on February 16, 2009

This is how I compile a C++ program with SDL and the OpenGL libraries GL and GLU.

g++ -o appname opengl.cpp `sdl-config –libs –cflags` -lGL -lGLU

sdl-config –libs –cflags is used to get the library path and include path for SDL. This can be used instead of manually specifying the libraries for SDL.

Burn DVD in Linux using dvd+rw-tools

Posted in Linux/GNU by Patrick on February 11, 2009

Install dvd+rw-tools with your package manager or download it from here. And then invoke the following commands…

Format disc where /dev/dvd is the device name:

dvd+rw-format -force /dev/dvd

Burn the directory (/home/user/stuff) onto the DVD:

growisofs -Z /dev/dvd -R -J /home/user/stuff

More information:
http://fy.chalmers.se/~appro/linux/DVD+RW/