[CMake] Confusing problem with building VTK via external project

David Cole david.cole at kitware.com
Wed Apr 13 11:26:31 EDT 2011


On Wed, Apr 13, 2011 at 11:04 AM, kent williams
<nkwmailinglists at gmail.com>wrote:

> I've all of a sudden started having trouble building VTK via an
> ExternalProject.  OS X, CMake 2.8.4, Standard GCC 4.2 compilers, stock
> VTK 5.6.1.
>
> output of make VERBOSE=1 of the top-level project, you can see that
> QT_QMAKE_EXECUTABLE is set, but when CMake runs, it somehow ignores
> the variables set on the command line.  The only clue I can see is
> this line:
>
> Re-run cmake no build system arguments
>
> What's going on?
>
> [  0%] Performing configure step for 'VTK'
> cd /scratch/kent/Testing/pandora.psychiatry.uiowa.edu/Fast/VTK-build
> && <http://pandora.psychiatry.uiowa.edu/Fast/VTK-build%0A&&>"/opt/cmake-2.8.4-Darwin-universal/CMake
> 2.8-4.app/Contents/bin/cmake"
> -DCMAKE_INSTALL_PREFIX:PATH=/scratch/kent/Testing/
> pandora.psychiatry.uiowa.edu/Fast/src
> -DCMAKE_CXX_COMPILER:STRING=/usr/bin/c++<http://pandora.psychiatry.uiowa.edu/Fast/src%0A-DCMAKE_CXX_COMPILER:STRING=/usr/bin/c++>
> -DCMAKE_CXX_COMPILER_ARG1:STRING=
> ...




> -- Performing Test HAVE_GCC_ERROR_RETURN_TYPE
> -- Performing Test HAVE_GCC_ERROR_RETURN_TYPE - Success
> -- Performing Test HAVE_GCC_VISIBILITY
> -- Performing Test HAVE_GCC_VISIBILITY - Success
> -- Performing Test Support for 64 bit file systems
> -- Performing Test Support for 64 bit file systems - Success
> CMake Error at CMakeLists.txt:307 (MESSAGE):
>  Qt 4.5.0 or greater not found.  Please check the QT_QMAKE_EXECUTABLE
>  variable.
>
>
> -- Looking for XOpenDisplay in
> /opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib
>


The error message reported is:
CMake Error at CMakeLists.txt:307 (MESSAGE):
 Qt 4.5.0 or greater not found.  Please check the QT_QMAKE_EXECUTABLE
 variable.

What does "/usr/bin/qmake --version" report?

Is it an older Qt? Did you change the system Qt recently?


HTH,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110413/ca82e3f6/attachment-0001.htm>


More information about the CMake mailing list