Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polyhedron demo problem (bis)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polyhedron demo problem (bis)


Chronological Thread 
  • From: "Martial TOLA (CNRS-Liris)" <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron demo problem (bis)
  • Date: Tue, 19 May 2009 14:19:42 +0200

So, now for MacOsX :-)

No QT headers and QT libs in /opt/local.
But, to be sure to avoid conflicts I erase all my macports and reinstall only what it is necessary (boost, gmp and mpfr).

But ----> same error during Polyhedron link :

Undefined symbols:
"CGAL::Qt::DemosMainWindow::staticMetaObject", referenced from:
MainWindow::staticMetaObject in Polyhedron_3.o
"vtable for CGAL::Qt::DemosMainWindow", referenced from:
__ZTVN4CGAL2Qt15DemosMainWindowE$non_lazy_ptr in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::addToRecentFiles(QString)", referenced from:
MainWindow::open(QString) in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::addAboutDemo(QString, QMenu*)", referenced from:
MainWindow::MainWindow(QWidget*)in Polyhedron_3.o
"qInitResources_Triangulation_2()", referenced from:
_main in Polyhedron_3.o
"typeinfo for CGAL::Qt::DemosMainWindow", referenced from:
typeinfo for MainWindowin Polyhedron_3.o
"qInitResources_CGAL()", referenced from:
_main in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::qt_metacast(char const*)", referenced from:
MainWindow::qt_metacast(char const*)in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::addRecentFiles(QMenu*, QAction*)", referenced from:
MainWindow::MainWindow(QWidget*)in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::DemosMainWindow(QWidget*, QFlags<Qt::WindowType>)", referenced from:
MainWindow::MainWindow(QWidget*)in Polyhedron_3.o
"qInitResources_Input()", referenced from:
_main in Polyhedron_3.o
"qInitResources_File()", referenced from:
_main in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::readState(QString, QFlags<CGAL::Qt::DemosMainWindow::Option>)", referenced from:
MainWindow::readSettings() in Polyhedron_3.o
MainWindow::MainWindow(QWidget*)in Polyhedron_3.o
MainWindow::qt_metacall(QMetaObject::Call, int, void**)in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
MainWindow::qt_metacall(QMetaObject::Call, int, void**)in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::addAboutCGAL(QMenu*)", referenced from:
MainWindow::MainWindow(QWidget*)in Polyhedron_3.o
"CGAL::Qt::DemosMainWindow::writeState(QString)", referenced from:
MainWindow::writeSettings() in Polyhedron_3.o
MainWindow::quit() in Polyhedron_3.o
MainWindow::closeEvent(QCloseEvent*) in Polyhedron_3.o
MainWindow::qt_metacall(QMetaObject::Call, int, void**)in Polyhedron_3.o
MainWindow::qt_metacall(QMetaObject::Call, int, void**)in Polyhedron_3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [demo/Polyhedron/Polyhedron_3] Error 1
make[1]: *** [demo/Polyhedron/CMakeFiles/Polyhedron_3.dir/all] Error 2
make: *** [all] Error 2






Laurent Rineau (GeometryFactory) a écrit :
On Friday 15 May 2009 15:05:34 Martial TOLA (CNRS-Liris) wrote:
Qt4 include: /usr/include
Qt4 libraries:
optimized;/Library/Frameworks/QtOpenGL.framework;debug;/Library/Frameworks/
QtOpenGL.framework;-framework OpenGL -framework
AGL;optimized;/Library/Frameworks/QtGui.framework;debug;/Library/Frameworks
/QtGui.framework;-framework Carbon;-framework
AppKit;optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Framew
orks/QtCore.framework;/usr/lib/libz.dylib;-framework ApplicationServices
Qt4 definitions: -DQT_DLL
moc executable: /Developer/Tools/Qt/moc
uic executable: /Developer/Tools/Qt/uic

That shows that Qt is found in the system (/usr/include, and the system frameworks).

[100%] Building CXX object
demo/Polyhedron/CMakeFiles/Polyhedron_3.dir/Polyhedron_3.o
cd /Users/mt/_lib_autres_que_macports/CGAL-3.4/build/demo/Polyhedron &&
/usr/bin/c++ -DQT_DLL -DQT_OPENGL_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_CORE_LIB -DCGAL_USE_TAUCS -DLAPACK_USE_F2C
-DCGAL_USE_F2C -DBLAS_USE_F2C -DCGAL_USE_F2C -DCGAL_TAUCS_ENABLED
-DQT_NO_DEBUG -frounding-math -O3 -DNDEBUG
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/demo/Polyhedron/./include
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/build/include
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/include
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/demo/Polyhedron/.
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/build/demo/Polyhedron
-I/opt/local/include
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/demo/Polyhedron/optimized
-F/Library/Frameworks
-I/Users/mt/_lib_autres_que_macports/CGAL-3.4/demo/Polyhedron/debug
-I/Library/Frameworks/QtOpenGL.framework/Headers
-I/Library/Frameworks/QtScript.framework/Headers
-I/Library/Frameworks/QtGui.framework/Headers
-I/Library/Frameworks/QtXml.framework/Headers
-I/Library/Frameworks/QtCore.framework/Headers -F/usr/lib -o
CMakeFiles/Polyhedron_3.dir/Polyhedron_3.o -c
/Users/mt/_lib_autres_que_macports/CGAL-3.4/demo/Polyhedron/Polyhedron_3.cp
p

My guess is that you have also some Qt headers in /opt/local/include (the include path is for GMP) and that leads to binary incompatibility at link time. Verify if Qt is installed in your MacPorts tree.

begin:vcard
fn:Martial TOLA
n:TOLA;Martial
org;quoted-printable:CNRS/INSA de Lyon/Universit=C3=A9 Claude Bernard Lyon 1/Universit=C3=A9Lu=
	mi=C3=A8re Lyon 2/Ecole Centrale de Lyon;Laboratoire LIRIS - UMR 5205
email;internet:
title;quoted-printable:Ing=C3=A9nieur d'=C3=A9tudes CNRS
url:http://liris.cnrs.fr/martial.tola
version:2.1
end:vcard




Archive powered by MHonArc 2.6.16.

Top of Page