Try sudo apt-get install libcgal*
. Here is the package description.
If you really need to compile it from source I can only say that I managed to do it on Windows 7 and on Ubuntu 10.04 (havent tried on later). However it is a bit frustrating. But when it writes: fatal error: iostream.h: No such file or directory compilation terminated
it simply cannot find the usual files provided with compiler so it might suggest that there's something wrong with your paths. And still CGAL is a C++ library, and iostream.h is a C file.
Try writing and running a simple C program using iostream.h
file and let us know if it works.
Also be sure that you have installed all required 3rd party libs (Qt, MUMPS, LAPACk etc).
EDIT: If you need compiled version anyway, than install the packaged version for development and in the free time try to make it compile at last. After you succeed it will be enough to switch include and lib directories in your project.
EDIT2:
Install prerequisities:
sudo apt-get install cmake cmake-gui libgmp* libboost-all-dev zlib
Download CGAL
Open terminal and cd
to main CGAL folder (CGAL-4.2)
run cmake: sudo cmake-gui
check Advanced
checkbox if unchecked
find options that start with WITH word and uncheck all except: WITH_CGAL_Core
and WITH_GMP
Press Configure
. Try to remove unmed dependencies or options - like OpenGL Dir not found etc. by setting proper paths and press Configure
again
After no errors are reported press Generate
and close cmake
in terminal in main CGAL folder write: make
and that should give you some libs (f.ex. libCGAL_Core.so and libCGAL.so in CGAL-4.2/lib
folder
If that worked yoy can try to add other options and functionality. Install Qt3 and Qt4, Blas, Lapack and all the stuff required, and after each change try to build it.