Menu

octaviz trouble in the cmake phase

Help
2008-02-20
2013-04-22
  • Jorge D'Elia

    Jorge D'Elia - 2008-02-20

    Dear developers,

    I've got Fedora Core 5 and I'm trying to compile octaviz 0.4.6 but I have an "infinity loop" when I use cmake

    ./usr/local/cmake/2.4.8/bin/cmake -i /usr/local/paquetes/octaviz-install/0.4.6

    The /usr/local/vtk/5.0.4 and /usr/local/octave/3.0.0 were installed without any problems.

    Here there is the cmake phase:

    .....................................................................
    Would you like to see advanced options? [No]:
    Please wait while cmake processes CMakeLists.txt files....

    CMake Error: Error in cmake code at
    /usr/local/paquetes/octaviz-install/0.4.6/Common/CMakeLists.txt:32:
    INSTALL_TARGETS called with incorrect number of arguments
    Current CMake stack:
    [1] /usr/local/paquetes/octaviz-install/0.4.6/Common/CMakeLists.txt

    Variable Name: CMAKE_BACKWARDS_COMPATIBILITY
    Description: For backwards compatibility, what version of CMake
    commands and syntax should this version of CMake allow.
    Current Value: 2.4
    New Value (Enter to keep current value):

    Variable Name: CMAKE_BUILD_TYPE
    Description: Choose the type of build, options are:
    None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release
    RelWithDebInfo MinSizeRel.
    Current Value: None
    New Value (Enter to keep current value)

    Variable Name: CMAKE_INSTALL_PREFIX
    Description: Specifies the directory where .oct files will be installed.
    Current Value: sh: /usr/local/octave/3.0.0/bin: is a directory
    New Value (Enter to keep current value): /usr/local/octaviz/0.4.6

    Variable Name: CXX_COMPILER_PCH
    Description: CMake overides compiler environment varibles. Put the compiler name here.
    Current Value: g++
    New Value (Enter to keep current value):

    Variable Name: EXECUTABLE_OUTPUT_PATH
    Description: Single output directory for building all executables.
    Current Value: /usr/local/octaviz/0.4.6
    New Value (Enter to keep current value):

    Variable Name: LIBRARY_OUTPUT_PATH
    Description: Single output directory for building all libraries.
    Current Value: /usr/local/octaviz/0.4.6
    New Value (Enter to keep current value):

    Variable Name: OCTAVE_CONFIG
    Description: Path to a program.
    Current Value: /usr/local/octave/3.0.0/bin
    New Value (Enter to keep current value):

    Variable Name: USE_PREC_HEADERS
    Description: Use precompiled headers
    Current Value: OFF
    New Value (Enter to keep current value):

    Variable Name: VTK_DIR
    Description: The directory containing VTKConfig.cmake.  This is
    either the root of the build tree, or PREFIX/lib/vtk for an
    installation.  For VTK 4.0, this is the location of UseVTK.cmake.
    This is either the root of the build tree or PREFIX/include/vtk
    for an installation.
    Current Value: /usr/local/vtk/5.0.4
    New Value (Enter to keep current value):

    Please wait while cmake processes CMakeLists.txt files....

    CMake Error: Error in cmake code at
    /usr/local/paquetes/octaviz-install/0.4.6/Common/CMakeLists.txt:32:
    INSTALL_TARGETS called with incorrect number of arguments
    Current CMake stack:
    [1]     /usr/local/paquetes/octaviz-install/0.4.6/Common/CMakeLists.txt

    Variable Name: CMAKE_INSTALL_PREFIX
    Description: Specifies the directory where .oct files will be installed.
    Current Value: sh: /usr/local/octave/3.0.0/bin: is a directory
    New Value (Enter to keep current value):
    ........................................................................

    and in this point starts an "infinity loop" (beat about) ....

    Please, what it is wrong in my cmake configuration ?

    Thanks in advance,

    Jorge.

    .....................................................................
    # This is the CMakeCache file.
    # For build in directory: /usr/local/paquetes/octaviz-install/0.4.6
    # It was generated by CMake: /usr/local/cmake/2.4.8/bin/cmake
    # 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 variable 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
    ########################

    //Path to a program.
    CMAKE_AR:FILEPATH=/usr/bin/ar

    //For backwards compatibility, what version of CMake commands and
    // syntax should this version of CMake allow.
    CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4

    //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
    // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
    //
    CMAKE_BUILD_TYPE:STRING=None

    //Enable/Disable color output during build.
    CMAKE_COLOR_MAKEFILE:BOOL=ON

    //CXX compiler.
    CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++

    //Flags used by the compiler during all build types.
    CMAKE_CXX_FLAGS:STRING=' '

    //Flags used by the compiler during debug builds.
    CMAKE_CXX_FLAGS_DEBUG:STRING=-g

    //Flags used by the compiler during release minsize builds.
    CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

    //Flags used by the compiler during release builds (/MD /Ob1 /Oi
    // /Ot /Oy /Gs will produce slightly less optimized but smaller
    // files).
    CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

    //Flags used by the compiler during Release with Debug Info builds.
    //
    CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

    //C compiler.
    CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc

    //Flags for C compiler.
    CMAKE_C_FLAGS:STRING=' '

    //Flags used by the compiler during debug builds.
    CMAKE_C_FLAGS_DEBUG:STRING=-g

    //Flags used by the compiler during release minsize builds.
    CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

    //Flags used by the compiler during release builds (/MD /Ob1 /Oi
    // /Ot /Oy /Gs will produce slightly less optimized but smaller
    // files).
    CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

    //Flags used by the compiler during Release with Debug Info builds.
    //
    CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g

    //Flags used by the linker.
    CMAKE_EXE_LINKER_FLAGS:STRING=

    //Flags used by the linker during debug builds.
    CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

    //Flags used by the linker during release minsize builds.
    CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

    //Flags used by the linker during release builds.
    CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

    //Flags used by the linker during Release with Debug Info builds.
    //
    CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

    //Specifies the directory where .oct files will be installed.
    CMAKE_INSTALL_PREFIX:PATH=sh: /usr/local/octave/3.0.0/bin: is a directory

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

    //Flags used by the linker during the creation of modules.
    CMAKE_MODULE_LINKER_FLAGS:STRING=

    //Flags used by the linker during debug builds.
    CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

    //Flags used by the linker during release minsize builds.
    CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

    //Flags used by the linker during release builds.
    CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

    //Flags used by the linker during Release with Debug Info builds.
    //
    CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

    //Path to a program.
    CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib

    //Flags used by the linker during the creation of dll's.
    CMAKE_SHARED_LINKER_FLAGS:STRING=

    //Flags used by the linker during debug builds.
    CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

    //Flags used by the linker during release minsize builds.
    CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

    //Flags used by the linker during release builds.
    CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

    //Flags used by the linker during Release with Debug Info builds.
    //
    CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

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

    //If true, cmake will use relative paths in makefiles and projects.
    //
    CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

    //If this value is on, makefiles will be generated without the
    // .SILENT directive, and all commands will be echoed to the console
    // during the make.  This is useful for debugging only. With Visual
    // Studio IDE projects all commands are done without /nologo.
    CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

    //CMake overides compiler environment varibles. Put the compiler
    // name here.
    CXX_COMPILER_PCH:STRING=g++

    //Single output directory for building all executables.
    EXECUTABLE_OUTPUT_PATH:PATH=/usr/local/octaviz/0.4.6

    //Single output directory for building all libraries.
    LIBRARY_OUTPUT_PATH:PATH=/usr/local/octaviz/0.4.6

    //Path to a program.
    OCTAVE_CONFIG:FILEPATH=/usr/local/octave/3.0.0/bin

    //Value Computed by CMake
    OCTAVIZ_BINARY_DIR:STATIC=/usr/local/paquetes/octaviz-install/0.4.6

    //Value Computed by CMake
    OCTAVIZ_SOURCE_DIR:STATIC=/usr/local/paquetes/octaviz-install/0.4.6

    //Location of Tcl library imported from VTK.  This may mean your
    // project is depending on VTK to get this setting.  Consider using
    // FindTCL.cmake.
    TCL_LIBRARY:FILEPATH=

    //Location of Tk library imported from VTK.  This may mean your
    // project is depending on VTK to get this setting.  Consider using
    // FindTCL.cmake.
    TK_LIBRARY:FILEPATH=

    //Use precompiled headers
    USE_PREC_HEADERS:BOOL=OFF

    //The directory containing VTKConfig.cmake.  This is either the
    // root of the build tree, or PREFIX/lib/vtk for an installation.
    //  For VTK 4.0, this is the location of UseVTK.cmake.  This is
    // either the root of the build tree or PREFIX/include/vtk for
    // an installation.
    VTK_DIR:PATH=/usr/local/vtk/5.0.4

    //Path to a file.
    X11_X11_INCLUDE_PATH:PATH=/usr/include

    //Path to a library.
    X11_X11_LIB:FILEPATH=/usr/lib/libX11.so

    //Path to a library.
    X11_Xext_LIB:FILEPATH=/usr/lib/libXext.so

    //Path to a file.
    X11_Xlib_INCLUDE_PATH:PATH=/usr/include

    //Path to a file.
    X11_Xutil_INCLUDE_PATH:PATH=/usr/include

    //Dependencies for the target
    octaviz_LIB_DEPENDS:STATIC=-lSM;-lICE;/usr/lib/libX11.so;/usr/lib/libXext.so;Xt;

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

    //Advanced flag for variable: CMAKE_AR
    CMAKE_AR-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_BUILD_TOOL
    CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
    //What is the target build tool cmake is generating for.
    CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/gmake
    //This is the directory where this CMakeCahe.txt was created
    CMAKE_CACHEFILE_DIR:INTERNAL=/usr/local/paquetes/octaviz-install/0.4.6
    //Major version of cmake used to create the current loaded cache
    //
    CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
    //Minor version of cmake used to create the current loaded cache
    //
    CMAKE_CACHE_MINOR_VERSION:INTERNAL=4
    //Major version of cmake used to create the current loaded cache
    //
    CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 8
    //Advanced flag for variable: CMAKE_COLOR_MAKEFILE
    CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
    //Path to CMake executable.
    CMAKE_COMMAND:INTERNAL=/usr/local/cmake/2.4.8/bin/cmake
    //Path to ctest program executable.
    CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/cmake/2.4.8/bin/ctest
    //Advanced flag for variable: CMAKE_CXX_COMPILER
    CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
    CMAKE_CXX_COMPILER_WORKS:INTERNAL=1
    //Advanced flag for variable: CMAKE_CXX_FLAGS
    CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_CXX_FLAGS_DEBUG
    CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_CXX_FLAGS_MINSIZEREL
    CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_CXX_FLAGS_RELEASE
    CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
    CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_COMPILER
    CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
    CMAKE_C_COMPILER_WORKS:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_FLAGS
    CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
    CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
    CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
    CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
    CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Path to cache edit program executable.
    CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/cmake/2.4.8/bin/ccmake
    //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
    CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
    CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
    //
    CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
    CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
    //
    CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Name of generator.
    CMAKE_GENERATOR:INTERNAL=Unix Makefiles
    //Have function connect
    CMAKE_HAVE_CONNECT:INTERNAL=1
    //Have function gethostbyname
    CMAKE_HAVE_GETHOSTBYNAME:INTERNAL=1
    //Have function remove
    CMAKE_HAVE_REMOVE:INTERNAL=1
    //Have function shmat
    CMAKE_HAVE_SHMAT:INTERNAL=1
    //Start directory with the top level CMakeLists.txt file for this
    // project
    CMAKE_HOME_DIRECTORY:INTERNAL=/usr/local/paquetes/octaviz-install/0.4.6
    //Install .so files without execute permission.
    CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0
    //Have library ICE
    CMAKE_LIB_ICE_HAS_ICECONNECTIONNUMBER:INTERNAL=1
    //Advanced flag for variable: CMAKE_MAKE_PROGRAM
    CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS
    CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
    CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
    //
    CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
    //
    CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
    //
    CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //number of local generators
    CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=13
    //Advanced flag for variable: CMAKE_RANLIB
    CMAKE_RANLIB-ADVANCED:INTERNAL=1
    //Path to CMake installation.
    CMAKE_ROOT:INTERNAL=/usr/local/cmake/2.4.8/share/cmake-2.4
    //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
    CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
    //
    CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
    //
    CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
    //
    CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
    //Result of TRY_RUN
    CMAKE_SIZEOF_VOID_P:INTERNAL=4
    //Advanced flag for variable: CMAKE_SKIP_RPATH
    CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
    //uname command
    CMAKE_UNAME:INTERNAL=/bin/uname
    //Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS
    CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
    //Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
    CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
    //Result of TRY_COMPILE
    HAVE_CMAKE_SIZEOF_VOID_P:INTERNAL=TRUE
    OCT_PREFIX:INTERNAL=sh: /usr/local/octave/3.0.0/bin: is a directory
    //Advanced flag for variable: TCL_LIBRARY
    TCL_LIBRARY-ADVANCED:INTERNAL=1
    //Advanced flag for variable: TK_LIBRARY
    TK_LIBRARY-ADVANCED:INTERNAL=1
    //Have library /usr/lib/libX11.so;/usr/lib/libXext.so
    X11_LIB_X11_SOLO:INTERNAL=1
    //Advanced flag for variable: X11_X11_INCLUDE_PATH
    X11_X11_INCLUDE_PATH-ADVANCED:INTERNAL=1
    //Advanced flag for variable: X11_X11_LIB
    X11_X11_LIB-ADVANCED:INTERNAL=1
    //Advanced flag for variable: X11_Xext_LIB
    X11_Xext_LIB-ADVANCED:INTERNAL=1
    //Advanced flag for variable: X11_Xlib_INCLUDE_PATH
    X11_Xlib_INCLUDE_PATH-ADVANCED:INTERNAL=1
    //Advanced flag for variable: X11_Xutil_INCLUDE_PATH
    X11_Xutil_INCLUDE_PATH-ADVANCED:INTERNAL=1
    .....................................................................

     
    • Jonathan Stickel

      Not too sure about this, but you can try running cmake a little differently.  For example, have you tried running ccmake from within the octaviz source root directory?  For example:

      cd path/to/octaviz/source
      ccmake .

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.