Hmm... and if you run from a console: dumpbin /dependents QtTest.exe what does it give?
Clint On Friday, May 20, 2011 02:37:51 pm NoRulez wrote: > OK, after reading the verbose message I found a path „error“ > („QtTest-0.1.1-win32/./QtTest.exe” should be > “QtTest-0.1.1-win32/bin/QtTest.exe”) after change this path in > “INSTALL(TARGETS QtTest...” it seems to work, but in the package there are > only the following files: > > > > .) QtTest.exe > > .) Uninstall.exe > > > > After enabling the verbose mode once more, here is the current message but > I couldn’t figure out why it doesn’t add the required *.dll’s to the > package: > > > > CPack: Enable Verbose > > CPack Verbose: Read CPack config file: > > CPack Verbose: Read CPack configuration file: > C:/Repository/Git/TestProject/build/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: QtTest > > CPack: Create package using NSIS > > CPack Verbose: Read description file: C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Templates/CPack.GenericDescription.txt > > CPack Verbose: Remove toplevel directory: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS > > CPack: Install projects > > CPack: - Run preinstall target for: QtTest > > CPack: - Install project: QtTest > > CPack Verbose: Install configuration: "" > > CPack Verbose: Installing: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1. > 1-win32/bin/QtTest.exe > > CPack Verbose: fixup_bundle > > CPack Verbose: > app='C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest > -0.1.1-win32/bin/QtTest.exe' > > CPack Verbose: libs='' > > CPack Verbose: dirs='C:/Qt/2010.05/qt/lib' > > CPack Verbose: fixup_bundle: preparing... > > CPack Verbose: fixup_bundle: copying... > > CPack Verbose: 1/2: *NOT* copying > 'C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1 > .1-win32/bin/QtTest.exe' > > CPack Verbose: fixup_bundle: fixing... > > CPack Verbose: 2/2: fix-up not required on this platform > 'C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1 > .1-win32/bin/QtTest > > .exe' > > CPack Verbose: fixup_bundle: cleaning up... > > CPack Verbose: fixup_bundle: verifying... > > CPack Verbose: > ========================================================================== > = > > CPack Verbose: Analyzing > app='C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest > -0.1.1-win32/bin/QtTest.exe' > > CPack Verbose: > bundle='C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtT > est-0.1.1-win32/bin' > > CPack Verbose: > executable='C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS > /QtTest-0.1.1-win32/bin/QtTest.exe' > > CPack Verbose: valid='1' > > CPack Verbose: executable file 1: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1. > 1-win32/bin/QtTest.exe > > CPack Verbose: verified='1' > > CPack Verbose: info='Verified 1 executable files in > 'C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1 > .1-win32/bin'' > > CPack Verbose: > > CPack Verbose: verified='1' > > CPack Verbose: info='' > > CPack Verbose: > > CPack Verbose: fixup_bundle: done > > CPack: Create package > > CPack Verbose: Package files to: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1. > 1-win32.exe > > CPack Verbose: Configure file: C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/NSIS.template.in to > C:/Repository/Git/TestProject/build/_CPack > > _Packages/win32/NSIS/project.nsi > > CPack Verbose: Execute: "C:/Program Files (x86)/NSIS/makensis.exe" > "C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/project.ns > i" > > CPack Verbose: Copying final package(s) [1]: > > CPack: - package: > C:/Repository/Git/TestProject/build/QtTest-0.1.1-win32.exe generated. > > > > Best Regards > > > > > > Von: [email protected] [mailto:[email protected]] Im Auftrag > von NoRulez Gesendet: Freitag, 20. Mai 2011 21:52 > An: [email protected]; [email protected] > Betreff: Re: [CMake] BundleUtilities with MinGW under Windows > > > > OK thanks, here is the verbose output: > > > > C:\Repository\Git\TestProject\build>cpack -V -G NSIS > > CPack: Enable Verbose > > CPack Verbose: Read CPack config file: > > CPack Verbose: Read CPack configuration file: > C:/Repository/Git/TestProject/build/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: QtTest > > CPack: Create package using NSIS > > CPack Verbose: Read description file: C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Templates/CPack.GenericDescription.txt > > CPack Verbose: Remove toplevel directory: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS > > CPack: Install projects > > CPack: - Run preinstall target for: QtTest > > CPack: - Install project: QtTest > > CPack Verbose: Install configuration: "" > > CPack Verbose: Installing: > C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest-0.1. > 1-win32/./QtTest.exe > > CPack Verbose: fixup_bundle > > CPack Verbose: > app='C:/Repository/Git/TestProject/build/_CPack_Packages/win32/NSIS/QtTest > -0.1.1-win32/bin/QtTest.exe' > > CPack Verbose: libs='' > > CPack Verbose: dirs='C:/Qt/2010.05/qt/lib' > > CPack Verbose: warning: *NOT* handled - directory/file does not exist... > > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/BundleUtilities.cmake:657 (message): > > error: fixup_bundle: not a valid bundle > > Call Stack (most recent call first): > > C:/Repository/Git/TestProject/build/cmake_install.cmake:45 (fixup_bundle) > > > > > > CPack Verbose: fixup_bundle: done > > CPack Error: Error when generating package: QtTest > > > > > > Von: [email protected] [mailto:[email protected]] Im Auftrag > von [email protected] Gesendet: Freitag, 20. Mai 2011 21:46 > An: [email protected] > Betreff: Re: [CMake] BundleUtilities with MinGW under Windows > > > > Ah, ok. You can see related warnings if you run cpack with -V option to > make it verbose. > > Clint > > ----- Reply message ----- > From: "NoRulez" <[email protected]> > Date: Fri, May 20, 2011 1:40 pm > Subject: AW: [CMake] BundleUtilities with MinGW under Windows > To: "'Clinton Stimpson'" <[email protected]> > Cc: "'CMake MailingList'" <[email protected]> > > > For the QtTest example I get the following error: > > CPack: Create package using NSIS > CPack: Install projects > CPack: - Run preinstall target for: QtTest > CPack: - Install project: QtTest > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/BundleUtilities.cmake:657 (message): error: > fixup_bundle: not a valid bundle > Call Stack (most recent call first): > C:/Repository/Git/TestProject/build/cmake_install.cmake:45 (fixup_bundle) > > > CPack Error: Error when generating package: QtTest > > -----Ursprüngliche Nachricht----- > Von: Clinton Stimpson [mailto:[email protected]] > Gesendet: Freitag, 20. Mai 2011 18:47 > An: NoRulez > Cc: CMake MailingList > Betreff: Re: [CMake] BundleUtilities with MinGW under Windows > > > The term bundle is used loosely here. The error message hopefully tell you > why it isn't valid, or you could give us the complete error message you are > getting. > > Clint > > On Friday, May 20, 2011 10:29:16 am NoRulez wrote: > > I get the message that the generated file (e.g Project.exe on Windows) > > isn't a valid Bundle, which is correct because bundle files exists only > > on Mac. > > > > Am 19.05.2011 um 16:39 schrieb <[email protected]>: > > > And what error messages are you getting? > > > > > > Clint > > > > > > ----- Original Message ----- > > > > > >> Sorry for the missing information. > > >> I use CMake 2.8.4 and have also Visual Studio 2008 installed. > > >> > > >> > > >> Best Regards > > >> > > >> Am 19.05.2011 um 05:52 schrieb "Clinton Stimpson" < > > >> [email protected] >: > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> What version of cmake? I don't think that QtTest example worked until > > >> CMake 2.8.3. > > >> > > >> > > >> And you have dumpbin available on Windows from a Visual Studio > > >> installation? > > >> It might be nice to add support for mingw's objdump tool to find > > >> dependent dlls. > > >> > > >> > > >> Clint > > >> > > >> > > >> On May 14, 2011, at 7:48 AM, NoRulez wrote: > > >> > > >> > > >> > > >> > > >> > > >> Hi @all, > > >> > > >> does anyone get BundleUtilities working on Windows and could give me > > >> help? > > >> I tried BundleUtilities under Windows, but the Qt dll’s (such as > > >> QtGui4.dll, …) and the MinGW dll’s (mingwm10.dll and > > >> libgcc_s_dw2-1.dll) are not packaged. > > >> > > >> I also tried the following, but same problem here: > > >> http://www.vtk.org/Wiki/images/2/25/QtTest-Package-Example.zip > > >> > > >> The following example does also not work on linux > > >> > > >> Much thanks in advance > > >> > > >> Best Regards > > >> NoRulez > > >> > > >> _______________________________________________ > > >> > > >> 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 > > > > > > _______________________________________________ > > > 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 -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation Software, LLC www.csimsoft.com _______________________________________________ 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
