[Insight-users] Re: volview plugin DLL post-build error (clarification)

mrcheung at mdanderson.org mrcheung at mdanderson.org
Thu Dec 6 12:26:34 EST 2007


Karthik,

The post build error message still there in Release mode.
But, after I built it with Release. DLL worked in the other computer as
well.

Thanks a lot !
Rex


Build Log




    ------- Build started: Project: vvITKSigmoid, Configuration:
Release|Win32 -------







Command Lines




    Creating temporary file "c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\BAT000001.bat"
with contents
    [
    @echo off
    "C:\Program Files\CMake20\bin\cmake.exe" C:
    \Insight2\InsightApplications\VolviewPlugIns\CMakeLists.txt -HC:
\Insight2\InsightApplications
    -BC:\Insight2\InsightApplications-VSNET


    if errorlevel 1 goto VCReportError
    goto VCEnd
    :VCReportError
    echo Project : error PRJ0019: A tool returned an error code from
"Building Custom Rule
    vvITKSigmoid.vcproj.cmake"
    exit 1
    :VCEnd
    ]
    Creating command line ""c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\BAT000001.bat""
    Creating temporary file "c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\RSP000002.rsp"
with contents
    [
    /O2 /I "C:\Insight2\Insight-VC++\Utilities\vxl\core" /I "C:
    \Insight2\Insight-VC++\Utilities\vxl\vcl" /I "C:
\Insight2\Insight\Utilities\vxl\core" /I "C:
    \Insight2\Insight\Utilities\vxl\vcl" /I "C:\Insight2\Insight\Utilities"
/I "C:
    \Insight2\Insight-VC++\Utilities" /I "C:
\Insight2\Insight-VC++\Utilities\gdcm" /I "C:
    \Insight2\Insight\Utilities\nifti\znzlib" /I "C:
\Insight2\Insight\Utilities\nifti\niftilib" /I
    "C:\Insight2\Insight\Utilities\expat" /I "C:
\Insight2\Insight-VC++\Utilities\expat" /I "C:
    \Insight2\Insight-VC++\Utilities\DICOMParser" /I "C:
\Insight2\Insight\Utilities\DICOMParser" /I
    "C:\Insight2\Insight\Utilities\NrrdIO" /I "C:
\Insight2\Insight\Utilities\MetaIO" /I "C:
    \Insight2\Insight\Code\SpatialObject" /I "C:
\Insight2\Insight\Code\Numerics\NeuralNetworks" /I
    "C:\Insight2\Insight\Code\Numerics\Statistics" /I "C:
\Insight2\Insight\Code\Numerics\FEM" /I "C:
    \Insight2\Insight\Code\IO" /I "C:\Insight2\Insight\Code\Numerics" /I
"C:
    \Insight2\Insight\Code\Common" /I "C:
\Insight2\Insight\Code\BasicFilters" /I "C:
    \Insight2\Insight\Code\Algorithms" /I "C:\Insight2\Insight-VC++" /D
"WIN32" /D "_WINDOWS" /D
    "vvITKSigmoid_EXPORTS" /D "_WINDLL" /D "_MBCS" /FD /EHsc /MD /GR
/Fo"Release\\" /Fd".
    \Release/vc70.pdb" /W3 /c /TP  /TP     /Zm1000    -DNOMINMAX
-DNOMINMAX   /D NDEBUG   /D NDEBUG
    -DCMAKE_INTDIR=\"Release\"
    "\Insight2\InsightApplications\VolviewPlugIns\vvITKSigmoid.cxx"
    ]
    Creating command line "cl.exe @"c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\RSP000002.rsp"
/nologo"
    Creating temporary file "c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\RSP000003.rsp"
with contents
    [
    /OUT:"Release\vvITKSigmoid.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:
\Insight2\Insight-VC++\bin\.
    \Release" /LIBPATH:"C:\Insight2\Insight-VC++\bin\\" /DLL
/PDB:"Release\vvITKSigmoid.pdb"
    /STACK:10000000 /IMPLIB:"Release\vvITKSigmoid.lib" /MACHINE:I386
/STACK:10000000 /machine:I386
    /INCREMENTAL:YES   odbc32.lib odbccp32.lib ITKAlgorithms.lib
ITKCommon.lib ITKBasicFilters.lib
    ITKIO.lib ITKCommon.lib ITKBasicFilters.lib ITKAlgorithms.lib
ITKNrrdIO.lib itkgdcm.lib
    itkjpeg12.lib itkjpeg16.lib wsock32.lib snmpapi.lib itkpng.lib
itktiff.lib itkjpeg8.lib
    ITKSpatialObject.lib ITKMetaIO.lib ITKDICOMParser.lib ITKEXPAT.lib
ITKniftiio.lib ITKznz.lib
    itkzlib.lib ITKNumerics.lib ITKStatistics.lib ITKCommon.lib
itkvnl_inst.lib itkvnl_algo.lib
    itkvnl.lib itkvcl.lib itknetlib.lib itksys.lib  kernel32.lib user32.lib
gdi32.lib winspool.lib
    comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib "
    \Insight2\insight-vc++\bin\release\ITKAlgorithms.lib" "
    \Insight2\insight-vc++\bin\release\ITKCommon.lib" "
    \Insight2\insight-vc++\bin\release\ITKBasicFilters.lib" "
    \Insight2\insight-vc++\bin\release\ITKIO.lib" "
\Insight2\insight-vc++\bin\release\ITKNrrdIO.lib"
    "\Insight2\insight-vc++\bin\release\itkgdcm.lib" "
    \Insight2\insight-vc++\bin\release\itkjpeg12.lib" "
    \Insight2\insight-vc++\bin\release\itkjpeg16.lib" "
\Insight2\insight-vc++\bin\release\itkpng.lib"
    "\Insight2\insight-vc++\bin\release\itktiff.lib" "
    \Insight2\insight-vc++\bin\release\itkjpeg8.lib" "
    \Insight2\insight-vc++\bin\release\ITKSpatialObject.lib" "
    \Insight2\insight-vc++\bin\release\ITKMetaIO.lib" "
    \Insight2\insight-vc++\bin\release\ITKDICOMParser.lib" "
    \Insight2\insight-vc++\bin\release\ITKEXPAT.lib" "
    \Insight2\insight-vc++\bin\release\ITKniftiio.lib" "
    \Insight2\insight-vc++\bin\release\ITKznz.lib" "
\Insight2\insight-vc++\bin\release\itkzlib.lib" "
    \Insight2\insight-vc++\bin\release\ITKNumerics.lib" "
    \Insight2\insight-vc++\bin\release\ITKStatistics.lib" "
    \Insight2\insight-vc++\bin\release\itkvnl_inst.lib" "
    \Insight2\insight-vc++\bin\release\itkvnl_algo.lib" "
    \Insight2\insight-vc++\bin\release\itkvnl.lib" "
\Insight2\insight-vc++\bin\release\itkvcl.lib" "
    \Insight2\insight-vc++\bin\release\itknetlib.lib" "
\Insight2\insight-vc++\bin\release\itksys.lib"
    ".\Release\vvITKSigmoid.obj"
    ]
    Creating command line "link.exe @"c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\RSP000003.rsp""
    Creating temporary file "c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\BAT000004.bat"
with contents
    [
    @echo off
    "C:\Program Files\CMake20\bin\cmake.exe" -E copy /.
\Release/vvITKSigmoid.dll "C:/Program
    Files/VolView20/.\Release/Plugins/vvITKSigmoid.dll"

    if errorlevel 1 goto VCReportError
    goto VCEnd
    :VCReportError
    echo Project : error PRJ0019: A tool returned an error code from
"Performing Post-Build Event..."
    exit 1
    :VCEnd
    ]
    Creating command line ""c:

\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\BAT000004.bat""





Output Window




    Building Custom Rule vvITKSigmoid.vcproj.cmake
    -- Check for working C compiler: cl -- works
    -- Check for working CXX compiler: cl -- works
    -- Configuring done
    -- Generating done
    -- Build files have been written to:
C:/Insight2/InsightApplications-VSNET
    Compiling...
    vvITKSigmoid.cxx
    Linking...
       Creating library Release\vvITKSigmoid.lib and object
Release\vvITKSigmoid.exp
    Performing Post-Build Event...
    Error copying file "/.\Release/vvITKSigmoid.dll" to "C:/Program
Files/VolView20/.
    \Release/Plugins/vvITKSigmoid.dll".
    Project : error PRJ0019: A tool returned an error code from "Performing
Post-Build Event..."





Results




    Build log was saved at "file://c:
\Insight2\InsightApplications-VSNET\VolviewPlugIns\Release\BuildLog.htm"
    vvITKSigmoid - 1 error(s), 0 warning(s)











                                                                                                                                       
                                                                                                                                       
                                                                                                                                       
                                   "Karthik Krishnan"                                                                                  
                       <karthik.krishnan at kitware.com> To:                                                                              
                                                            "mrcheung at mdanderson.org" <mrcheung at mdanderson.org>                        
                                                      cc:                                                                              
                                                                                                                                       
                                  12/05/2007 02:30 PM                                                                                  
                                                                                                                                       
                                                                                                                                       
                                                                                                                                       
                                                      Subject:                                                                         
                                                            Re: [Insight-users] Re: volview plugin DLL post-build error                
                                                            (clarification)                                                            
                                                                                                                                       
                                                                                                                                       




Rex:

On 12/5/07, mrcheung at mdanderson.org <mrcheung at mdanderson.org > wrote:


Compiling...
vvITKSigmoid.cxx
Linking...
   Creating library Debug\vvITKSigmoid.lib and object
Debug\vvITKSigmoid.exp

I would also strongly recommend that you built them in "Release" rather
than "Debug" . VolView for sure is built using Release mode. There is no
reason to have your plugins built using Debug mode. Its not like you can
debug them anyway easily running it through an external application like
VolView. Execution times between Debug and release can be twice as fast...

--
k






More information about the Insight-users mailing list