[Ctk-developers] ctk VS2010 nmake build error

Dean Inglis dean.inglis at camris.ca
Tue Feb 15 22:08:33 UTC 2011


Hi Jc,

Yes, this is before trying to build any of the CTK_APPs too.  I even tried building
with ctk pulling its own copy of vtk and the same thing occurs.  I turned off the vtk
widgets and tried building some of the apps, and the error also occurs.  Can anyone
else confirm this with VS 2010 command line tools using nmake?

Dean
  ----- Original Message ----- 
  From: Jean-Christophe Fillion-Robin 
  To: Dean Inglis 
  Cc: Ctk-developers at commontk.org 
  Sent: Tuesday, February 15, 2011 4:42 PM
  Subject: Re: [Ctk-developers] ctk VS2010 nmake build error


  Hi Dean, 

  If I understand properly, after you enable VisualizationVTKCore library, the error 'U1095' described earlier starts to occur ? 

  Thks
  Jc


  On Tue, Feb 15, 2011 at 2:51 PM, Dean Inglis <dean.inglis at camris.ca> wrote:

    Hi Jc,

    I tried configuring the ctk build in D:/ but nothing gets built:

    D:\>cmake d:/Developer/Sources/CTK -G"NMake Makefiles"
    -- Generated: D://DGraphInput-alldep.txt
    -- Generated: D://DGraphInput-alldep-withext.txt
    -- Generated: D://DGraphInput.txt
    -- Generated: D://Project.xml
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/

    D:\>nmake

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation.  All rights reserved.

    Built target Log4Qt
    Built target CTKData
    Built target DCMTK
    Built target CTK-Utilities
    Built target CTK-Configure
    Built target CTK-build

    so I tried building in D:/ctk incrementally turning on different modules.  I got
    as far as 
    //Enable Visualization/VTK/Core Library.
    CTK_LIB_Visualization/VTK/Core:BOOL=ON

    //Enable Visualization/VTK/Widgets Library.

    CTK_LIB_Visualization/VTK/Widgets:BOOL=ON
     

    and thats when the nmake error occurs.  Im linking to an external vtk build so
    that I dont have to download and wait for it to build within ctk. So i specify

    VTK_DIR:PATH=D:/Developer/VS10/x86/SHARED/Install/lib/vtk-5.7

    in my ctk root cmakecache.txt

    Dean
      ----- Original Message ----- 
      From: Jean-Christophe Fillion-Robin 
      To: Dean Inglis 
      Cc: Ctk-developers at commontk.org 
      Sent: Tuesday, February 15, 2011 11:24 AM
      Subject: Re: [Ctk-developers] ctk VS2010 nmake build error



      Could you try to build CTK from D:/ itself, seems the problem come from the path length limitation on windows.

      Thks
      Jc


      On Tue, Feb 15, 2011 at 11:21 AM, Dean Inglis <dean.inglis at camris.ca> wrote:

        Hi all,
        Ive been trying to keep up with all the development and compile ctk to see if it
        can be done with my toolchain.  Im using VS 2010 nmake, 32bit, on Win7, shared, debug 
        configured with cmake 2.8.3.  NMake is stopping with the following error: 
        Dean

        [ 24%] Completed 'DCMTK'
        [ 38%] Built target DCMTK
        [ 50%] Built target QtSOAP
        [ 63%] Built target VTK
        [ 63%] No configure step for 'CTK-Utilities'
        [ 63%] No build step for 'CTK-Utilities'
        [ 63%] No install step for 'CTK-Utilities'
        [ 63%] Completed 'CTK-Utilities'
        [ 75%] Built target CTK-Utilities
        [ 75%] Performing configure step for 'CTK-Configure'
        NMAKE : fatal error U1095: expanded command line 'echo      && "C:\Program File
         (x86)\CMake 2.8\bin\cmake.exe" -DBUILD_TESTING:BOOL=ON -DCTK_USE_KWSTYLE:BOOL=
        FF -DWITH_COVERAGE:BOOL=OFF -DDOCUMENTATION_TARGET_IN_ALL:BOOL=OFF -DCTEST_USE_
        AUNCHERS:BOOL= -DCTK_WRAP_PYTHONQT_FULL:BOOL= -DCTK_WRAP_PYTHONQT_LIGHT:BOOL= -
        CTK_LIB_Core:BOOL=ON -DCTK_LIB_PluginFramework:BOOL=ON -DCTK_LIB_Widgets:BOOL=O
         -DCTK_LIB_DICOM/Core:BOOL=ON -DCTK_LIB_DICOM/Widgets:BOOL=ON -DCTK_LIB_Scripti
        g/Python/Core:BOOL=OFF -DCTK_LIB_Scripting/Python/Widgets:BOOL=OFF -DCTK_LIB_Vi
        ualization/VTK/Core:BOOL=ON -DCTK_LIB_Visualization/VTK/Widgets:BOOL=ON -DCTK_P
        UGIN_org.commontk.eventbus:BOOL=OFF -DCTK_PLUGIN_org.commontk.configadmin:BOOL=
        N -DCTK_PLUGIN_org.commontk.dah.app:BOOL=ON -DCTK_PLUGIN_org.commontk.dah.core:
        OOL=ON -DCTK_PLUGIN_org.commontk.dah.exampleapp:BOOL=ON -DCTK_PLUGIN_org.common
        k.dah.examplehost:BOOL=ON -DCTK_PLUGIN_org.commontk.dah.host:BOOL=ON -DCTK_PLUG
        N_org.commontk.eventadmin:BOOL=ON -DCTK_PLUGIN_org.commontk.log:BOOL=ON -DCTK_P
        UGIN_org.commontk.log4qt:BOOL=ON -DCTK_PLUGIN_org.commontk.metatype:BOOL=ON -DC
        K_PLUGIN_org.commontk.plugingenerator.core:BOOL=ON -DCTK_PLUGIN_org.commontk.pl
        gingenerator.ui:BOOL=ON -DCTK_PLUGIN_org.commontk.qtmobility.service:BOOL=OFF -
        CTK_APP_ctkCLIPluginExplorer:BOOL=OFF -DCTK_APP_ctkDICOM:BOOL=OFF -DCTK_APP_ctk
        ICOMIndexer:BOOL=OFF -DCTK_APP_ctkDICOMDemoSCU:BOOL=OFF -DCTK_APP_ctkDICOMQuery
        BOOL=OFF -DCTK_APP_ctkDICOMRetrieve:BOOL=OFF -DCTK_APP_ctkDICOMQueryRetrieve:BO
        L=OFF -DCTK_APP_ctkExampleHost:BOOL=OFF -DCTK_APP_ctkExampleHostedApp:BOOL=OFF
        DCTK_APP_ctkPluginBrowser:BOOL=OFF -DCTK_APP_ctkPluginGenerator:BOOL=OFF -DCTK_
        PP_ctkDICOMObjectViewer:BOOL=OFF -DCTK_APP_ctkSimplePythonShell:BOOL=OFF -DCTK_
        IB_Scripting/Python/Core_PYTHONQT_USE_VTK:BOOL=OFF -DCTK_LIB_Scripting/Python/C
        re_PYTHONQT_WRAP_QTCORE:BOOL=OFF -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_
        TGUI:BOOL=OFF -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTNETWORK:BOOL=OFF
        DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTOPENGL:BOOL=OFF -DCTK_LIB_Script
        ng/Python/Core_PYTHONQT_WRAP_QTSQL:BOOL=OFF -DCTK_LIB_Scripting/Python/Core_PYT
        ONQT_WRAP_QTSVG:BOOL=OFF -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTUITOOL
        :BOOL=OFF -DCTK_LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTWEBKIT:BOOL=OFF -DCTK
        LIB_Scripting/Python/Core_PYTHONQT_WRAP_QTXML:BOOL=OFF -DCTK_LIB_Scripting/Pyth
        n/Core_PYTHONQT_WRAP_QTXMLPATTERNS:BOOL=OFF -DCTK_SUPERBUILD:BOOL=OFF -DDOCUMEN
        ATION_ARCHIVES_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk "-DDOXYGE
        _EXECUTABLE:FILEPATH=C:/Program Files (x86)/doxygen/bin/doxygen.exe" -DCTK_SUPE
        BUILD_BINARY_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk -DCTK_CMAKE_ARCHIVE_OUTP
        T_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/bin -DCTK_CMAKE_LIB
        ARY_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/bin -DCTK_
        MAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=D:/Developer/VS10/x86/SHARED/ctk/CTK-build/b
        n -DCTK_INSTALL_BIN_DIR:STRING=bin -DCTK_INSTALL_LIB_DIR:STRING=lib/ctk-0.1 -DC
        K_INSTALL_INCLUDE_DIR:STRING=include/ctk-0.1 -DCTK_INSTALL_DOC_DIR:STRING=doc -
        CMAKE_INSTALL_PREFIX:PATH=D:/Developer/VS10/x86/SHARED/ctk/CMakeExternals/Insta
        l -DCMAKE_BUILD_TYPE:STRING=Debug "-DCTK_CXX_FLAGS:STRING= /DWIN32 /D_WINDOWS /
        3 /Zm1000 /EHsc /GR    /wd4290" "-DCTK_C_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /Z
        1000  " -DCTK_EXTERNAL_LIBRARY_DIRS:STRING= -DQT_QMAKE_EXECUTABLE:FILEPATH=D:/D
        veloper/VS10/x86/SHARED/qt-4.7.1/bin/qmake.exe -DCTKData_DIR:PATH=D:/Developer/
        S10/x86/SHARED/ctk/CMakeExternals/Source/CTKData -DZMQ_DIR:PATH= -DOpenIGTLink_
        IR:PATH= -DCTK_KWSTYLE_EXECUTABLE:FILEPATH= -DDCMTK_DIR:PATH=D:/Developer/VS10/
        86/SHARED/ctk/CMakeExternals/Install -DVTK_DIR:PATH=D:/Developer/VS10/x86/SHARE
        /Install/lib/vtk-5.7 -DPYTHON_EXECUTABLE:FILEPATH= -DPYTHON_INCLUDE_DIR:PATH= -
        PYTHON_LIBRARY:FILEPATH= -DPYTHONQT_INSTALL_DIR:PATH= -DPYTHONQTGENERATOR_EXECU
        ABLE:FILEPATH= -DLog4Qt_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk/CMakeExternal
        /Install -DQtSOAP_DIR:PATH=D:/Developer/VS10/x86/SHARED/ctk/Utilities/QtSOAP/ -
        QtMobility_DIR:PATH= -DLog4Qt_LIBRARIES_INCLUDE_DIRS:STRING=Log4Qt_INCLUDE_DIR
        DLog4Qt_LIBRARIES_LIBRARY_DIRS:STRING= -DLog4Qt_LIBRARIES_FIND_PACKAGE_CMD:STRI
        G=Log4Qt -DVTK_LIBRARIES_INCLUDE_DIRS:STRING=VTK_INCLUDE_DIRS -DVTK_LIBRARIES_L
        BRARY_DIRS:STRING=VTK_LIBRARY_DIRS -DVTK_LIBRARIES_FIND_PACKAGE_CMD:STRING=VTK
        DDCMTK_LIBRARIES_INCLUDE_DIRS:STRING=DCMTK_INCLUDE_DIR -DDCMTK_LIBRARIES_LIBRAR
        _DIRS:STRING= -DDCMTK_LIBRARIES_FIND_PACKAGE_CMD:STRING=DCMTK -DQTSOAP_LIBRARY_
        NCLUDE_DIRS:STRING=QTSOAP_INCLUDE_DIR -DQTSOAP_LIBRARY_LIBRARY_DIRS:STRING= -DQ
        SOAP_LIBRARY_FIND_PACKAGE_CMD:STRING=QtSOAP "-GNMake Makefiles" d:/Developer/So
        rces/CTK' too long
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.
        \VC\BIN\nmake.exe"' : return code '0x2'
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.
        \VC\BIN\nmake.exe"' : return code '0x2'
        Stop.

        _______________________________________________
        Ctk-developers mailing list
        Ctk-developers at commontk.org
        http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers





      -- 
      Direct: 1-518-836-2174
      Ext: 304




  -- 
  Direct: 1-518-836-2174
  Ext: 304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20110215/a57453db/attachment.htm>


More information about the Ctk-developers mailing list