-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Generating ................................... jpsvis (0.8.1)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.1)MESSAGElibs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ Clang (10.0.0.10001145)-- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build
-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Found Git: /opt/local/bin/git (found version "2.20.1")-- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.1)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ Clang (10.0.0.10001145)-- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build
-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Found Git: /opt/local/bin/git (found version "2.20.1")-- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.1)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ Clang (10.0.0.10001145)-- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build
-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Found Git: /opt/local/bin/git (found version "2.20.1")-- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.1)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ Clang (10.0.0.10001145)-- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build
cmake version 3.13.4CMake suite maintained and supported by Kitware (kitware.com/cmake).
xcode-select --version
xcode-select version 2349.
example from VTK
3.1 cmake ..
-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - doneCMake Error at /opt/local/lib/cmake/vtk-8.1/vtkModuleAPI.cmake:143 (message): Requested modules not available: vtkGUISupportQtCall Stack (most recent call first): /opt/local/lib/cmake/vtk-8.1/VTKConfig.cmake:140 (vtk_module_config) CMakeLists.txt:6 (find_package)-- Configuring incomplete, errors occurred!See also "/Users/gjaeger/Downloads/RenderWindowNoUiFile/build/CMakeFiles/CMakeOutput.log".
$ port installed vtkThe following ports are currently installed: vtk @8.1.1_1+python27 (active)
I recompile vtk with
$ sudo port install vtk +python36 +qt4 +qt5
back to 3.1 cmake .. in RenderWindowNoUiFile/build
cmake ..-- The C compiler identification is AppleClang 10.0.0.10001145-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- VTK_VERSION: 8.1.1-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Downloads/RenderWindowNoUiFile/build
make in RenderWindowNoUiFile/build
Scanning dependencies of target RenderWindowNoUiFile[ 50%] Building CXX object CMakeFiles/RenderWindowNoUiFile.dir/RenderWindowNoUiFile.cxx.o/Users/gjaeger/Downloads/RenderWindowNoUiFile/RenderWindowNoUiFile.cxx:15:10: fatal error: 'QVTKOpenGLNativeWidget.h' file not found#include <QVTKOpenGLNativeWidget.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~1 error generated.make[2]: ***[CMakeFiles/RenderWindowNoUiFile.dir/RenderWindowNoUiFile.cxx.o] Error 1make[1]: ***[CMakeFiles/RenderWindowNoUiFile.dir/all] Error 2make: ***[all] Error 2
Scanning dependencies of target RenderWindowNoUiFile[ 50%] Building CXX object CMakeFiles/RenderWindowNoUiFile.dir/RenderWindowNoUiFile.cxx.o/Users/gjaeger/Downloads/RenderWindowNoUiFile/RenderWindowNoUiFile.cxx:16:14: warning: 'QVTKWidget' is deprecated [-Wdeprecated-declarations] QVTKWidget widget; ^/opt/local/include/vtk-8.1/QVTKWidget.h:82:3: note: 'QVTKWidget' has been explicitly marked deprecated here VTK_LEGACY(QVTKWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0)); ^/opt/local/include/vtk-8.1/vtkSetGet.h:883:52: note: expanded from macro 'VTK_LEGACY'# define VTK_LEGACY(method) method __attribute__((deprecated)) ^1 warning generated.[100%] Linking CXX executable RenderWindowNoUiFile.app/Contents/MacOS/RenderWindowNoUiFileld: warning: text-based stub file /System/Library/Frameworks//ApplicationServices.framework/ApplicationServices.tbd and library file /System/Library/Frameworks//ApplicationServices.framework/ApplicationServices are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//Cocoa.framework/Cocoa.tbd and library file /System/Library/Frameworks//Cocoa.framework/Cocoa are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//CoreGraphics.framework/Versions/A/CoreGraphics.tbd and library file /System/Library/Frameworks//CoreGraphics.framework/Versions/A/CoreGraphics are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//CoreText.framework/Versions/A/CoreText.tbd and library file /System/Library/Frameworks//CoreText.framework/Versions/A/CoreText are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//ImageIO.framework/Versions/A/ImageIO.tbd and library file /System/Library/Frameworks//ImageIO.framework/Versions/A/ImageIO are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS.tbd and library file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices.tbd and library file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis.tbd and library file /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//AppKit.framework/Versions/C/AppKit.tbd and library file /System/Library/Frameworks//AppKit.framework/Versions/C/AppKit are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation.tbd and library file /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation are out of sync. Falling back to library file for linking.ld: warning: text-based stub file /System/Library/Frameworks//Foundation.framework/Versions/C/Foundation.tbd and library file /System/Library/Frameworks//Foundation.framework/Versions/C/Foundation are out of sync. Falling back to library file for linking.[100%] Built target RenderWindowNoUiFile
Tobias and I talked about this issue today. He made a few changes (see issue #65 (closed) and commit 25688c7b). My comment is the documentation of a compilation with this changes.
However, using g++-8 gives me the same error as Gregor's
Gregor: Can you try on an empty build directory cmake .. and then make?
I would like to see the result when using AppleClang and not port's g++
My cmake output is as follows:
-- The CXX compiler identification is AppleClang 10.0.1.10010046-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (18.2.0, x86_64)-- Found Git: /usr/local/bin/git (found version "2.16.2") -- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes (8.1.2)-- Check Qt 5 .................................... yes (5.12.2)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ -- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/chraibi/Workspace/jupedsim/jpsvis/build
-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working CXX compiler: /usr/bin/clang-- Check for working CXX compiler: /usr/bin/clang -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Found Git: /opt/local/bin/git (found version "2.21.0")-- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.2)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ -- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build
-- The CXX compiler identification is AppleClang 10.0.0.10001145-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- System ........................................ Darwin (17.7.0, x86_64)-- Found Git: /opt/local/bin/git (found version "2.21.0")-- Generating ................................... jpsvis (0.8.3)-- Check VTK ..................................... yes(8.1.1)-- Check Qt 5 .................................... yes(5.12.2)-- qt libs: Qt5::Widgets -- Performing Test COMPILER_SUPPORTS_CXX11-- Performing Test COMPILER_SUPPORTS_CXX11 - Success-- Performing Test COMPILER_SUPPORTS_CXX0X-- Performing Test COMPILER_SUPPORTS_CXX0X - Success-- Checking for C++11 compiler ................... yes-- Using compiler ................................ -- qt_lib_dirs -- bin install dir: .-- Configuring done-- Generating done-- Build files have been written to: /Users/gjaeger/Documents/hubs/JuPedSim_dev/jpsvis/build