ClanLib SDK

GNU C++ on Linux

Installing from Ubuntu 7.10 (Gutsy Gibbon)

Use the "Synaptic Package Manager", or overwise, ensure that the latest versions of these programs exist:

	automake
	autoconf
	autotools-dev
	m4
	libtool
	libc6-dev
	linux-libc-dev
	g++ (g++-4.1 or later)
	libstdc++6-4.1-dev (or later)
	zlib1g
	zlib1g-dev

These packages are required to install the following ClanLib Modules:

  • ClanDisplay:
  • 	libpng12-0
    	libpng12-dev
    	libjpeg62-dev
    	libfreetype6
    	libfreetype6-dev
    	freeglut3
    	freeglut3-dev (select all the required development packages that freeglut requires)
    		libgl1-mesa-dev
    		libglu1-mesa-dev
    		libice-dev
    		libsm-dev
    		libx11-dev
    		libxau-dev
    		libxdmcp-dev
    		libxext-dev
    		libxt-dev
    		mesa-common-dev
    		x11proto-core-dev
    		x11proto-input-dev
    		x11proto-kb-dev
    		x11proto-xext-dev
    		xlibmesa-gl-dev
    		xtrans-dev
  • ClanGL:
  • 	libxi-dev
    	libxxf86misc-dev
    	libxxf86vm-dev
    	x11proto-xf86misc-dev
    	x11proto-xf86vidmode-dev
  • ClanMikmod:
  • 	libmikmod2
    	libmikmod2-dev
  • ClanVorbis:
  • 	libvorbis0a
    	libvorbis-dev
    	libogg-dev
  • ClanMySQL:
  • 	libmysql++2c2a
    	libmysqlclient15-dev
    	libmysqlclient15off
    	mysql-common
    	libmysql++-dev
  • ClanSqlite:
  • 	libsqlite3-0
    	libsqlite3-dev
  • ClanRegExp:
  • 	libpcre3
    	libpcre3-dev
    

    From the terminal prompt, at the base the the clanlib source code package, enter:

    (Check for errors after each line)

    	./autogen.sh
    	./configure --prefix=/usr
    	make
    	sudo make install
    

    (Developers may prefer to add --enable-debug to the ./configure line)

    To ensure that all is well, run the Example2D example, as follows:

    	cd Examples/Basic2D
    	make
    	./basic2d
    

    If you want to compile the API documentation:(Ensure the doxygen package exists)

    	./configure --prefix=/usr --enable-docs
    	make html
    	sudo make install-html
    
    

    The documentation will be placed at "/usr/share/doc/clanlib-0.9/index.html". If you prefer doxygen style API documentation, look in "Documentation/Reference/doxyoutput/index.html"