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: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] build error for CGAL 4.7 with Qt5 on mac os el capitan
  • Date: Fri, 01 Apr 2016 10:21:58 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:6DGwZhcvPmREilWV+TIs/RbllGMj4u6mDksu8pMizoh2WeGdxc69Zh7h7PlgxGXEQZ/co6odzbGG4+a7ACdZus7JmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviq9uIOk4R32L1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5g/GLdXBTBjP2Eu79DwrjHCSxGO7z0SSDY4iB1NVkLh5QzgU5Ht+hH7sOd0xWHaFuLfafcbVDOn4rtxWTHhgzsALS94uimDjsVtlq9dvFS7phpyypP8a46cMLx5ZKyLLoBSfnZIQssED38JOYi7dYZaV+c=
  • Organization: GeometryFactory

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/




Archive powered by MHonArc 2.6.18.

Top of Page