build error for CGAL 4.7 with Qt5 on mac os el capitan

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

build error for CGAL 4.7 with Qt5 on mac os el capitan

Pratyush Pranav
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.

regards
Pratyush



——————————————————————————————————


== Setting paths ==
-- Build CGAL from release in directory CGAL-4.7
-- Packagenames: CGAL-4.7
== Setting paths (DONE) ==

== Generate version files ==
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=7
-- CGAL_BUGFIX_VERSION=0
-- CGAL_SONAME_VERSION=11
-- CGAL_SOVERSION     =11.0.1
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ compiler.
-- DARWIN_VERSION=15
-- Mac Leopard detected
-- USING CMake version: 3.4.3
-- System: Darwin
== Generate version files (DONE) ==

== Set up flags ==
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING LDFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '
== Set up flags (DONE) ==

== Detect external libraries ==
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
--   UseGMP-file:      
--   GMP include:      /usr/local/include
--   GMP libraries:    /usr/local/lib/libgmp.dylib
--   GMP definitions:  
-- USING GMP_VERSION = '6.1.0'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
--   UseMPFR-file:      
--   MPFR include:      /usr/local/include
--   MPFR libraries:    /usr/local/lib/libmpfr.dylib
--   MPFR definitions:  
-- USING MPFR_VERSION = '3.1.3'
-- Boost version: 1.60.0
-- Found the following Boost libraries:
--   thread
--   system
-- Boost include:     /usr/local/include
-- Boost libraries:   /usr/local/lib/libboost_thread-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
-- Boost definitions: 
-- USING BOOST_VERSION = '1.60.0'
== Detect external libraries (DONE) ==

== Write compiler_config.h ==
-- Performing Test CGAL_CFG_BOOST_VARIANT_SWAP_BUG - Success
-- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success
-- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Success
-- Performing Test CGAL_CFG_IEEE_754_BUG - Success
-- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_6 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_7 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_8 - Success
-- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Failed
-- Performing Test CGAL_CFG_NO_LIMITS - Success
-- Performing Test CGAL_CFG_NO_NEXTAFTER - Success
-- Performing Test CGAL_CFG_NO_STL - Success
-- Performing Test CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG - Success
-- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success
-- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success
-- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success
-- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success
-- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success
== Write compiler_config.h (DONE) ==

== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
libCGAL is configured
-- Sources for CGAL component library 'CGAL_Core' detected
Configuring libCGAL_Core
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Core is configured
-- Sources for CGAL component library 'CGAL_ImageIO' detected
Configuring libCGAL_ImageIO
-- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:   /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.8'
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_ImageIO is configured
-- Sources for CGAL component library 'CGAL_Qt3' detected
-- Sources for CGAL component library 'CGAL_Qt5' detected
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/Softwares/qt5/qtbase/lib/QtCore.framework/Headers;/Users/pratyuze/Softwares/qt5/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


make
Scanning dependencies of target CGAL
[  4%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
[  8%] Linking CXX shared library ../../lib/libCGAL.dylib
[  8%] Built target CGAL
Scanning dependencies of target CGAL_Core
[ 12%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
[ 16%] Linking CXX shared library ../../lib/libCGAL_Core.dylib
[ 16%] Built target CGAL_Core
Scanning dependencies of target CGAL_ImageIO
[ 20%] Building CXX object src/CGAL_ImageIO/CMakeFiles/CGAL_ImageIO.dir/all_files.cpp.o
[ 25%] Linking CXX shared library ../../lib/libCGAL_ImageIO.dylib
[ 25%] Built target CGAL_ImageIO
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);
^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:86:44: error: expected ';' at end of declaration list
    Q_DECL_CONSTEXPR inline QLatin1String() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {}
                                           ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:96:51: error: expected ';' at end of declaration list
    inline bool operator!=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:97:50: error: expected ';' at end of declaration list
    inline bool operator>(const QString &s) const Q_DECL_NOTHROW;
                                                 ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:98:50: error: expected ';' at end of declaration list
    inline bool operator<(const QString &s) const Q_DECL_NOTHROW;
                                                 ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:99:51: error: expected ';' at end of declaration list
    inline bool operator>=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:100:51: error: expected ';' at end of declaration list
    inline bool operator<=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:128:9: error: unknown type name 'QTypedArrayData'
typedef QTypedArrayData<ushort> QStringData;
        ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:128:24: error: expected unqualified-id
typedef QTypedArrayData<ushort> QStringData;
                       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:154:1: error: C++ requires a type specifier for all declarations
Q_STATIC_ASSERT_X(sizeof(qunicodechar) == 2,
^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:195:5: error: unknown type name 'QArrayData'
    QArrayData str;
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:198:5: error: unknown type name 'QStringData'
    QStringData *data_ptr() const
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:201:27: error: unknown type name 'QStringData'
        return const_cast<QStringData *>(static_cast<const QStringData*>(&str));
                          ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:201:60: error: unknown type name 'QStringData'
        return const_cast<QStringData *>(static_cast<const QStringData*>(&str));
                                                           ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:207:5: error: unknown type name 'QStringData'; did you mean 'QStringDataPtr'?
    QStringData *ptr;
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:205:8: note: 'QStringDataPtr' declared here
struct QStringDataPtr
       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:213:13: error: unknown type name 'QStringData'; did you mean 'QStringDataPtr'?
    typedef QStringData Data;
            ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:205:8: note: 'QStringDataPtr' declared here
struct QStringDataPtr
       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:215:21: error: expected ';' at end of declaration list
    inline QString() Q_DECL_NOTHROW;
                    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:220:36: error: expected ';' at end of declaration list
    inline QString(const QString &) Q_DECL_NOTHROW;
                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all_files.cpp.o] Error 1
make[1]: *** [src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all] Error 2
make: *** [all] Error 2
Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Adam Getchell
Hi Pratyush,

Perhaps this may help.

This is my build script which installs CGAL-4.7 on El Capitan (Xcode 7.2) images on Travis-CI, using both gcc and clang:



On Mar 31, 2016, at 7:26 AM, Pratyush Pranav <[hidden email]> wrote:

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.

regards
Pratyush



——————————————————————————————————


== Setting paths ==
-- Build CGAL from release in directory CGAL-4.7
-- Packagenames: CGAL-4.7
== Setting paths (DONE) ==

== Generate version files ==
-- CGAL_MAJOR_VERSION=4
-- CGAL_MINOR_VERSION=7
-- CGAL_BUGFIX_VERSION=0
-- CGAL_SONAME_VERSION=11
-- CGAL_SOVERSION     =11.0.1
-- CGAL_REFERENCE_CACHE_DIR=
-- Building shared libraries
-- Targetting Unix Makefiles
-- Using /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ compiler.
-- DARWIN_VERSION=15
-- Mac Leopard detected
-- USING CMake version: 3.4.3
-- System: Darwin
== Generate version files (DONE) ==

== Set up flags ==
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING LDFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '
== Set up flags (DONE) ==

== Detect external libraries ==
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
--   UseGMP-file:      
--   GMP include:      /usr/local/include
--   GMP libraries:    /usr/local/lib/libgmp.dylib
--   GMP definitions:  
-- USING GMP_VERSION = '6.1.0'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
--   UseMPFR-file:      
--   MPFR include:      /usr/local/include
--   MPFR libraries:    /usr/local/lib/libmpfr.dylib
--   MPFR definitions:  
-- USING MPFR_VERSION = '3.1.3'
-- Boost version: 1.60.0
-- Found the following Boost libraries:
--   thread
--   system
-- Boost include:     /usr/local/include
-- Boost libraries:   /usr/local/lib/libboost_thread-mt.dylib;/usr/local/lib/libboost_system-mt.dylib
-- Boost definitions: 
-- USING BOOST_VERSION = '1.60.0'
== Detect external libraries (DONE) ==

== Write compiler_config.h ==
-- Performing Test CGAL_CFG_BOOST_VARIANT_SWAP_BUG - Success
-- Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success
-- Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Success
-- Performing Test CGAL_CFG_IEEE_754_BUG - Success
-- Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_5 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_6 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_7 - Success
-- Performing Test CGAL_CFG_MATCHING_BUG_8 - Success
-- Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Failed
-- Performing Test CGAL_CFG_NO_LIMITS - Success
-- Performing Test CGAL_CFG_NO_NEXTAFTER - Success
-- Performing Test CGAL_CFG_NO_STL - Success
-- Performing Test CGAL_CFG_NO_WARNING_CPP_DIRECTIVE_BUG - Success
-- Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success
-- Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success
-- Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success
-- Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success
-- Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success
== Write compiler_config.h (DONE) ==

== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
libCGAL is configured
-- Sources for CGAL component library 'CGAL_Core' detected
Configuring libCGAL_Core
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_Core is configured
-- Sources for CGAL component library 'CGAL_ImageIO' detected
Configuring libCGAL_ImageIO
-- OpenGL include:     /System/Library/Frameworks/OpenGL.framework
-- OpenGL libraries:   /System/Library/Frameworks/AGL.framework;/System/Library/Frameworks/OpenGL.framework
-- USING ZLIB_VERSION = '1.2.8'
-- Requested component: MPFR
-- Requested component: GMP
libCGAL_ImageIO is configured
-- Sources for CGAL component library 'CGAL_Qt3' detected
-- Sources for CGAL component library 'CGAL_Qt5' detected
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/Softwares/qt5/qtbase/lib/QtCore.framework/Headers;/Users/pratyuze/Softwares/qt5/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


make
Scanning dependencies of target CGAL
[  4%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.o
[  8%] Linking CXX shared library ../../lib/libCGAL.dylib
[  8%] Built target CGAL
Scanning dependencies of target CGAL_Core
[ 12%] Building CXX object src/CGAL_Core/CMakeFiles/CGAL_Core.dir/all_files.cpp.o
[ 16%] Linking CXX shared library ../../lib/libCGAL_Core.dylib
[ 16%] Built target CGAL_Core
Scanning dependencies of target CGAL_ImageIO
[ 20%] Building CXX object src/CGAL_ImageIO/CMakeFiles/CGAL_ImageIO.dir/all_files.cpp.o
[ 25%] Linking CXX shared library ../../lib/libCGAL_ImageIO.dylib
[ 25%] Built target CGAL_ImageIO
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);
^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:86:44: error: expected ';' at end of declaration list
    Q_DECL_CONSTEXPR inline QLatin1String() Q_DECL_NOTHROW : m_size(0), m_data(Q_NULLPTR) {}
                                           ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:96:51: error: expected ';' at end of declaration list
    inline bool operator!=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:97:50: error: expected ';' at end of declaration list
    inline bool operator>(const QString &s) const Q_DECL_NOTHROW;
                                                 ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:98:50: error: expected ';' at end of declaration list
    inline bool operator<(const QString &s) const Q_DECL_NOTHROW;
                                                 ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:99:51: error: expected ';' at end of declaration list
    inline bool operator>=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:100:51: error: expected ';' at end of declaration list
    inline bool operator<=(const QString &s) const Q_DECL_NOTHROW;
                                                  ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:128:9: error: unknown type name 'QTypedArrayData'
typedef QTypedArrayData<ushort> QStringData;
        ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:128:24: error: expected unqualified-id
typedef QTypedArrayData<ushort> QStringData;
                       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:154:1: error: C++ requires a type specifier for all declarations
Q_STATIC_ASSERT_X(sizeof(qunicodechar) == 2,
^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:195:5: error: unknown type name 'QArrayData'
    QArrayData str;
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:198:5: error: unknown type name 'QStringData'
    QStringData *data_ptr() const
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:201:27: error: unknown type name 'QStringData'
        return const_cast<QStringData *>(static_cast<const QStringData*>(&str));
                          ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:201:60: error: unknown type name 'QStringData'
        return const_cast<QStringData *>(static_cast<const QStringData*>(&str));
                                                           ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:207:5: error: unknown type name 'QStringData'; did you mean 'QStringDataPtr'?
    QStringData *ptr;
    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:205:8: note: 'QStringDataPtr' declared here
struct QStringDataPtr
       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:213:13: error: unknown type name 'QStringData'; did you mean 'QStringDataPtr'?
    typedef QStringData Data;
            ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:205:8: note: 'QStringDataPtr' declared here
struct QStringDataPtr
       ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:215:21: error: expected ';' at end of declaration list
    inline QString() Q_DECL_NOTHROW;
                    ^
/Users/pratyuze/Softwares/qt5/qtbase/lib/QtCore.framework/Headers/qstring.h:220:36: error: expected ';' at end of declaration list
    inline QString(const QString &) Q_DECL_NOTHROW;
                                   ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all_files.cpp.o] Error 1
make[1]: *** [src/CGAL_Qt5/CMakeFiles/CGAL_Qt5.dir/all] Error 2
make: *** [all] Error 2

Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Laurent Rineau (CGAL/GeometryFactory)
In reply to this post by Pratyush Pranav
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


Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Pratyush Pranav
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) <[hidden email]> 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
>
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Pratyush Pranav
In reply to this post by Laurent Rineau (CGAL/GeometryFactory)
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) <[hidden email]> 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



Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Marc Glisse
On Sat, 2 Apr 2016, Pratyush Pranav wrote:

> 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?

Please report this to Apple. This is a bug in libc++, they should
explicitly qualify the call to make_move_iterator, like they do for rotate
on the line above.

> /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()),
>                             ^~~~~~~~~~~~~~~~~~

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: build error for CGAL 4.7 with Qt5 on mac os el capitan

Pratyush Pranav
ok, thanks. though another issue: the Cgal_Qt5 lib compiles after inserting the proper include path in the cake flag. however, while compiling the demos, it still looks for some qt headers in the standard installation path (and finds qt4).

fir now, i have brew unlinked qt4, and then it seems to be going fine, but maybe there is a more elegant solution?

> On 2 Apr 2016, at 15:05, Marc Glisse <[hidden email]> wrote:
>
> On Sat, 2 Apr 2016, Pratyush Pranav wrote:
>
>> 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?
>
> Please report this to Apple. This is a bug in libc++, they should explicitly qualify the call to make_move_iterator, like they do for rotate on the line above.
>
>> /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()),
>>                            ^~~~~~~~~~~~~~~~~~
>
> --
> Marc Glisse
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss