Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] build error for CGAL 4.7 with Qt5 on mac os el capitan

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] build error for CGAL 4.7 with Qt5 on mac os el capitan


Chronological Thread 
  • From: Pratyush Pranav <>
  • To:
  • Subject: Re: [cgal-discuss] build error for CGAL 4.7 with Qt5 on mac os el capitan
  • Date: Fri, 1 Apr 2016 22:27:45 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:ayfMVBaBhtwsPQlmoh0Zern/LSx+4OfEezUN459isYplN5qZpcW8bnLW6fgltlLVR4KTs6sC0LqG9fu6EjVcvt6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDivcaJKFwU23KUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGfayQqIjULYNDCg6K3tno4rwpBzbRE2O4GEdWyMYiF1TEg3d5Vb7WJn29SD1v+441CiBNtDtVuMIXmGp4K5vDRPpkywaLCUR8WfNi8U2grgIjgimoklH2YfIcZyONLJGZKrbdM1SEXJbV9pASj5MKoy5ZooLSeEGOLAL/MHGu1ISoE7mVkGXD+T1x2oQiw==

Dear Laurent,

This worked like a charm, thanks. I have been banging my head over this for
over a week now, scourging internet for possible solutions, but couldn’t find
one. Thanks again!

pratyush

> On 1 Apr 2016, at 10:21, Laurent Rineau (CGAL/GeometryFactory)
> <>
> wrote:
>
> Le Thursday 31 March 2016 16:26:30 Pratyush Pranav a écrit :
>> Hi,
>>
>> I am running into trouble while trying to install CGAL 4.7 with Qt 5.6 on
>> OSX El Capitan. I use the developor tools from X code. I am attaching the
>> outputs of cmake and make below. Any help will be greatly appreciated.
>
> (I reply below, with answers intertwined with parts of your message.)
>
> [...]
>> == Setting paths ==
>> -- Build CGAL from release in directory CGAL-4.7
>> -- Packagenames: CGAL-4.7
>> == Setting paths (DONE) ==
> [...]
>> Configuring libCGAL_Qt5
>> -- USING Qt5_VERSION = '5.6.0'
>> -- OpenGL include: /System/Library/Frameworks/OpenGL.framework
>> -- OpenGL libraries:
>> /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.
>> framework -- OpenGL definitions:
>> -- Qt5Core include:
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework;/Users/pratyuze/S
>> oftwares/qt5/qtbase/lib/QtCore.framework/Headers;/Users/pratyuze/Softwares/q
>> t5/qtbase/.//mkspecs/macx-clang -- Qt5 libraries: Qt5::Core Qt5::Gui
>> Qt5::Svg Qt5::OpenGL
>> -- Qt5Core definitions: -DQT_CORE_LIB
>> -- moc executable: /Users/pratyuze/Softwares/qt5/qtbase/bin/moc
>> -- uic executable: /Users/pratyuze/Softwares/qt5/qtbase/bin/uic
>> -- Requested component: MPFR
>> -- Requested component: GMP
>> libCGAL_Qt5 is configured
>> -- Sources for CGAL component libraries
>> 'CGAL_Core;CGAL_ImageIO;CGAL_Qt3;CGAL_Qt5' detected == Generating build
>> files (DONE) ==
>>
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to:
>> /Users/pratyuze/Libraries/CGAL-4.7/build
>
> One can see that the CMake configuration of CGAL libraries went fine.
>
> [...]
>> Scanning dependencies of target CGAL_Qt5
>> [ 29%] Building CXX object
>> src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all_files.cpp.o In file included from
>> /Users/pratyuze/Libraries/CGAL-4.7/build/src/CGAL_Qt5/all_files.cpp:1: In
>> file included from
>> /Users/pratyuze/Libraries/CGAL-4.7/src/CGAL_Qt5/debug.cpp:22: In file
>> included from
>> /Users/pratyuze/Libraries/CGAL-4.7/src/CGAL_Qt5/../../include/CGAL/Qt/debug
>> .h:28: In file included from
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/QString:1
>> : In file included from
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h
>> :43:
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qrefcount
>> .h:48:22: error: expected ';' at end of declaration list inline bool ref()
>> Q_DECL_NOTHROW {
>> ^
>> In file included from
>> /Users/pratyuze/Libraries/CGAL-4.7/build/src/CGAL_Qt5/all_files.cpp:1: In
>> file included from
>> /Users/pratyuze/Libraries/CGAL-4.7/src/CGAL_Qt5/debug.cpp:22: In file
>> included from
>> /Users/pratyuze/Libraries/CGAL-4.7/src/CGAL_Qt5/../../include/CGAL/Qt/debug
>> .h:28: In file included from
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/QString:1
>> :
>> /Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h
>> :65:1: error: unknown type name 'Q_FORWARD_DECLARE_CF_TYPE'
>> Q_FORWARD_DECLARE_CF_TYPE(CFString);
>
> My guess is that you have Qt4 headers somewhere in the include path. Then
> the <QtCore/qglobal.h> and <QtCore/qconfig.h> found first are those from
> Qt4, instead of from Qt5.
>
> See for example a blog page explaining a similar failure, on MacOS X as
> well:
>
>
> http://blog.glehmann.net/2015/01/06/Investigating-build-failure-with-both-Qt4-and-Qt5-installed-on-Mac-OS-X/
>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
> Release Manager of the CGAL Project http://www.cgal.org/
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>




Archive powered by MHonArc 2.6.18.

Top of Page