[CMake] cpack issue: %1 is not a valid Win32 application

David Cole david.cole at kitware.com
Thu Feb 24 13:34:16 EST 2011


Is "C:/path/to/make" a batch file?
What are its contents?


On Thu, Feb 24, 2011 at 1:23 PM, thehighhat <thehighhat+www at gmail.com>wrote:

> using nsis 2.46. cmake 2.8.3 to config and build a 32 bit console app
> on a 64bit windows 7 host using 32bit intel compilers and msvs 2010
> express:  all ok.
>
> make package_source:  all ok.
>
> but make package:    broken.
>
>
>
>
> cpack --verbose
>
> CPack: Enable Verbose
> CPack Verbose: Read CPack config file:
> CPack Verbose: Read CPack configuration file: C:/path/to/CPackConfig.cmake
> CPack Verbose: Specified generator: NSIS
> CPack Verbose: Test NSIS version: "C:/Program Files
> (x86)/NSIS/makensis.exe" /VERSION
> CPack Verbose: Use generator: cmCPackNSISGenerator
> CPack Verbose: For project: X
> CPack: Create package using NSIS
> CPack Verbose: Read description file:
>
> C:/path/to/cmake/cmake-2.8.3-win32-x86/share/cmake-2.8/Templates/CPack.GenericDescription.txt
> CPack Verbose: Remove toplevel directory:
> C:/path/to/builddir/_CPack_Packages/win32/NSIS
> CPack: Install projects
> CPack: - Run preinstall target for: Project
> CPack Error: Problem running install command: C:/path/to/make "preinstall"
> Please check
> C:/path/to/builddir/_CPack_Packages/win32/NSIS/PreinstallOutput.log
> for errors
> CPack Error: Error when generating package: X
>
>
>
> this is what is in the log file above:
>
> # Run command: C:/path/to/make "preinstall"
> # Directory: C:/path/to/builddir
> # Output:
> %1 is not a valid Win32 application
>
>
> i cannot find what is causing this error.  any ideas?
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110224/cdefefaa/attachment.htm>


More information about the CMake mailing list