Mingw linker cannot find correct Qt libraries

207 views
Skip to first unread message

Bill Smith

unread,
Sep 22, 2014, 12:36:20 AM9/22/14
to harbou...@googlegroups.com

Am attempting to use QT with harbour.  Have installed:

harbour-nightly-win.exe   (mingw32)

QtContribs_Mingw-482_Qt-530_r313_Setup

Qt-opensource-windows-X86-mingw482_opengl-5.3.1

 

Everything ‘should’ be 32bit, though I suspect otherwise. The installed lib files are

 

Libhbqtcore.a

libQt5Core.a

libhbqtgui.a

libQt5Gui.a

libQt5Widgets.a

libQt5PrintSupport.a

 

Attempting to compile an example simple widow yields:

 

…\hbide\alarm>hbmk2 -w3 alarm.prg D:\hb32qt\addons\hbqt\qtgui\hbqtgui.hbc

uic 5.3.0

 

...i686-w64-mingw32/bin/ld.exe: cannot find -lhbqtcore

…i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Core

…i686-w64-mingw32/bin/ld.exe: cannot find -lhbqtgui

…i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Gui

…i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Widgets

…i686-w64-mingw32/bin/ld.exe: cannot find -lQt5PrintSupport

 

Suggestions welcome.

Bill

 

Pritpal Bedi

unread,
Sep 22, 2014, 1:27:20 AM9/22/14
to harbou...@googlegroups.com, hb...@hbco.co
Hello Smith


Am attempting to use QT with harbour. 


Welcome onboard, hope you will find HbQt useful.

 

harbour-nightly-win.exe   (mingw32)


This will not go with QtContribs r313.

QtContribs is self contained installer including Harbour 
binaries together with Qt binaries and libs. The reason that 
you cannot use Harbour nightly is that Harbour is still compiled with 
MinGW 4.6 whereas HbQt is compiled with MinGW 4.8. 
Unless you decide to compile Harbour yourself with MinGW 
stick with only QtContribs installer.

And unless you are ready to compile HbQt youself, you do not 
need to have Qt installation at your machine. QtContribs 
installer contains all the binaries required to develop and ship 
your application for Windows targets. For any other target, i.e.,
Linux, Mac, Android, you will have to compile Harbour, QtContribs 
yourself which will require you to have all components in place.


QtContribs_Mingw-482_Qt-530_r313_Setup

 
Ok.


Qt-opensource-windows-X86-mingw482_opengl-5.3.1


As said above, you do not need to have it installed.
And I suggest you should not  because you has referred 
Harbour nightly above which means you are not geared 
up to compile Harbour yourselves.
 
  

Everything ‘should’ be 32bit, though I suspect otherwise. The installed lib files are


Rest everything be determined what I explained above.


Pritpal Bedi
a student of software analysis & concepts
Reply all
Reply to author
Forward
0 new messages