Subject: CGAL users discussion list
List archive
- From: 陳 柏宏 <>
- To:
- Subject: Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6
- Date: Fri, 4 Sep 2009 09:51:04 +0800 (CST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.tw; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=MtlQ+6g+oiyC2YruozEXH4SdVz1/VOTV36IA9plJpkWkCk5r4oiF6FlH21OIM9+JymcqZVcUTgX6ym8e4Lpyhhtdff4MJejXhQH9eBj4Z4Wvyfm35isA8fLkBRob5lbMi3wwspHKAgQDKXgzq0ifpEs3FahVUcg/b/VLrZaQUkE=;
i think this is mainly a Qt problem not a CGAL problem
it seems that the current mac binary version of Qt only includes i386 libraries while the compiler in OS X 10.6 tries to compile x86_64 unless forced with -arch i386
probably the easiest way is to downgrade to 10.5 and wait for Qt 4.6
寄件者: Laurent Rineau (GeometryFactory) <>
收件者:
寄件日期: 2009/9/3(星期四) 下午2:51:45
主 旨: Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6
Le jeudi 03 septembre 2009 19:13:14, 陳 柏宏 a écrit :
> This seems to be a different error. it is with OS X 10.5.6
>
> I am using OS X 10.6 with XCode 3.2 and it doesnt work
Anyway, if I were you, I would really try to correct the Qt error without
changing the architecture. There must exists a better solution, less painful.
> ________________________________
> 寄件者: Laurent Rineau (GeometryFactory) <>
> 收件者:
> 寄件日期: 2009/9/3(星期四) 上午9:17:05
> 主 旨: Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6
>
> Le jeudi 03 septembre 2009 18:04:53, 陳 柏宏 a écrit :
> > The -arch i386 solved the qt error..
> > this is the latest version of qt downloaded fresh from trolltech
> >
> > however, CGAL no longer compiles with -arch i386 because the rest of the
> > libraries(boost, etc) are compiled by macports as x86_64 on os x 10.6
> >
> > is the only way to solve this is to try to force macports to compile as
> > -arch i386 also?
>
> NO!
>
> CONFIG+=x86 was a very strange solution to your original problem, and that
> "solution" will cause a lot of new problems!
>
>
> I have search 2mn on the web for your compilation error (the one about
> ‘toQDRgn’ not declared), and I found out that thread:
>
> http://thread.gmane.org/gmane.comp.lib.qt.qt4/730
>
> The thread basically says that you must upgrade to XCode>=3.1.2. Then you
> can remove x86 or -arch i386.
>
>
>
> ________________________________
>
> > 寄件者: Laurent Rineau (GeometryFactory)
> > <> 收件者:
> >
> > 寄件日期: 2009/9/3(星期四) 上午3:10:18
> > 主 旨: Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6
> >
> > Le jeudi 03 septembre 2009 11:56:18, Laurent Saboret a écrit :
> > > 陳 柏宏 a écrit :
> > > > Hi,
> > > > I am having difficulty compiling CGAL projects with qt4 using Mac OS
> > > > 10.6
> > > >
> > > > I get the error
> > > >
> > > > /Library/Frameworks/QtGui.framework/Headers/qregion.h: In member
> > > > function ‘OpaqueRgnHandle* QRegion::handle(bool) const’:
> > > > /Library/Frameworks/QtGui.framework/Headers/qregion.h:158: error:
> > > > ‘toQDRgn’ was not declared in this scope
> > > >
> > > > Searching online yielded a solution that involved adding a
> > > > CONFIG += x86
> > > > to the .pro file
> >
> > That is a very strange solution! There must be something wrong in that
> > setup! Maybe you should try to upgrade your Qt version, to see if that
> > bug has been corrected.
> >
> > > > CGAL uses cmake though. Is there a way to do the same thing in the
> > > > CMakeLists.txt??
> > >
> > > Try do add -DCGAL_CXX_FLAGS=x86 to cmake arguments (or define
> > > CGAL_CXX_FLAGS=x86 in cmake-gui).
> >
> > Actually, that is "-arch i386" that you need to add to your compiler
> > flags. "x86" alone is not a correct compiler flag.
--
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
___________________________________________________
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
http://messenger.yahoo.com.tw/
- [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Saboret, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/04/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/04/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/04/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, 陳 柏宏, 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Rineau (GeometryFactory), 09/03/2009
- Re: [cgal-discuss] QT4 compilation with Mac OS X 10.6, Laurent Saboret, 09/03/2009
Archive powered by MHonArc 2.6.16.