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: Sat, 2 Apr 2016 14:59:23 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:E7Ks3R934XBHAP9uRHKM819IXTAuvvDOBiVQ1KB92u4cTK2v8tzYMVDF4r011RmSDdWdsK4P1raempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lSsiJ04/qi6ibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYhvQ66sQVUbnmZ79qCvtDHTE+OiY04tfqvF/NV0yU934EWyIXlBRPRAPK5RW/UpbquTbhrblB33yRMsTyCLw1Qj+/9LxDSRnyiS5BOSRq3nvQj5lIlqtHsQ+6p1RH2YfSaZ/dYOJkd7/MYMEXbWVEV8dVESdGB9XvPMM0E+MdMLMA/MHGrFwUoE7mCA==

but now additionally i get the following error while building the examples..osx elcappitan again (Xcode 7.2) boost installed from home brew (version 1.60)

any help?


In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/fuzzy_range_query.cpp:1:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/Epick_d.h:22:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/NewKernel_d/Cartesian_base.h:23:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/basic.h:44:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/number_type_basic.h:65:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/int.h:30:
In file included from /Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/Modular_traits.h:26:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:1929:30: error: call to 'make_move_iterator' is ambiguous
    insert(__make_iter(__p), make_move_iterator(__v.begin()),
                             ^~~~~~~~~~~~~~~~~~
/Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/../../include/CGAL/Kd_tree.h:238:9: note: in instantiation of function template specialization
      'std::__1::vector<CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > >, std::__1::allocator<CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > >
      >::insert<CGAL::Counting_iterator<CGAL::Random_points_in_cube_d<CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > >, CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > > >' requested here
    pts.insert(pts.end(), first, beyond);
        ^
/Users/pratyuze/Libraries/CGAL-4.7/examples/Spatial_searching/fuzzy_range_query.cpp:26:8: note: in instantiation of function template specialization 'CGAL::Kd_tree<CGAL::Search_traits_d<CGAL::Epick_d<CGAL::Dimension_tag<4>
      >, CGAL::Dimension_tag<4> >, CGAL::Sliding_midpoint<CGAL::Search_traits_d<CGAL::Epick_d<CGAL::Dimension_tag<4> >, CGAL::Dimension_tag<4> >, CGAL::Plane_separator<double> >, CGAL::Boolean_tag<true>
      >::Kd_tree<CGAL::Counting_iterator<CGAL::Random_points_in_cube_d<CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > >, CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > > >' requested here
  Tree tree(N_Random_points_iterator(rpit,0),
       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1052:1: note: candidate function
      [with _Iter = CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > *]
make_move_iterator(_Iter __i)
^
/usr/local/include/boost/move/iterator.hpp:174:26: note: candidate function [with It = CGAL::Wrap::Point_d<CGAL::Epick_d<CGAL::Dimension_tag<4> > > *]
inline move_iterator<It> make_move_iterator(const It &it)
                         ^
1 warning and 1 error generated.
make[3]: *** [examples/Spatial_searching/CMakeFiles/fuzzy_range_query.dir/fuzzy_range_query.cpp.o] Error 1
make[2]: *** [examples/Spatial_searching/CMakeFiles/fuzzy_range_query.dir/all] Error 2
make[1]: *** [CMakeFiles/examples.dir/rule] Error 2
make: *** [examples] Error 2

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