[SOLVED] Build 32 bit runs, build 64 bit compiles but crashes at the beginning.
-
Hi.
I have two simple applications.
If compiled with the official 32 bit release ( Qt 5.4, mingw 4.9.1) they do run as expected.
Yesterday I downloaded:
http://sourceforge.net/projects/qtx64/files/qt-creator-x64/3.3.0/qt-creator-3.3.0-x64.exe/download
http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z/downloadand
Yes, my both applications can be compiled in 64 bit mode but they crush right at the start even if started within QtCreator.
Any hints? Try a different version of mingw-4.9? That with SJLJ?
"A new GDB package for the TDM64 edition has been released, fixing an undesired libiconv-2.dll linkage that was causing 0x7b errors and adding python27.dll which was mistakenly omitted."? Maybe, this?
-
Hi,
See http://qt-project.org/wiki/MinGW -- the official Qt 5.4 was built for pthread (not Win32-thread) and DWARF (not SEH or SJLJ).
[quote author="sirop" date="1424398085"]Yes, my both applications can be compiled in 64 bit mode but they crush right at the start even if started within QtCreator.[/quote]I'm not familiar with the details, but I'm guessing that the different versions of MinGW are not compatible.
So, if you want to use a non-official version of MinGW, you must also rebuild Qt using your version of MinGW.
-
I used this non official build
http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/downloadIt is SEH and 64 bit.
-
[quote author="sirop" date="1424410055"]I used this non official build
http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/downloadIt is SEH and 64 bit.[/quote]Like I said, you must first use your version of MinGW to build the Qt libraries. Then, you can build your program and link it against your unofficial version of Qt.
-
What about the link I posted?
A re these not prebuilt libraries? -
Ah sorry, I misread your posts.
Your compiler and Qt libraries need to be compatible.
http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/ says that it uses POSIX threading. That might be causing your crashes.
Anyway, the page also says "Installer contains compiler". It's best to use that, instead of downloading from a different SourceForge project.
-
I got a bit further using
http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/downloadSo now I can start my app from within QtCreator.
But if trying to start from within release directory, it crashes with some 0x***7 error.
Dependency Walker yields:
!http://www11.pic-upload.de/20.02.15/rshp3jg9zri2.png(Dependency Walker Output)!I searched a little bit: this problem already came up, but
I did not find any final solution for that. -
[quote author="sirop" date="1424427294"]So now I can start my app from within QtCreator.
But if trying to start from within release directory, it crashes with some 0x***7 error.[/quote]Did you deploy your DLLs correctly? http://qt-project.org/wiki/Deploy_an_Application_on_Windows
Make sure you get the correct version of the DLLs -- do not take them from the Qt Creator folder.
[quote author="sirop" date="1424427294"]Dependency Walker yields:
!http://www11.pic-upload.de/20.02.15/rshp3jg9zri2.png(Dependency Walker Output)!
[/quote]You can ignore API_MS_WIN[X]_ errors. They are false positives. -
You were right about false positives.
I used for the second try a more or less clean machine,
downloaded
http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/downloadUsed then QtCreator 32 bit.
Before compiling I set all paths with qtbinpatcher.exe the author of this Qt 64
made for adjusting the installation paths.Then I set and checked all the project paths, compiled , added the necessary dll's to the build directory and yes, at least a simple console app starts and runs.
Thank you for your hints.
I set the theme to SOLVED.
-
Great! Happy coding :)