Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compile CGAL mac 10.6 + port fails

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compile CGAL mac 10.6 + port fails


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Compile CGAL mac 10.6 + port fails
  • Date: Mon, 30 Nov 2009 19:00:43 +0100
  • Organization: GeometryFactory

Le lundi 30 novembre 2009 18:50:04, Bardo Bakker a écrit :
> Hi,
>
> Compilation of CGAL fails on mac because of:
>
> bash-3.2# less /opt/local/var/macports/logs/cgal/main.log | grep error
>
> :info:build /Library/Frameworks/QtCore.framework/Headers/qglobal.h:283:2:
> : error: #error "You are building a 64-bit application, but using a 32-bit
> : version of Qt. Check your build configuration." info:build
> : /Library/Frameworks/QtCore.framework/Headers/qglobal.h:283:2: error:
> : #error "You are building a 64-bit application, but using a 32-bit version
> : of Qt. Check your build configuration." info:build
> : /Library/Frameworks/QtGui.framework/Headers/qregion.h:158: error:
> : 'toQDRgn' was not declared in this scope info:build shell command " cd
> : "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp
> :orts.org_release_ports_gis_cgal/work/cgal-3.5" && /usr/bin/make -j2 "
> : returned error 2 error:build Target org.macports.build returned: shell
> : command failed error:build Status 1 encountered during processing.
>
> The main point is:
>
> You are building a 64-bit application, but using a 32-bit version of Qt.
> Check your build configuration.
>
> Well, I never choose to compile the 32 bit version...

Nevertheless, you have installed in /Library/Frameworks/ a 32 bits version of
Qt, whereas your default architecture is 64 bits.

> Can I compile CGAL for 32 bit machines?

It should be doable, even on a 64 bits system, but you would need to install
32 bits version of all dependencies of CGAL. In my opinion, you should avoid
doing so.

You should install the 64 bits version of Qt.

> Can I skip the Qt lib with port? (All the other libs are good compiled.)

The CGAL_Qt4 library is needed only by some CGAL demos, but not by the CGAL
library itself. You can configure CGAL with WITH_CGAL_Qt4=OFF, so that the
compilation process does not try to compile CGAL_Qt4.

--
Laurent Rineau, PhD
Release Manager of the CGAL Project
http://www.cgal.org/
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page