Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problem with Qt and CGAL 3.5 on Mac OS X10.6.2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem with Qt and CGAL 3.5 on Mac OS X10.6.2


Chronological Thread 
  • From: Sandeep Kumar Dey <>
  • To:
  • Subject: [cgal-discuss] Problem with Qt and CGAL 3.5 on Mac OS X10.6.2
  • Date: Fri, 29 Jan 2010 19:07:50 +0100 (CET)

Dear All,

I am trying to install CGAL3.5 on Mac OS X10.6.2
Now the demos are dependent on QT3 and Qt4.
Then I tried to install Qt3 by macport, I got the following message:

sudo port install qt3-mac
Password:
---> Computing dependencies for qt3-mac
---> Configuring qt3-mac
Error: Target org.macports.configure returned: configure failure: shell
command
" cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8"
&& echo yes | ./configure --prefix=/opt/local -v -prefix '/opt/local' -docdir
'/opt/local/share/doc/qt3-mac/html' -datadir '/opt/local/share/qt3' -headerdir
'/opt/local/include/qt3' -plugindir '/opt/local/lib/qt3-plugins' -release
-shared -fast -thread -stl -qt-gif -qt-imgfmt-png -qt-imgfmt-jpeg
-qt-imgfmt-mng -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-nis -no-cups -ipv6 -largefile -system-zlib -system-libpng
-system-libjpeg -system-libmng '-I/opt/local/include' '-L/opt/local/lib' "
returned error 2
Command output: mac_version.cpp:5:19: warning: missing terminating " character
mac_version.cpp:5: error: missing terminating " character
mac_version.cpp:6:1: warning: missing terminating " character
mac_version.cpp:6: error: missing terminating " character
mac_version.cpp: In function 'int main()':
mac_version.cpp:7: error: expected primary-expression before 'return'
Mac version cannot be detected!

This is the Qt/Mac Open Source Edition.

You are licensed to use this software under the terms of
the GNU General Public License (GPL).

Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of the license?
Creating qmake. Please wait...
c++ -c -o project.o -pipe -DQT_MACOSX_VERSION= -I. -Igenerators
-Igenerators/unix -Igenerators/win32 -Igenerators/mac
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qmake
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include
-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL
-DQT_NO_COMPRESS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/mkspecs/macx-g++
-DHAVE_QCONFIG_CPP project.cpp
In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qtl.h:42,
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qvaluelist.h:42,
from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qstringlist.h:42,
from project.h:39,
from project.cpp:36:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt3-mac/work/qt-mac-free-3.3.8/include/qglobal.h:187:6:
error: #error "This version of Mac OS X is unsupported"
project.cpp: In member function 'bool QMakeProject::read(uchar)':
project.cpp:685: warning: format not a string literal and no format arguments
make: *** [project.o] Error 1
qmake failed to build. Aborting.

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get
complete output.
Macintosh-002241324bb2-6:CGAL-3.5 usiusi$ sudo port install q43-mac
Error: Port q43-mac not found
Before reporting a bug, first run the command again with the -d flag to get
complete output.

Then I tried to install Qt4, which is successfully installed.

Now I run cmake -DCGAL_DIR=directory of CGAL3.5 .

I expected to get error due to improper Qt3 installation but Qt4 was also
ignored.
Following is the message:

Macintosh-002241324bb2-6:CGAL-3.5 usiusi$ cmake
-DCGAL_DIR=/Users/usiusi/CGAL-3.5 .
-- CGAL_MAJOR_VERSION=3
-- CGAL_MINOR_VERSION=5
-- CGAL_BUILD_VERSION=
-- CGAL_SONAME_VERSION=4
-- CGAL_SOVERSION =4.0.0
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=10
-- Mac Leopard detected
-- USING CMake version: 2.8.0
-- System: Darwin
-- USING GCC_VERSION = '4.2.1 (Apple Inc. build 5646) (dot 1)'
-- Using gcc version 4 or later. Adding -frounding-math
-- Using gcc version 4.2. Adding -fno-strict-aliasing
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
-- USING LDFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- GMPXX include: /opt/local/include
-- GMPXX libraries: /opt/local/lib/libgmpxx.dylib
-- GMP include: /opt/local/include
-- GMP libraries: /opt/local/lib/libgmp.dylib
-- GMP definitions:
-- USING GMP_VERSION = '4.3.1'
-- MPFR include: /opt/local/include
-- MPFR libraries: /opt/local/lib/libmpfr.dylib
-- MPFR definitions:
-- USING MPFR_VERSION = '2.4.2'
-- Boost include: /opt/local/include
-- Boost libraries: /opt/local/lib/libboost_thread-mt.dylib
-- Boost definitions:
-- USING BOOST_VERSION = '1.41.0'
-- CMAKE_INSTALL_PREFIX=/usr/local
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.3'
-- ZLib include: /usr/include
-- ZLib libraries: /usr/lib/libz.dylib
-- USING OPENGL_VERSION = '2.1'
-- USING QT_VERSION = '3.3.1'
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL include: /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:
/System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- OpenGL definitions:
-- Qt3 include: /Library/Frameworks/Qt.framework/Headers
-- Qt3 libraries:
/usr/local/lib/libqassistantclient.a;/Library/Frameworks/qt.framework;/opt/local/lib/libSM.dylib;/opt/local/lib/libICE.dylib;/opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib
-- Qt3 definitions: -DQT_SHARED;-DQT_NO_DEBUG
-- moc executable: QT3_MOC_EXECUTABLE-NOTFOUND
-- uic executable: QT3_UIC_EXECUTABLE-NOTFOUND
-- CGAL_Qt4 needs Qt4, cannot be configured.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/usiusi/CGAL-3.5


Please help me to resolve the problem.

Thanks and Regards,

Sandeep.



Archive powered by MHonArc 2.6.16.

Top of Page