[Interest] qmake on Windows producing odd library names
Phil Hannent
phil at hannent.co.uk
Mon Jul 15 14:42:19 CEST 2013
Hi,
I've recently downloaded Qt 5.1.0 and am attempting to build a project of
mine on a Windows 7 PC using QtCreator. The problem is that I cannot
compile the application because it cannot find the library's to link
against:
c:/qt/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lQt5Widgets510
c:/qt/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lQt5Gui510
c:/qt/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe:
cannot find -lQt5Core510
collect2.exe: error: ld returned 1 exit status
However the Makefile (generated by qmake) has the incorrect library name as
Qt5Core510 which should be just Qt5Core. Where is the extra version number
being set?
LIBS = -lglu32 -lopengl32 -lgdi32 -luser32
-LC:\dev\win32-dev\gtk-2.24.10\lib -LC:\dev\pidgin-main\libpurple
-LC:\dev\pidgin-main\libpurple
-LC:\Qt\Qt5.1.0-mingw32\5.1.0-beta1\mingw47_32\lib
-LC:\Qt\Qt5.1.0-mingw32\5.1.0-beta1\mingw47_32\bin -llibpurple -lglib-2.0
-lgmodule-2.0 -LC:\Qt\\5.1.0\mingw48_32\lib -lQt5Widgets510
-LC:\Qt\\5.1.0\mingw48_32\lib -lQt5Gui510 -LC:\Qt\\5.1.0\mingw48_32\lib
-lQt5Core510
Regards
Phil Hannent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130715/bb065f6a/attachment.html>
More information about the Interest
mailing list