[CMake] Confusing problem with building VTK via external project

kent williams nkwmailinglists at gmail.com
Wed Apr 13 11:30:44 EDT 2011


Strange as it may seem, there must have been something fracked up in
my Emacs environment because this craziness went away when I restarted
Emacs.  Though the particulars of how this began are mysterious.

On Wed, Apr 13, 2011 at 10:26 AM, David Cole <david.cole at kitware.com> wrote:
> 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
>> && "/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++
>> -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
>
>


More information about the CMake mailing list