Hello,

I am trying to use Qt but I get linker errors. I installed the 
mingw64/mingw-w64-x86_64-qt5-static package. Is that sufficient to build 
a basic hello word application?

The hello word program is this one:
***
#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
{
     QApplication app(argc, argv);

     QPushButton hello("Hello world!");

     hello.show();
     return app.exec();
}
***

I had to add "QT += widgets" to my QtHello.pro to successfully compile 
with the generated Makefile, but I now have linker errors...
***
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -ldbus-1
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -ljasper
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -lwebp
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -lsicuind
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -lsicuucd
D:/Prog/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_6
4-w64-mingw32/bin/ld.exe: cannot find -lsicudtd
Makefile.Debug:64: recipe for target 'debug\QtHello.exe' failed
***
I am not sure I have installed all that I need.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to