[CMake] Problems with MinGW + BundleUtilities

NoRulez norulez at me.com
Wed Jan 19 03:40:11 EST 2011


The code I use to create the bundle is as followed

 

        SET(DIRS ${QT_BINARY_DIR} ${QT_LIBRARY_DIR})

        SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe")

        # Not working (Also when trying this in the INSTALL(CODE
        # SET(APPS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe")
        # SET(APPS "${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe")
        # SET(APPS "\${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.exe")

        SET(PLUGINS plugins)

        INSTALL(FILES "${QT_PLUGINS_DIR}/sqldrivers/qsqlited4.dll"
DESTINATION ${PLUGINS}/sqldrivers COMPONENT ${PROJECT_NAME})

        INSTALL(CODE "

            file(GLOB_RECURSE QTPLUGINS

 
\"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PLUGINS}/sqldrivers/*${CMAKE_SHARED_LI
BRARY_SUFFIX}\")

            include(BundleUtilities)

            fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")

            " COMPONENT ${PROJECT_NAME})

 

The install command for the application is:

 

INSTALL(TARGETS ${PROJECT_NAME}
        BUNDLE DESTINATION . COMPONENT ${PROJECT_NAME}
        RUNTIME DESTINATION . COMPONENT ${PROJECT_NAME})

 

Thanks in advance

 

Best Regards

NoRulez

 

Von: David Cole [mailto:david.cole at kitware.com] 
Gesendet: Mittwoch, 19. Jänner 2011 00:26
An: NoRulez
Cc: CMake MailingList
Betreff: Re: [CMake] Problems with MinGW + BundleUtilities

 

Providing code samples and/or copy/pasted output from doing your build would
be more effective.

 

I don't really know what you mean by "give two destinations"

 

On Tue, Jan 18, 2011 at 5:51 PM, NoRulez <norulez at me.com> wrote:

Thanks for the answer

 

I already added ${QT_LIBRARY_DIR} and ${QT_BINARY_DIR}, but if I give two
destinations, I get the error that it isn't a valid bundle.

 

Best Regards

NoRulez

Am 18.01.2011 um 23:43 schrieb David Cole <david.cole at kitware.com>:

On Windows, you have to tell fixup_bundle where to find the Qt dll's (and
the others) by passing in a list of directories as the last argument. Or,
alternatively, simply add those directories to the PATH as well.

 

HTH,

David

 

 

On Tue, Jan 18, 2011 at 4:34 PM, NoRulez <norulez at me.com> wrote:

Hello,

 

I build my Qt project successfully on linux/mac with the great
BundleUtilities.

On Windows the required Qt dll’s and also “libgcc_s_dw2-1.dll” and
“mingwm10.dll” aren’t packaged.

 

The dumpbin.exe is in the path and the dumpbin.exe is under
C:\masm32\bin\dumpbin.exe

 

How can I solve this?

 

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110119/9856a634/attachment-0001.htm>


More information about the CMake mailing list