[CMake] Problems with MinGW + BundleUtilities
NoRulez
norulez at me.com
Wed Jan 19 05:35:49 EST 2011
The two files are also in the QT_BINARY_DIR
The two directories (QT_BINARY_DIR and QT_LIBRARY_DIR ) are the directories
where the dlls are stored.
So, what should I do now to get it working?
Von: David Cole [mailto:david.cole at kitware.com]
Gesendet: Mittwoch, 19. Jänner 2011 11:23
An: NoRulez
Cc: CMake MailingList
Betreff: Re: [CMake] Problems with MinGW + BundleUtilities
Never mind. It's QT_BINARY_DIR and QT_LIBRARY_DIR, right there in the first
line of code.
So add to that variable the actual directories where all of your dlls live
and it should work.
i.e. -- what directories are the following files in?
libgcc_s_dw2-1.dll
mingwm10.dll
They also need to be included in DIRS for fixup_bundle and get_prerequisites
to find them.
On Wed, Jan 19, 2011 at 5:21 AM, David Cole <david.cole at kitware.com> wrote:
And what is the value of "DIRS"?
On Wed, Jan 19, 2011 at 3:40 AM, NoRulez <norulez at me.com> wrote:
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 dlls and also libgcc_s_dw2-1.dll and
mingwm10.dll arent 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
_______________________________________________
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/1207f898/attachment.htm>
More information about the CMake
mailing list