Quantcast

error building demos - Ubuntu

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error building demos - Ubuntu

John Rugis

The CGAL examples build and execute, but I'm getting errors in the link phase of building the demos:


...

[ 63%] Linking CXX executable Mesh_3

/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QDialog::minimumSizeHint() const@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QBoxLayout::addLayout(QLayout*, int)@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QGLWidget::qt_metacast(char const*)@Qt_5'
...

collect2: error: ld returned 1 exit status
CMakeFiles/Mesh_3.dir/build.make:301: recipe for target 'Mesh_3' failed
make[2]: *** [Mesh_3] Error 1
CMakeFiles/Makefile2:458: recipe for target 'CMakeFiles/Mesh_3.dir/all' failed
make[1]: *** [CMakeFiles/Mesh_3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


Ubuntu 16.04

CGAL-4.9

libQGLViewer-2.6.4


The QGLViewer examples build and execute.


John Rugis

University of Auckland


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error building demos - Ubuntu

John Rugis

On further investigation...

All of the demos, including Mesh_3, appear to build OK if I execute cmake . and make from the top level demo directory rather than, for example, within the Mesh_3 directory as suggested here:

http://www.cgal.org/FAQ.html#debian_demos




From: [hidden email] <[hidden email]> on behalf of John Rugis <[hidden email]>
Sent: Sunday, 15 January 2017 10:19 a.m.
To: [hidden email]
Subject: [FORGED] [cgal-discuss] error building demos - Ubuntu
 

The CGAL examples build and execute, but I'm getting errors in the link phase of building the demos:


...

[ 63%] Linking CXX executable Mesh_3

/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QDialog::minimumSizeHint() const@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QBoxLayout::addLayout(QLayout*, int)@Qt_5'
/usr/local/lib/libQGLViewer-qt5.so: undefined reference to `QGLWidget::qt_metacast(char const*)@Qt_5'
...

collect2: error: ld returned 1 exit status
CMakeFiles/Mesh_3.dir/build.make:301: recipe for target 'Mesh_3' failed
make[2]: *** [Mesh_3] Error 1
CMakeFiles/Makefile2:458: recipe for target 'CMakeFiles/Mesh_3.dir/all' failed
make[1]: *** [CMakeFiles/Mesh_3.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2


Ubuntu 16.04

CGAL-4.9

libQGLViewer-2.6.4


The QGLViewer examples build and execute.


John Rugis

University of Auckland


Loading...