how to fix QT5.3 &&QT5.7 complier difference
-
@JiujiuTong "QT5.3 compiler with mingw53_32,no compiler error ,but the App can't startup with an error code" - actually this cannot work, as your Qt 5.3 is built with older MinGW version. You cannot mix binaries built with different compilers.
-
@JiujiuTong You should not add Qt to PATH if you have more than one version of it.
-
@JiujiuTong Did you rebuild your project?
And as I said: your Qt 5.3 is built using an older MinGW as you're now using to build your project - this is not going to work. -
@JiujiuTong said in how to fix QT5.3 &&QT5.7 complier difference:
@jsulm
yes, i rebuild them, a litter different, the windbg can't startup the program, error qt5guid.dll is missingtips that the all depend qt5*.dll are missing.
if we can't do this, how can i fix the error:
D:\Users\tong\Documents\FMT_L\png.h:506: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_const_structrp'
typedef const png_struct * PNG_RESTRICT png_const_structrp;
^
D:\Users\tong\Documents\FMT_L\png.h:507: error: expected '=', ',', ';', 'asm' or 'attribute' before 'png_inforp'
typedef png_info * PNG_RESTRICT png_inforp;
^
...
D:\Users\tong\Documents\FMT_L\png.h:941: error: unknown type name 'png_structrp'
PNG_EXPORT(2, void, png_set_sig_bytes, (png_structrp png_ptr, int num_bytes)); -
@JiujiuTong Actually you should fix your Qt 5.7 issues with Raspberry Pi. Qt 5.3 is quite old. You can try Qt 5.8.