Skip to Content.
Sympa Menu

cgal-discuss - [Fwd: CGAL and QT]

Subject: CGAL users discussion list

List archive

[Fwd: CGAL and QT]


Chronological Thread 
  • From: Andreas Meyer <>
  • To:
  • Subject: [Fwd: CGAL and QT]
  • Date: Tue, 09 Oct 2007 18:39:13 +0200


--- Begin Message ---
  • From: Maik Schulze <>
  • To:
  • Subject: CGAL and QT
  • Date: Tue, 09 Oct 2007 18:13:39 +0200
  • Delivery-date: Tue, 09 Oct 2007 18:14:21 +0200
  • Envelope-to:
Dear Makers of CGAL,
I'm a student for Computational Visualistics at the University of Magdeburg, Germany. As part of my studies I would like to use the CGAL library. Unfortunately, I have some trouble compiling the demos, basically everything depending on QT.

I am working with the Microsoft Visual Studio 2005 Professional IDE under Windows XP. My CGAL version is 3.3.1. All console applications are compiling fine. Yet, I am not even sure which QT version is supposed to be used with CGAL.

As Trolltech does not seem to offer QT 3 anymore (at least not for free), I looked for Q...Windows Edition, which offers an independent implementation at http://qtwin.sourceforge.net/qt3-win32/
I tried to compile the CGAL demos against several versions available at the sourceforge website. Yet, none works. After converting the .vcproj to VC8 and changing some minor properties of the project, I get the following linker errors:

1>CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: __thiscall QString::~QString(void)" (??1QString@@QAE@XZ) already defined in qt-mt3.lib(qt-mt3.dll)
1>CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: virtual void __thiscall QWidget::setGeometry(class QRect const &)" (?setGeometry@QWidget@@UAEXABVQRect@@@Z) already defined in qt-mt3.lib(qt-mt3.dll)
1>CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: int __thiscall QRect::width(void)const " (?width@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
1>CGALQt-vc80-mt-gd.lib(Qt_widget.obj) : error LNK2005: "public: int __thiscall QRect::height(void)const " (?height@QRect@@QBEHXZ) already defined in qt-mt3.lib(qt-mt3.dll)
... [dozens more of similar errors dealing with further objects]

Assuming that CGAL cannot be built against the independent QT, could you give me some advise on which QT version to use and where to obtain it?

Sincerely,
Maik Schulze

--- End Message ---


  • [Fwd: CGAL and QT], Andreas Meyer, 10/09/2007

Archive powered by MHonArc 2.6.16.

Top of Page