<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hello,</div><div><br></div><div>I am working on a project called Alpha, and I have installed all the binaries needed (using cmake and the module bundleUtilities) in this directory :&nbsp;<span style="font-size: 12pt;">E:/projects/Alpha/install</span></div><div><span style="font-size: 12pt;">Now, I want to generate a NSIS package with cpack</span><span style="font-size: 12pt;">&nbsp;but I have the following error when building the PACKAGE target of my project in visual Studio 2010 :</span></div><div><br></div><div>CPack: Create package using NSIS</div><div>3&gt; &nbsp;CPack: Install projects</div><div>3&gt; &nbsp;CPack: - Install project: Alpha</div><div>3&gt;EXEC : CPack error : Problem creating temporary directory: E:/projects/Alpha/build/_CPack_Packages/win32/NSIS/Alpha-2.0.2-x86E:/projects/Alpha/install</div><div>3&gt;EXEC : CPack error : Error when generating package: Alpha</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: La commande "setlocal</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: cd E:\projects\Alpha\build</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: E:</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: "C:\Program Files (x86)\CMake 2.8\bin\cpack.exe" -C RelWithDebInfo --config ./CPackConfig.cmake</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmEnd</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: endlocal &amp; call :cmErrorLevel %errorlevel% &amp; goto :cmDone</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmErrorLevel</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: exit /b %1</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :cmDone</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd</div><div>3&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" s'est arrêtée avec le code 1.</div><div><br></div><div>Basically, it seems that it doesnt manage to create a temporary directory, but I do not understand why the install directory is appended to the temporary directory.</div><div><br></div><div>I also executed cpack with verbose and debug option, here is the log :</div><div><br></div><div><div>CPack: Enable Verbose</div><div>CPack: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:269 Enable Debug</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:273 Read CPack config file:&nbsp;</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:341 Read CPack configuration file: E:/projects/Alpha/build/CPackConfig.cmake</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:434 Specified generator: NSIS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1220 Looking for CMAKE_ROOT: c:/Program Files (x86)/CMake 2.8/share/cmake-2.8</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CMAKE_ROOT, c:/Program Files (x86)/CMake 2.8/share/cmake-2.8)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_GENERATOR, NSIS)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_PROJECT_CONFIG_FILE</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_INCLUDE_TOPLEVEL_DIRECTORY</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackNSISGenerator.cxx:356 cmCPackNSISGenerator::Initialize()</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackNSISGenerator.cxx:402 Test NSIS version: "C:/Program Files (x86)/NSIS/makensis.exe" /VERSION</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackNSISGenerator.cxx:426 NSIS Version: 2.46</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_INSTALLER_PROGRAM, C:/Program Files (x86)/NSIS/makensis.exe)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_NSIS_EXECUTABLES_DIRECTORY, bin)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_PACKAGE_EXECUTABLES</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_CREATE_DESKTOP_LINKS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackNSISGenerator.cxx:463 CPACK_CREATE_DESKTOP_LINKS: not set</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_NSIS_MENU_LINKS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_NSIS_CREATE_ICONS, )</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_NSIS_DELETE_ICONS, )</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_NSIS_COMPRESSOR, lzma)</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:493 Use generator: cmCPackNSISGenerator</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cpack.cxx:495 For project: Alpha</div><div>CPack: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1005 Create package using NSIS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:67 Create temp directory.</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_OUTPUT_FILE_PREFIX, E:/projects/Alpha/build)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_TOPLEVEL_DIRECTORY, E:/projects/Alpha/build/_CPack_Packages/win32/NSIS)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_TEMPORARY_DIRECTORY, E:/projects/Alpha/build/_CPack_Packages/win32/NSIS/Alpha-2.0.2-x86)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_OUTPUT_FILE_NAME, Alpha-2.0.2-x86.exe)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_OUTPUT_FILE_PATH, E:/projects/Alpha/build/Alpha-2.0.2-x86.exe)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_TEMPORARY_PACKAGE_FILE_NAME, E:/projects/Alpha/build/_CPack_Packages/win32/NSIS/Alpha-2.0.2-x86.exe)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_INSTALL_DIRECTORY, C:\Program Files (x86)/Alpha-2.0.2)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_NATIVE_INSTALL_DIRECTORY, "C:\Program Files (x86)\Alpha-2.0.2")</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_TEMPORARY_INSTALL_DIRECTORY, E:/projects/Alpha/build/_CPack_Packages/win32/NSIS/Alpha-2.0.2-x86)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:142 Look for: CPACK_PACKAGE_DESCRIPTION_FILE</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:148 Look for: E:/projects/Alpha/README.txt</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:167 Read description file: E:/projects/Alpha/README.txt</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:997 cmCPackNSISGenerator::SetOption(CPACK_REMOVE_TOPLEVEL_DIRECTORY, 1)</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_COMPONENTS_IGNORE_GROUPS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_COMPONENTS_ONE_PACKAGE_PER_GROUP</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_COMPONENTS_GROUPING</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1435 [NSIS] requested component grouping = ONE_PER_GROUP</div><div>CPack Verbose: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1029 Remove toplevel directory: E:/projects/Alpha/build/_CPack_Packages/win32/NSIS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1041 About to install project&nbsp;</div><div>CPack: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:191 Install projects</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1287 GetPackagingInstallPrefix: 'E:/projects/Alpha/install'</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_INSTALL_COMMANDS</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_INSTALL_SCRIPT</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_IGNORE_FILES</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_INSTALLED_DIRECTORIES</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_ALL_INSTALL_TYPES</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_COMPONENTS_ALL</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1203 Warning, GetOption return NULL for: CPACK_BUILD_CONFIG</div><div>CPack: C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:678 - Install project: Alpha</div><div>C:/cygwin/home/dashboard/CMakeReleaseDirectory/1d3b35fd/Source/CPack/cmCPackGenerator.cxx:1287 GetPackagingInstallPrefix: 'E:/projects/Alpha/install'</div></div><div><br></div><div>Thanks in advance for your help,</div><div><br></div><div>H.</div>                                               </div></body>
</html>