[CMake] Confusing problem with building VTK via external project

kent williams nkwmailinglists at gmail.com
Wed Apr 13 11:04:40 EDT 2011


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=
-DCMAKE_C_COMPILER:STRING=/usr/bin/gcc -DCMAKE_C_COMPILER_ARG1:STRING=
"-DCMAKE_CXX_FLAGS:STRING=  -Wall -Wextra -Wlong-long -fopenmp
-Wno-invalid-offsetof" "-DCMAKE_C_FLAGS:STRING=  -Wall -Wextra
-Wlong-long -fopenmp" -DBUILD_SHARED_LIBS:BOOL=ON
-DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_EXAMPLES:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF -DVTK_DEBUG_LEAKS:BOOL=ON
-DVTK_WRAP_TCL:BOOL=ON -DVTK_USE_RPATH:BOOL=ON
-DTCL_INCLUDE_PATH:PATH=/System/Library/Frameworks/Tcl.framework/Headers
-DTCL_LIBRARY:FILEPATH=/System/Library/Frameworks/tcl.framework
-DTCL_TCLSH:FILEPATH=/usr/bin/tclsh
-DTK_INCLUDE_PATH:PATH=/System/Library/Frameworks/Tk.framework/Headers
-DTK_LIBRARY:FILEPATH=/System/Library/Frameworks/tk.framework
-DVTK_WRAP_PYTHON:BOOL=OFF
-DPYTHON_INCLUDE_DIR:PATH=/scratch/kent/Testing/pandora.psychiatry.uiowa.edu/Fast/python-build/include/python2.6
-DPYTHON_LIBRARY:FILEPATH=/scratch/kent/Testing/pandora.psychiatry.uiowa.edu/Fast/python-build/lib/libpython2.6.dylib
-DVTK_USE_CARBON:BOOL=OFF -DVTK_USE_COCOA:BOOL=ON -DVTK_USE_X:BOOL=OFF
-DVTK_USE_RPATH:BOOL=ON -DDESIRED_QT_VERSION:STRING=4
-DVTK_USE_GUISUPPORT:BOOL=ON -DVTK_USE_QVTK_QTOPENGL:BOOL=ON
-DVTK_USE_RENDERING:BOOL=ON -DVTK_USE_QT:BOOL=ON
-DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/bin/qmake
-DVTK_USE_PARALLEL:BOOL=ON "-GUnix Makefiles"
/scratch/kent/Testing/pandora.psychiatry.uiowa.edu/Fast/VTK
Re-run cmake no build system arguments
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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
-- Looking for XOpenDisplay in
/opt/local/lib/libX11.dylib;/opt/local/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /opt/local/lib/libX11.dylib
-- Checking to see if CXX compiler accepts flag -no-cpp-precomp
-- Checking to see if CXX compiler accepts flag -no-cpp-precomp - Yes
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of void*
-- Check size of void* - done
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of float
-- Check size of float - done
-- Check size of double
-- Check size of double - done
-- Looking for include files CMAKE_HAVE_LIMITS_H
-- Looking for include files CMAKE_HAVE_LIMITS_H - found
-- Looking for include files CMAKE_HAVE_UNISTD_H
-- Looking for include files CMAKE_HAVE_UNISTD_H - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for include files CMAKE_HAVE_SYS_PRCTL_H
-- Looking for include files CMAKE_HAVE_SYS_PRCTL_H - not found.
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- Check for ANSI scope
-- Check for ANSI scope - found
-- Check for sstream
-- Check for sstream - found
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of uintptr_t
-- Check size of uintptr_t - done
-- Checking support for C++ type bool
-- Checking support for C++ type bool -- yes
-- Checking signedness of char
-- Checking signedness of char -- signed
-- Looking for getsockname in socket
-- Looking for getsockname in socket - not found
-- Checking for getsockname with socklen_t
-- Checking for getsockname with socklen_t -- yes
-- Looking for SO_REUSEADDR
-- Looking for SO_REUSEADDR - found
-- Checking support for full template specialization syntax
-- Checking support for full template specialization syntax -- yes
-- Checking support for C++ explicit template instantiation
-- Checking support for C++ explicit template instantiation -- yes
-- Looking for C++ include iosfwd
-- Looking for C++ include iosfwd - found
-- Looking for C++ include iostream.h
-- Looking for C++ include iostream.h - found
-- Looking for C++ include strstrea.h
-- Looking for C++ include strstrea.h - not found
-- Looking for C++ include strstream.h
-- Looking for C++ include strstream.h - not found
-- Checking ANSI streams end-of-file bug level
-- Checking ANSI streams end-of-file bug level - 0
-- Checking if ostream supports long long
-- Checking if ostream supports long long -- yes
-- Checking if istream supports long long
-- Checking if istream supports long long -- yes
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
-- Found Tclsh: /usr/bin/tclsh
-- Found TCL: /System/Library/Frameworks/tcl.framework
-- Found TCLTK: /System/Library/Frameworks/tcl.framework
-- Found TK: /System/Library/Frameworks/tk.framework
-- Checking whether header cstdio is available
-- Checking whether header cstdio is available - yes
-- Checking for Large File Support
-- Checking for Large File Support - yes
-- Checking whether STL classes are in std namespace
-- Checking whether STL classes are in std namespace - yes
-- Checking whether ANSI stream headers are available
-- Checking whether ANSI stream headers are available - yes
-- Checking whether ANSI streams are in std namespace
-- Checking whether ANSI streams are in std namespace - yes
-- Checking whether ANSI string stream is available
-- Checking whether ANSI string stream is available - yes
-- Checking whether header cstddef is available
-- Checking whether header cstddef is available - yes
-- Checking whether stl string has operator!= for char*
-- Checking whether stl string has operator!= for char* - yes
-- Checking whether stl has iterator_traits
-- Checking whether stl has iterator_traits - yes
-- Checking whether stl has standard template allocator
-- Checking whether stl has standard template allocator - yes
-- Checking for rebind member of stl allocator
-- Checking for rebind member of stl allocator - yes
-- Checking for non-standard argument to stl allocator<>::max_size
-- Checking for non-standard argument to stl allocator<>::max_size - no
-- Checking whether stl containers support allocator objects.
-- Checking whether stl containers support allocator objects. - yes
-- Checking whether ios has binary openmode
-- Checking whether ios has binary openmode - yes
-- Checking whether "<>" is needed for template friends
-- Checking whether "<>" is needed for template friends - yes
-- Checking for member template support
-- Checking for member template support - yes
-- Checking for standard template specialization syntax
-- Checking for standard template specialization syntax - yes
-- Checking whether argument dependent lookup is supported
-- Checking whether argument dependent lookup is supported - yes
-- Checking whether struct stat has st_mtim member
-- Checking whether struct stat has st_mtim member - no
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Checking whether char is signed
-- Checking whether char is signed - yes
-- Checking whether C compiler has ptrdiff_t in stddef.h
-- Checking whether C compiler has ptrdiff_t in stddef.h - yes
-- Checking whether C compiler has ssize_t in unistd.h
-- Checking whether C compiler has ssize_t in unistd.h - yes
-- Looking for include files HAVE_ASSERT_H
-- Looking for include files HAVE_ASSERT_H - found
-- Looking for include files HAVE_DLFCN_H
-- Looking for include files HAVE_DLFCN_H - found
-- Looking for include files HAVE_FCNTL_H
-- Looking for include files HAVE_FCNTL_H - found
-- Looking for include files HAVE_INTTYPES_H
-- Looking for include files HAVE_INTTYPES_H - found
-- Looking for include files HAVE_LIMITS_H
-- Looking for include files HAVE_LIMITS_H - found
-- Looking for include files HAVE_MALLOC_H
-- Looking for include files HAVE_MALLOC_H - not found.
-- Looking for include files HAVE_MEMORY_H
-- Looking for include files HAVE_MEMORY_H - found
-- Looking for include files HAVE_STDLIB_H
-- Looking for include files HAVE_STDLIB_H - found
-- Looking for include files HAVE_STRING_H
-- Looking for include files HAVE_STRING_H - found
-- Looking for include files HAVE_STRINGS_H
-- Looking for include files HAVE_STRINGS_H - found
-- Looking for include files HAVE_SYS_STAT_H
-- Looking for include files HAVE_SYS_STAT_H - found
-- Looking for include files HAVE_SYS_TIME_H
-- Looking for include files HAVE_SYS_TIME_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for include files HAVE_WINDOWS_H
-- Looking for include files HAVE_WINDOWS_H - not found.
-- Looking for include files HAVE_IEEEFP_H
-- Looking for include files HAVE_IEEEFP_H - not found.
-- Looking for floor
-- Looking for floor - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for isascii
-- Looking for isascii - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for pow
-- Looking for pow - found
-- Looking for sqrt
-- Looking for sqrt - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for areroul
-- Looking for areroul - not found
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Looking for dlopen in dl;
-- Looking for dlopen in dl; - found
-- Looking for shl_load in dld;dl
-- Looking for shl_load in dld;dl - not found
-- Looking for dlopen in dl;-lpthread;m
-- Looking for dlopen in dl;-lpthread;m - found
-- Looking for include files HAVE_STDIO_H
-- Looking for include files HAVE_STDIO_H - found
-- Looking for include files HAVE_NETDB_H
-- Looking for include files HAVE_NETDB_H - found
-- Looking for include files HAVE_SYS_SOCKET_H
-- Looking for include files HAVE_SYS_SOCKET_H - found
-- Looking for include files HAVE_NETINET_IN_H
-- Looking for include files HAVE_NETINET_IN_H - found
-- Looking for include files HAVE_SYS_SELECT_H
-- Looking for include files HAVE_SYS_SELECT_H - found
-- Looking for include files HAVE_TIME_H
-- Looking for include files HAVE_TIME_H - found
-- Looking for include files HAVE_SIGNAL_H
-- Looking for include files HAVE_SIGNAL_H - found
-- Looking for include files HAVE_ERRNO_H
-- Looking for include files HAVE_ERRNO_H - found
-- Looking for include files HAVE_ANSIDECL_H
-- Looking for include files HAVE_ANSIDECL_H - not found.
-- Looking for include files HAVE_ARPA_INET_H
-- Looking for include files HAVE_ARPA_INET_H - found
-- Looking for include files HAVE_ARPA_NAMESER_H
-- Looking for include files HAVE_ARPA_NAMESER_H - found
-- Looking for include files HAVE_CTYPE_H
-- Looking for include files HAVE_CTYPE_H - found
-- Looking for include files HAVE_DIRENT_H
-- Looking for include files HAVE_DIRENT_H - found
-- Looking for include files HAVE_DL_H
-- Looking for include files HAVE_DL_H - not found.
-- Looking for include files HAVE_FLOAT_H
-- Looking for include files HAVE_FLOAT_H - found
-- Looking for include files HAVE_FP_CLASS_H
-- Looking for include files HAVE_FP_CLASS_H - not found.
-- Looking for include files HAVE_MATH_H
-- Looking for include files HAVE_MATH_H - found
-- Looking for include files HAVE_NAN_H
-- Looking for include files HAVE_NAN_H - not found.
-- Looking for include files HAVE_NDIR_H
-- Looking for include files HAVE_NDIR_H - not found.
-- Looking for include files HAVE_PTHREAD_H
-- Looking for include files HAVE_PTHREAD_H - found
-- Looking for include files HAVE_RESOLV_H
-- Looking for include files HAVE_RESOLV_H - found
-- Looking for include files HAVE_STDARG_H
-- Looking for include files HAVE_STDARG_H - found
-- Looking for include files HAVE_SYS_MMAN_H
-- Looking for include files HAVE_SYS_MMAN_H - found
-- Looking for include files HAVE_SYS_TIMEB_H
-- Looking for include files HAVE_SYS_TIMEB_H - found
-- Looking for finite
-- Looking for finite - found
-- Looking for fpclass
-- Looking for fpclass - not found.
-- Looking for fp_class
-- Looking for fp_class - not found.
-- Looking for fprintf
-- Looking for fprintf - found
-- Looking for ftime
-- Looking for ftime - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for localtime
-- Looking for localtime - found
-- Looking for printf
-- Looking for printf - found
-- Looking for sscanf
-- Looking for sscanf - found
-- Looking for sprintf
-- Looking for sprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for signal
-- Looking for signal - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - not found.
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strftime
-- Looking for strftime - found
-- Looking for stat
-- Looking for stat - found
-- Looking for _stat
-- Looking for _stat - not found.
-- Looking for vfprintf
-- Looking for vfprintf - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for vsprintf
-- Looking for vsprintf - found
-- Checking for getaddrinfo.
-- Checking for getaddrinfo. - yes
-- Checking for socklen_t
-- Checking for socklen_t - yes
-- Checking for DIR in sys/dir.h
-- Checking for DIR in sys/dir.h - yes
-- Checking for DIR in sys/ndir.h
-- Checking for DIR in sys/ndir.h - no
-- Checking for va_copy
-- Checking for va_copy - yes
-- Checking for __va_copy
-- Checking for __va_copy - yes
-- Checking for ipv6 support.
-- Checking for ipv6 support. - yes
-- Looking for csin
-- Looking for csin - found
-- Looking for atanh
-- Looking for atanh - found
-- Looking for include files STDC_HEADERS
-- Looking for include files STDC_HEADERS - found
-- Looking for include files HAVE_ALLOCA_H
-- Looking for include files HAVE_ALLOCA_H - found
-- Looking for include files HAVE_STDBOOL_H
-- Looking for include files HAVE_STDBOOL_H - found
-- Looking for alloca
-- Looking for alloca - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of double
-- Check size of double - done
-- Check size of float
-- Check size of float - done
-- Check size of short
-- Check size of short - done
-- Check size of uchar
-- Check size of uchar - failed
-- Check size of _Bool
-- Check size of _Bool - done
-- Performing NetCDF Test HAVE_ST_BLKSIZE
-- Performing NetCDF Test HAVE_ST_BLKSIZE - Success
-- Performing NetCDF Test HAVE_FTRUNCATE
-- Performing NetCDF Test HAVE_FTRUNCATE - Success
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for isnan
-- Looking for isnan - not found.
-- Looking for _isnan
-- Looking for _isnan - not found.
-- Looking for isinf
-- Looking for isinf - not found.
-- Looking for _isinf
-- Looking for _isinf - not found
-- Looking for fenv.h
-- Looking for fenv.h - found
-- Looking for feenableexcept
-- Looking for feenableexcept - not found.
Qt QTGUI library not found.
Qt QTSQL library not found.
Qt QTCORE library not found.
Qt QTGUI library not found.
Qt QTSQL library not found.
Qt QTNETWORK library not found.
Qt QTCORE library not found.
CMake Error at GUISupport/Qt/CMakeLists.txt:123 (QT4_WRAP_CPP):
  Unknown CMake command "QT4_WRAP_CPP".


More information about the CMake mailing list