[Insight-users] Problem building QtImageViewer

Jarek Sacha galicjan@yahoo.com
Fri, 6 Dec 2002 06:51:05 -0800 (PST)


--0-670870943-1039186265=:74126
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I am using cmake 1.4 patch 6. To be sure I did a full search of my system
for ccmake, starting at '/'. There is only one installed

I go to an empty directory and type:
$ ccmake ~/src/Insight/Auxiliary/QtImageViewer/

I modify following variables:
CMAKE_CXX_FLAGS=-g -O2 -ftemplate-depth-50
CMAKE_C_FLAGS=-g -O2 -ftemplate-depth-50
ITK_BINARY_PATH=/home/sacha/src/Insight-build
QT_INCLUDE_PATH=/usr/lib/qt3-gcc3.2/include
QT_MOC_EXE=/usr/lib/qt3-gcc3.2/bin/moc
QT_QT_LIBRARY=/usr/lib/qt3-gcc3.2/lib/libqt.so
QT_UIC_EXE=/usr/lib/qt3-gcc3.2/bin/uic

BTW: A part of Qt setup is creation of QTDIR environment variable, cmake
should be able to setup Qt using this variable. Is it a bug?

I did get a warning from cmake that ITK was using '-g -O2
-ftemplate-depth-50', so I modified the options accordingly, see above.

After ccmake is done I type 'make'. I make gives me the warnings about
duplicate targets I mentioned in earlier email, compiles a couple of
files, and then exits with the error while linking QtSlicer (see previous
email). 

Jarek

--- Luis Ibanez <luis.ibanez@kitware.com> wrote:
> 
> Hi Jarek,
> 
> 
> The build of QtImageViewer is working ok for me on a
> RedHat 7.2, gcc 3.0.2 and Qt 3.1.
> 
> Althought probably the relevant fact is how you are
> configuring with CMake.
> 
> I only got one rule on my Makefile for
> building:  QtSlicerGUI.o
> 
> The rule looks like:
> 
> QtSlicerGUI.o: /kitware/bin/QtImageViewer/QtSlicerGUI.cxx
> 	echo 

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--0-670870943-1039186265=:74126
Content-Type: text/plain; name="CMakeCache.txt"
Content-Description: CMakeCache.txt
Content-Disposition: inline; filename="CMakeCache.txt"

# This is the CMakeCache file.
# For build in directory: /home/sacha/src/tmp/QtImageViewer-build
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a varible in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Archive program used to make archive libraries.
CMAKE_AR:FILEPATH=/usr/bin/ar

//Arguments for CMAKE_AR program to create an archive library.
CMAKE_AR_ARGS:STRING=cr

//Archive program used to make archive libraries of c++ object
// files.
CMAKE_CXX_AR:FILEPATH=/usr/bin/ar

//Arguments for CMAKE_CXX_AR program to create an archive library.
//
CMAKE_CXX_AR_ARGS:STRING=cr

//Name of C++ compiler used.
CMAKE_CXX_COMPILER:FILEPATH=c++

//Flags used by CXX compiler.
CMAKE_CXX_FLAGS:STRING=-g -O2 -ftemplate-depth-50

//program used to link c++ shared libraries
CMAKE_CXX_LINK_SHARED:STRING=c++

//Flag used by CXX to build a shared library.
CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-shared

//Flags used to link a shared library.
CMAKE_CXX_MODULE_LINK_FLAGS:STRING=-rdynamic

//Flag used by CXX to build a shared library.
CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-shared

//Flag used for building shared library objects.
CMAKE_CXX_SHLIB_CFLAGS:STRING=-fPIC

//Flags used to link a shared library.
CMAKE_CXX_SHLIB_LINK_FLAGS:STRING=-rdynamic

//Flag used to specify run-time search paths.
CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING=-Wl,-rpath,

//If null, each runtime path is a separate option. Otherwise, they
// are all joined, separated by this.
CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=:

//Name of C compiler used.
CMAKE_C_COMPILER:FILEPATH=gcc

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=-g -O2 -ftemplate-depth-50

//program used to link c shared libraries
CMAKE_C_LINK_SHARED:STRING=gcc

//Dynamic link library to link in.
CMAKE_DL_LIBS:STRING=-ldl

//Use HP pthreads.
CMAKE_HP_PTHREADS:BOOL=OFF

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local

//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake

//Flag used by CXX to build a shared library.
CMAKE_MODULE_BUILD_FLAGS:STRING=-shared

//Flags used to link a shared library.
CMAKE_MODULE_LINK_FLAGS:STRING=-rdynamic

//Module library suffix.
CMAKE_MODULE_SUFFIX:STRING=.so

//Library randomizer program used on archive libraries.
CMAKE_RANLIB:FILEPATH=ranlib

//Flag used by CXX to build a shared library.
CMAKE_SHLIB_BUILD_FLAGS:STRING=-shared

//Flag used for building shared library objects.
CMAKE_SHLIB_CFLAGS:STRING=-fPIC

//Libraries used by LD for shared libraries.
CMAKE_SHLIB_LD_LIBS:STRING=

//Flags used to link a shared library.
CMAKE_SHLIB_LINK_FLAGS:STRING=-rdynamic

//Flag used to specify run-time search paths.
CMAKE_SHLIB_RUNTIME_FLAG:STRING=-Wl,-rpath,

//If null, each runtime path is a separate option. Otherwise, they
// are all joined, separated by this.
CMAKE_SHLIB_RUNTIME_SEP:STRING=:

//Shared library suffix.
CMAKE_SHLIB_SUFFIX:STRING=.so

//If set, runtime paths are not added when using shared libraries.
//
CMAKE_SKIP_RPATH:BOOL=OFF

//CXX template flags used by compiler.
CMAKE_TEMPLATE_FLAGS:STRING=

//Thread library used.
CMAKE_THREAD_LIBS:STRING=-lpthread

//Use the pthreads library.
CMAKE_USE_PTHREADS:BOOL=ON

//Use sproc libs.
CMAKE_USE_SPROC:BOOL=OFF

//The system uses big endian byte ordering.
CMAKE_WORDS_BIGENDIAN:BOOL=OFF

//X11 extra flags.
CMAKE_X_CFLAGS:STRING= -I/usr/X11R6/include

//Libraries and options used in X11 programs.
CMAKE_X_LIBS:STRING= -lSM -lICE  -L/usr/X11R6/lib -lX11 -lXext

//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=

//What is the path where the file GL/glu.h can be found
GLU_INCLUDE_PATH:PATH=/usr/include

//Where can the GLU library be found
GLU_LIBRARY:FILEPATH=/usr/lib/libGLU.so

//What is the path where the file UseITK.cmake can be found
ITK_BINARY_PATH:PATH=/home/sacha/src/Insight-build

//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=

//What is the path where the file GL/gl.h can be found
OPENGL_INCLUDE_PATH:PATH=/usr/include

//Where can the GL library be found
OPENGL_LIBRARY:FILEPATH=/usr/lib/libGL.so

//What is the path where the file qt.h can be found
QT_INCLUDE_PATH:PATH=/usr/lib/qt3-gcc3.2/include

//Where can the moc file be found
QT_MOC_EXE:FILEPATH=/usr/lib/qt3-gcc3.2/bin/moc

//Where can the qt library be found
QT_QT_LIBRARY:FILEPATH=/usr/lib/qt3-gcc3.2/lib/libqt.so

//Where can the uic file be found
QT_UIC_EXE:FILEPATH=/usr/lib/qt3-gcc3.2/bin/uic

//Can we honour the QT_WRAP_CPP command
QT_WRAP_CPP:BOOL=ON

//Can we honour the QT_WRAP_UI command
QT_WRAP_UI:BOOL=ON

//Value Computed by CMake
QtSlicer_BINARY_DIR:STATIC=/home/sacha/src/tmp/QtImageViewer-build

//Value Computed by CMake
QtSlicer_SOURCE_DIR:STATIC=/home/sacha/src/Insight/Auxiliary/QtImageViewer


########################
# INTERNAL cache entries
########################

//What flags are required by the c++ compiler to make it ansi.
CMAKE_ANSI_CFLAGS:INTERNAL=
//Advanced flag for variable: CMAKE_ANSI_CFLAGS
CMAKE_ANSI_CFLAGS-ADVANCED:INTERNAL=1
//What flags are required by the c++ compiler to make it ansi.
CMAKE_ANSI_CXXFLAGS:INTERNAL=
//Advanced flag for variable: CMAKE_ANSI_CXXFLAGS
CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_AR_ARGS
CMAKE_AR_ARGS-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=make
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/sacha/src/tmp/QtImageViewer-build
//Major version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1
//Minor version of cmake used to create the current loaded cache
//
CMAKE_CACHE_MINOR_VERSION:INTERNAL=4
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/home/sacha/local/bin/cmake
//Is the compile GNU C++.
CMAKE_COMPILER_IS_GNUCXX:INTERNAL=1
//Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX
CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_AR
CMAKE_CXX_AR-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_AR_ARGS
CMAKE_CXX_AR_ARGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_LINK_SHARED
CMAKE_CXX_LINK_SHARED-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_MODULE_BUILD_FLAGS
CMAKE_CXX_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_MODULE_LINK_FLAGS
CMAKE_CXX_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_SHLIB_BUILD_FLAGS
CMAKE_CXX_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_SHLIB_CFLAGS
CMAKE_CXX_SHLIB_CFLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_SHLIB_LINK_FLAGS
CMAKE_CXX_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_FLAG
CMAKE_CXX_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_SEP
CMAKE_CXX_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_LINK_SHARED
CMAKE_C_LINK_SHARED-ADVANCED:INTERNAL=1
//shared link flags for cc
CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL=-rdynamic
//Advanced flag for variable: CMAKE_C_SHLIB_LINK_FLAGS
CMAKE_C_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1
//runtime directory flag for cc
CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL=-Wl,-rpath,
//Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG
CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_DL_LIBS
CMAKE_DL_LIBS-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/home/sacha/local/bin/ccmake
//Advanced flag for variable: CMAKE_EXECUTABLE_SUFFIX
CMAKE_EXECUTABLE_SUFFIX-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Is X11 around.
CMAKE_HAS_X:INTERNAL=1
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/sacha/src/Insight/Auxiliary/QtImageViewer
//Advanced flag for variable: CMAKE_HP_PTHREADS
CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS
CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS
CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_SUFFIX
CMAKE_MODULE_SUFFIX-ADVANCED:INTERNAL=1
//Does the compiler support ansi for scoping.
CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL=
//Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE
CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1
//Does the compiler support headers like iostream.
CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL=
//Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS
CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1
//Does the compiler support the ansi stringstream class.
CMAKE_NO_ANSI_STRING_STREAM:INTERNAL=
//Does the compiler not support explicit template instantiation.
//
CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL=
//Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION
//
CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1
//Does the compiler support std::.
CMAKE_NO_STD_NAMESPACE:INTERNAL=
//Advanced flag for variable: CMAKE_NO_STD_NAMESPACE
CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_OBJECT_FILE_SUFFIX
CMAKE_OBJECT_FILE_SUFFIX-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/home/sacha/local/share/CMake
//Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS
CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_CFLAGS
CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_LD_LIBS
CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS
CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG
CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP
CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHLIB_SUFFIX
CMAKE_SHLIB_SUFFIX-ADVANCED:INTERNAL=1
//Size of char data type
CMAKE_SIZEOF_CHAR:INTERNAL=1
//Size of double data type
CMAKE_SIZEOF_DOUBLE:INTERNAL=8
//Size of float data type
CMAKE_SIZEOF_FLOAT:INTERNAL=4
//Size of int data type
CMAKE_SIZEOF_INT:INTERNAL=4
//Size of long data type
CMAKE_SIZEOF_LONG:INTERNAL=4
//Size of short data type
CMAKE_SIZEOF_SHORT:INTERNAL=2
//Size of void* data type
CMAKE_SIZEOF_VOID_P:INTERNAL=4
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_STATICLIB_SUFFIX
CMAKE_STATICLIB_SUFFIX-ADVANCED:INTERNAL=1
//What system is this.  Result of uname.
CMAKE_SYSTEM:INTERNAL=Linux-2.4.18-18.8.0
//Advanced flag for variable: CMAKE_TEMPLATE_FLAGS
CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_THREAD_LIBS
CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_USE_PTHREADS
CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_USE_SPROC
CMAKE_USE_SPROC-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_USE_WIN32_THREADS
CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_WORDS_BIGENDIAN
CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_X_CFLAGS
CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_X_LIBS
CMAKE_X_LIBS-ADVANCED:INTERNAL=1
//Advanced flag for variable: GLU_INCLUDE_PATH
GLU_INCLUDE_PATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: GLU_LIBRARY
GLU_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_INCLUDE_PATH
OPENGL_INCLUDE_PATH-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_LIBRARY
OPENGL_LIBRARY-ADVANCED:INTERNAL=1
//Advanced flag for variable: OPENGL_LIBRARY_PATH
OPENGL_LIBRARY_PATH-ADVANCED:INTERNAL=1
//Path to an executable
QtSlicer_CMAKE_PATH:INTERNAL=/home/sacha/src/tmp/QtImageViewer-build


--0-670870943-1039186265=:74126--