[CMake] BundleUtilities example not working under Windows?
Michael Jackson
mike.jackson at bluequartz.net
Tue Dec 21 18:49:51 EST 2010
Were you using cmake from a "Visual Studio Command prompt" or a normal
command prompt. According to Microsoft you MUST run dumpbin.exe from a
"Visual Studio Command Prompt". It seems that dumpbin.exe is included
all the way back to Visual Studio 2005.
Hope that helps.
___________________________________________________________
Mike Jackson www.bluequartz.net
On Dec 21, 2010, at 4:27 PM, Crni Gorac wrote:
> On Tue, Dec 21, 2010 at 9:39 PM, Crni Gorac <cgorac at gmail.com> wrote:
>>
>> [ ... ]
>>
>> My project is not that important at the moment, as the QtTest example
>> from the Wiki page I mentioned above is not working. When I run CPack
>> after building this project (once again: am using CMake 2.8.3, on a
>> Windows 7 Professional machine, and with LGPL version of Qt SDK
>> installed), the output looks OK:
>> ---------------------------------------------------------------------------------------------
>> C:\Users\Crni\Desktop\QtTest-build>cpack -G NSIS
>> CPack: Create package using NSIS
>> CPack: Install projects
>> CPack: - Run preinstall target for: QtTest
>> CPack: - Install project: QtTest
>> CPack: Create package
>> CPack: - package:
>> C:/Users/Crni/Desktop/QtTest-build/QtTest-0.1.1-win32.exe gener
>> ated.
>> ---------------------------------------------------------------------------------------------
>> However, corresponding Qt libraries (QtCore and QtGui) are not put
>> in,
>> so when I install this program on another Windows machine, with no Qt
>> installed, it doesn't work.
>>
>
> Just an additional notice: I just discovered "--verbose" flag of
> CPack, and it could be that the reason for fixup_bundle() not being
> able to find dependencies is that I don't have dumpbin installed -
> namely, I've noticed following warnings in CPack verbose output:
> "CPack Verbose: warning: could not find 'dumpbin' - cannot analyze
> prerequisites...".
>
> But - if I configured the project with:
> cmake -G "MinGW Makefiles"
> shoudn't then CPack know to use objdump to analyze dependencies?
> _______________________________________________
> 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
More information about the CMake
mailing list