how to fix QT5.3 &&QT5.7 complier difference
-
@jsulm
depend libs:
QT5CORED.DLL
QT5GUID.DLL
QT5MULTIMDEIA.DLL
QT5NETWORK.DLL
QT5MULTIMDEIAWIDGETSD.DLL
QT5SERIALPORTD.DLL
QT5WIDGETSD.DLL
QT5XMLD.DLL
QT5XMLPATTERNSD.DLL
LIBGCC_S_DW2-1.DLL
KERNEL32.dll
MSVCRT.DLL
LIBWINPTHREAD-1.DLL
USER32.DLLLIBSTDC++-6.DLL -
@JiujiuTong Again: why do you have this:
D:\Qt\4.8.6\bin\libgcc_s_dw2-1.dll D:\Qt\4.8.6\bin\libwinpthread-1.dll D:\Qt\4.8.6\bin\libstdc++-6.dll
Those are most probably built using an older GCC version and are probably the reason for the crash.
-
@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.