ClanLib SDK

GNU C++ on Linux

Installing using Ubuntu (9.04)

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  (unless compiled manually)
    	libfreetype6-dev (unless compiled manually)
    	x11proto-xf86vidmode-dev (to enable XF86 VidMode)
    	libxxf86vm-dev (to enable XF86 VidMode)
    	libfontconfig1-dev
    	libxi-dev
    	libgl1-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
    	xtrans-dev
  • ClanSDL:
  • This package has moved into a seperate clanSDL package.
  • ClanSound:
  • 	libasound2-dev  (for alsa)
  • ClanMikmod:
  • 	libmikmod2
    	libmikmod2-dev
  • ClanVorbis:
  • 	libvorbis0a
    	libvorbis-dev
    	libogg-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-2.0/index.html". If you prefer doxygen style API documentation, look in "Documentation/Reference/doxyoutput/index.html"