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: Bardo Bakker <>
  • To:
  • Subject: Re: [cgal-discuss] Compile CGAL mac 10.6 + port fails
  • Date: Mon, 30 Nov 2009 21:54:31 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=NHSY592329AAQWMXogz/Y6UhSrOmSfmmgI4NoZ9u6hnqJAM9E/esTNryBCGR2RUSKB zDOFzZsEfRgeAs3f2XoP0Xg/WK4MovoM8pwh05IP56+ZFTeNIKgSZFY+ZmTi6P70RY9Z 7IzeUWHZPETyRrj/aNoNqTG7955AEkPlwFqbs=

To keep everybody in touch of my progress:

On Nov 30, 2009, at 14:02, Bardo Bakker wrote:

> I try to compile CGAL with "port" on my 64 bit mac.
> My qt libs are 32 bit.
> The compiler complains about this difference.
>
> I tried this:
>
> port install cgal -demos WITH_CGAL_Qt4=OFF CFLAGS=-m32
>
> Do you have a clue how to do it? Is the port-file altered by the options I
> give to port?

Bardo,

I'm sending this reply to the macports-users list, where any further
discussion should occur.

Users are not meant to specify configure options on the command line, and
doing so in the way you're trying will have no effect. Ports are meant to
install correctly without the need to specify additional options.

How did you compile your qt libs to be 32-bit? The approved way to change the
architecture of port compilation is to set build_arch in macports.conf. But
since this is a new option, not all ports support this.

Op 30 nov 2009, om 19:00 heeft Laurent Rineau (GeometryFactory) het volgende
geschreven:

> 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/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>




Archive powered by MHonArc 2.6.16.

Top of Page