[cmake-developers] CMake: Compile error: /usr/bin/ld: cannot find -lQt5::WinMain
Eric Noulard
eric.noulard at gmail.com
Wed Mar 19 10:26:24 EDT 2014
Hi all,
Current master and 3.0.0-rc2 give compile error:
/usr/bin/ld: cannot find -lQt5::WinMain
collect2: error: ld returned 1 exit status
This is on Debian Jessie 64bit linux box,
with gcc 4.8.2 compiler
git bisect leads me to
61c60b239c0ddc5eb975bb9cc3721b792a2aa18f is the first bad commit
commit 61c60b239c0ddc5eb975bb9cc3721b792a2aa18f
Author: Stephen Kelly <steveire at gmail.com>
Date: Wed Mar 12 16:58:03 2014 +0100
QtDialog: Avoid linking to Qt4 WinMain when using Qt 5.
Override the QT_QTMAIN_LIBRARY cache variable with a regular
variable in the Qt 5 configuration. This avoids linking with the
Qt 4 version of the WinMain library.
--
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
More information about the cmake-developers
mailing list