Skip to Content.
Sympa Menu

cgal-discuss - Re: Compiling the Polyhedron demo on Debian GNU/Linux Re: [cgal-discuss]

Subject: CGAL users discussion list

List archive

Re: Compiling the Polyhedron demo on Debian GNU/Linux Re: [cgal-discuss]


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: Compiling the Polyhedron demo on Debian GNU/Linux Re: [cgal-discuss]
  • Date: Tue, 31 Mar 2009 19:30:15 +0200
  • Organization: GeometryFactory

On Tuesday 31 March 2009 19:07:53 Alejandro Aguilar Sierra wrote:
> Hello:
>
> I am trying to compile the Polyhedron demo, but after running cmake I
> get this messages:
>
> -- A library with LAPACK API not found. Please specify library location.
> -- TAUCS requires LAPACK and BLAS.
> -- NOTICE: This demo requires QGLViewer, and will not be compiled.
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/ale/src/mesh/cgal/demo/Polyhedron
>
> But I have QGLViewer, in fact two versions of it (for qt3 and qt4),
> dpkg -l |grep libqglviewer
>
> libqglviewer-qt3-2 2.3.1-3
> libqglviewer-qt3-dev 2.3.1-3
> libqglviewer-qt4-2 2.3.1-3
> libqglviewer-qt4-dev 2.3.1-3
>
> Any hint?


It's Debian fault. libQGLViewer-qt4-dev (as well as *-qt3-dev) is packaged in a way that even libQGLViewer upstream examples cannot compile (because #include <QGLViewer/qglviewer.h> does match any header path).


Use that trick:


mkdir $HOME/local/include
ln -s /usr/include/qglviewer-qt4 $HOME/local/include/QGLViewer


Then, edit the CMake cache (editing the file CMakeCache.txt directly, or using "cmake-gui ." or "ccmake .") so that QGLVIEWER_INCLUDE_DIR=$HOME/local/include (expand $HOME here), and QGLVIEWER_LIBRARIES=/usr/lib/libqglviewer-qt4.so, and rerun the configuration stage of CMake. That should be OK after that.


--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/





Archive powered by MHonArc 2.6.16.

Top of Page