[Paraview] superbuild fails on OS X [solved]

Fabian Wein fabian.wein at fau.de
Mon Jan 18 06:53:01 EST 2016


I found it: Qt needs to be enabled!

ENABLE_qt4 results in the error below, with USE_SYSTEM_qt4 (installed with brew) it works!

While I understand that there is no gui without qt and that it makes sense to build paraview without gui, I suggest to make it 
a little clearer:

The help for ENABLE_qt* is just „Request to build project qt*“. Maybe an „Qt is necessary for the gui“ could be added. Also the error message from make install could be enriched with a check for Qt and a message.


/Users/fwein/code/ParaViewSuperbuild/build/qt4/src/qt4/src/gui/painting/qpaintengine_mac.cpp:345:19: error: use of undeclared identifier 'CMGetProfileByAVID'
    CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
                  ^
/Users/fwein/code/ParaViewSuperbuild/build/qt4/src/qt4/src/gui/painting/qpaintengine_mac.cpp:348:9: error: use of undeclared identifier 'CMCloseProfile'
        CMCloseProfile(displayProfile);
        ^
In file included from /Users/fwein/code/ParaViewSuperbuild/build/qt4/src/qt4/src/gui/painting/qpaintengine_mac.cpp:44:
In file included from ../../include/QtGui/private/qpaintengine_mac_p.h:1:
../../include/QtGui/private/../../../../qt4/src/gui/painting/qpaintengine_mac_p.h:252:9: warning: private field 'mBytesPerLine' is not used [-Wunused-private-field]
    int mBytesPerLine;
        ^
3 warnings and 2 errors generated.
make[5]: *** [.obj/release-shared/qpaintengine_mac.o] Error 1
make[4]: *** [release-install] Error 2
make[3]: *** [sub-gui-install_subtargets-ordered] Error 2
CMake Error at /Users/fwein/code/ParaViewSuperbuild/build/pv-qt4-build.cmake:33 (message):
  Failed with exit code 2



> Am 18.01.2016 um 10:25 schrieb Fabian Wein <fabian.wein at fau.de>:
> 
> I have the latest OS X and qt4 and qt5 installed by brew.
> 
> I use the current superbuild, which covers PV 4.4 (why not 5.0?) but build fails.
> 
> I use the default setting in my build and just set
> CMAKE_INSTALL_PREFIX and ENABLE_paraview
> 
> make 
>> [100%] Built target paraview
> 
> make install
> ….
> [100%] Built target paraview
> Install the project...
> -- Install configuration: ""
> CMake Error at cmake_install.cmake:39 (file):
>  file INSTALL cannot find
>  "/Users/fwein/code/ParaViewSuperbuild/build/install/Applications/paraview.app".
> make: *** [install] Error 1
> 
> Any suggestion or hint where to look in the log files is appreciated.



More information about the ParaView mailing list