Hello,

I have an up-to-date OS X system (10.11) and try to compile PVSB by myself 
using the system clang compiler. 
I use psvb v5.1.2 and only enable paraview and qt. I compile with export 
VERBOSE=1

It is known, that qt4 does not compile any more with clang on OSX.

The standard qt5 version in versions.cmake is 5.4.1and results in a compile 
error (see below)

Changing qt5 in versions.cmake to the current 5.7.0 requires to remove 
-skip qtquick1 
-skip qtwebkit
from qt5.cmake.

It results in another compile error (see below) which is strange as qt5.7.0 
compiles if I just compile the sources (with default configure and the 
configure from pvsb, see also below). 

According to 
https://forum.qt.io/topic/64255/compile-errors-updating-my-osx-and-qt/6 
one should configure -std=c++11 instead of -std=c++1z which I didn’t manage yet.

With the latest qt 5.6 I made the same observations as with qt 5.7.0.

With qt 5.5.1 ist works.

However I was not able to compile qt 5.5.1 on Linux with gcc 6.1 (but had no 
issues with 5.7.0 beside the two skips to be removed). So I’ll use 5.5.1 for 
OSX with clang and 5.7.0 with gcc 6.1 on Linux.

Anyway, psvb doesn’t compile on OS X 10.11 with standard clang but with the 
proper change in versions.cmake for qt5 it works.


————————————————————
Error of standard qt 5.4.1 within pvsb:

Users/fwein/tmp/pvsb_qt5_org/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/tools/qlalr/lalr.cpp:241:1:
 error: declaration of anonymous struct must be a definition
struct _Nullable: public std::unary_function<Name, bool>
^
/Users/fwein/tmp/pvsb_qt5_org/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/tools/qlalr/lalr.cpp:241:56:
 error: expected unqualified-id
struct _Nullable: public std::unary_function<Name, bool>
                                                       ^
/Users/fwein/tmp/pvsb_qt5_org/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/tools/qlalr/lalr.cpp:303:98:
 error: expected expression
          NameList::iterator nn = std::find_if (rule->rhs.begin (), 
rule->rhs.end (), std::not1 (_Nullable (this)));
                                                                                
                 ^
/Users/fwein/tmp/pvsb_qt5_org/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/tools/qlalr/lalr.cpp:638:107:
 error: expected expression
                  NameList::iterator first_not_nullable = std::find_if (dot, 
rule->rhs.end (), std::not1 (_Nullable (this)));
                                                                                
                          ^
4 errors generated.


————————————————————
Error of qt 5.7.0 within pvsb:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -c -fPIC -arch x86_64 -mmacosx-version-min=10.11 
--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -ffunction-sections -O2 -fPIC -std=c++1z -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -mmacosx-version-min=10.8 -fno-exceptions -Wall -W -DQT_NO_MTDEV 
-DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_BOOTSTRAPPED 
-DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM 
-DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD 
-DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED 
-DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_FOREACH 
-DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT 
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER 
-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 
-DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/tools/bootstrap
 -I. 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/5.7.0
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/5.7.0/QtCore
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtXml
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtXml/5.7.0
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtXml/5.7.0/QtXml
 -I../../../include -I../../../include/QtCore 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5-build/qtbase/include/QtXml
 
-I/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/mkspecs/macx-clang
 -o .obj/qlogging.o 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/corelib/global/qlogging.cpp
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/src/corelib/global/qlogging.cpp:43:
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/qlist.h:1:
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:47:
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/qhashfunctions.h:1:
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhashfunctions.h:45:
In file included from 
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/qpair.h:1:
/Users/fwein/tmp/pvsb_qt5_7_0/ParaViewSuperbuild/build/qt5/src/qt5/qtbase/include/QtCore/../../src/corelib/tools/qpair.h:55:31:
 error: no template named 'is_nothrow_default_constructible' in namespace 
'std'; did you mean 'QtPrivate::is_default_constructible'?
        Q_DECL_NOEXCEPT_EXPR((std::is_nothrow_default_constructible<T1>::value 
&&
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              QtPrivate::is_default_constructible

——————————————————————————-
make of qt5.7.0 when compiled standalone which works:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 -mmacosx-version-min=10.8 -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV 
-DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_EXCEPTIONS 
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_WIDGETS_LIB -DQT_GUI_LIB 
-DQT_CORE_LIB -I. -I../../gui/openglwindow -I../../../include 
-I../../../include/QtWidgets -I../../../include/QtGui -I../../../include/QtCore 
-I.moc 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Headers
 
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework/Headers
 -I../../../mkspecs/macx-clang 
-F/Users/fwein/tmp/qt-everywhere-opensource-src-5.7.0/qtbase/lib -o 
.obj/windowcontainer.o windowcontainer.cpp


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to