Re: [CMake] cpack issue: %1 is not a valid Win32 application
Interesting, Is the NSIS application used a 32bits or 64bits one? 32 bit. ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
Is C:/path/to/make a batch file? What are its contents? On Thu, Feb 24, 2011 at 1:23 PM, thehighhat thehighhat+...@gmail.comwrote: 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 ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
On Thu, Feb 24, 2011 at 11:34 AM, David Cole david.c...@kitware.com wrote: Is C:/path/to/make a batch file? What are its contents? no, not a batch file.it is a symlink, to a symlink, to a binary. contents are the compile bin for make from cygwin commands: ls -l /path/to/make lrwxrwxrwx ... /path/to/make - /bin/make* ls -l /bin/make lrwxrwxrwx ... /bin/make - ./make-v381-cygwin* ls -l /bin/make-v381-cygwin -rwxr-xr-x ... /bin/make-v381-cygwin* file /bin/make-v381-cygwin /bin/make-v381-cygwin: PE32 executable for MS Windows (console) Intel 80386 32-bit ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
Are you using the cygwin cmake or the Windows cmake in C:\Program Files... If you're using the Windows cmake, it's not going to be able to deal with cygwin symlinks at all. On Thu, Feb 24, 2011 at 1:49 PM, thehighhat thehighhat+...@gmail.comwrote: On Thu, Feb 24, 2011 at 11:34 AM, David Cole david.c...@kitware.com wrote: Is C:/path/to/make a batch file? What are its contents? no, not a batch file.it is a symlink, to a symlink, to a binary. contents are the compile bin for make from cygwin commands: ls -l /path/to/make lrwxrwxrwx ... /path/to/make - /bin/make* ls -l /bin/make lrwxrwxrwx ... /bin/make - ./make-v381-cygwin* ls -l /bin/make-v381-cygwin -rwxr-xr-x ... /bin/make-v381-cygwin* file /bin/make-v381-cygwin /bin/make-v381-cygwin: PE32 executable for MS Windows (console) Intel 80386 32-bit ___ 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 ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
On Thu, Feb 24, 2011 at 12:05 PM, David Cole david.c...@kitware.com wrote: Are you using the cygwin cmake or the Windows cmake in C:\Program Files... I am using the Windows binary zip package available from cmake.org. (not the .exe installer) It is unpacked into a folder under the C:\cygwin . If you're using the Windows cmake, it's not going to be able to deal with cygwin symlinks at all. This version works well with the cygwin. For example, on a 32bit Windows XP, I am able to config/build/package this application all ok. I am currently able to config and build the application with many uses of symlink. These seem to get resolved to normal Windows paths in the CMakeCache.txt and CPackConfig.cmake. ( i say normal because the are the mixed version of path C:/path/with/forward/slashes/and/drive/letters instead of /unixy/paths or C:\Native Win\Path ) ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
Do you have the same problem if you use a real binary for the 'make' instead of this symlink? On Thu, Feb 24, 2011 at 2:14 PM, thehighhat thehighhat+...@gmail.comwrote: On Thu, Feb 24, 2011 at 12:05 PM, David Cole david.c...@kitware.com wrote: Are you using the cygwin cmake or the Windows cmake in C:\Program Files... I am using the Windows binary zip package available from cmake.org. (not the .exe installer) It is unpacked into a folder under the C:\cygwin . If you're using the Windows cmake, it's not going to be able to deal with cygwin symlinks at all. This version works well with the cygwin. For example, on a 32bit Windows XP, I am able to config/build/package this application all ok. I am currently able to config and build the application with many uses of symlink. These seem to get resolved to normal Windows paths in the CMakeCache.txt and CPackConfig.cmake. ( i say normal because the are the mixed version of path C:/path/with/forward/slashes/and/drive/letters instead of /unixy/paths or C:\Native Win\Path ) ___ 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 ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
On Thu, Feb 24, 2011 at 12:20 PM, David Cole david.c...@kitware.com wrote: Do you have the same problem if you use a real binary for the 'make' instead of this symlink? Yes, the same problem persists. I started with a clean builddir. Changed all references to use the actual file, not symlinks. Called make using the actual file, not symlinks. The build succedded. and teh binary works. But I still have the same problem:%1 is not a valid Win32 application I cannot get cpack to build the NSIS installer correctly. ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
2011/2/24 thehighhat thehighhat+...@gmail.com: On Thu, Feb 24, 2011 at 12:20 PM, David Cole david.c...@kitware.com wrote: Do you have the same problem if you use a real binary for the 'make' instead of this symlink? Yes, the same problem persists. I started with a clean builddir. Changed all references to use the actual file, not symlinks. Called make using the actual file, not symlinks. The build succedded. and teh binary works. But I still have the same problem: %1 is not a valid Win32 application I cannot get cpack to build the NSIS installer correctly. Does this mean that other CPack generators works? Could you try ZIP ? cpack --verbose -G ZIP -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
Does this mean that other CPack generators works? Yes. Could you try ZIP ? cpack --verbose -G ZIP all ok. I tried NSIS, TGZ, and ZIP. also created source package. all work now. ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
I haven't really read most if this thread, so this may not apply, but this dialog box can be caused by trying to run a Win64 application on Win32, or trying to run any binary other than Win32 with a format that Windows understands on Win32. Mm On Feb 24, 2011 7:28 PM, thehighhat thehighhat+...@gmail.com wrote: Does this mean that other CPack generators works? Yes. Could you try ZIP ? cpack --verbose -G ZIP all ok. I tried NSIS, TGZ, and ZIP. also created source package. all work now. ___ 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 ___ 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
Re: [CMake] cpack issue: %1 is not a valid Win32 application
2011/2/25 Martin O'Brien martin.matthew.obr...@gmail.com: I haven't really read most if this thread, so this may not apply, but this dialog box can be caused by trying to run a Win64 application on Win32, or trying to run any binary other than Win32 with a format that Windows understands on Win32. Interesting, Is the NSIS application used a 32bits or 64bits one? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ 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