Try:<br>
SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}\\\\test.bmp")<br><br>There is a "bug" in the NSIS installer that refuses to extract the file name properly when there are only "/" forward slashes in the file name...<br>
<br><br>HTH,<br>David<br><br><br><div class="gmail_quote">On Sun, Jun 1, 2008 at 5:48 PM, Torsten Grote <<a href="mailto:Torsten.Grote@gmx.de">Torsten.Grote@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
it seems impossible to build a NSIS installer using CMake. I tried v2.6.0 and the latest CVS version.<br>
After a "make package" I get a CPack Error. The log file NSISOutput.log gives me:<br>
<br>
[snip]<br>
!insertmacro: MUI_LANGUAGE<br>
<br>
Error: no branding image found in chosen UI!<br>
Error in macro MUI_HEADERIMAGE_INIT on macroline 27<br>
Error in macro MUI_GUIINIT on macroline 3<br>
Error in macro MUI_FUNCTION_GUIINIT on macroline 4<br>
Error in macro MUI_INSERT on macroline 11<br>
Error in macro MUI_LANGUAGE on macroline 7<br>
Error in script "/home/xyz/tmp/cmake/build/_CPack_Packages/win32/NSIS/project.nsi" on line 438 -- aborting creation process<br>
[/snip]<br>
<br>
I am on a 64bit GNU/Linux, crosscompiling my project for Windows with mingw32. I managed to reproduce the error with a minimal(! enough to trigger the error) test project. The CMakeLists.txt file follows.<br>
<br>
ADD_EXECUTABLE(hello wintest.c)<br>
<br>
INCLUDE(InstallRequiredSystemLibraries)<br>
<br>
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "My funky project")<br>
SET(CPACK_PACKAGE_VENDOR "Me, myself, and I")<br>
SET(CPACK_PACKAGE_VERSION_MAJOR "1")<br>
SET(CPACK_PACKAGE_VERSION_MINOR "3")<br>
SET(CPACK_PACKAGE_VERSION_PATCH "2")<br>
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")<br>
<br>
IF(WIN32 AND NOT UNIX)<br>
SET(CPACK_GENERATOR "NSIS")<br>
SET(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/test.bmp")<br>
ENDIF(WIN32 AND NOT UNIX)<br>
<br>
INCLUDE(CPack)<br>
<br>
The image test.bmp exists and is a Windows bmp file. I checked the wiki and the sparse documentation, but was unable to find any clue.<br>
If you have any ideas, please let me now!<br>
<br>
Thanks and Regards,<br>
Torsten<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>