[UPDATED] - Fixes compilation issues, supercedes previous PRs.#93
[UPDATED] - Fixes compilation issues, supercedes previous PRs.#93themrrobert wants to merge 4 commits intoIsarhamster:masterfrom
Conversation
The file main.cpp includes mainwindow.h without USE_SOUND being defined. If USE_SOUND is defined when building mainwindow.cpp they'll get linked with different sized MainWindow classes. main.cpp will then allocate less than enough space for MainWindow causing it to segfault.
| @@ -0,0 +1,58 @@ | |||
| #ifndef QT6COMPAT_H | |||
There was a problem hiding this comment.
This file is a duplicate of src/gui/qt6compat.h.
|
I still get compile errors with this PR And |
Forgot mentioning |
|
What are you running to get these results? Try |
@limitedAtonement @Isarhamster I can confirm this patch fixes current compilation issues: With current master 183e7e7 there is a compilation error that interrupts on the Polyglot source. With this patch at d475990 compilation is succesful, when using Qt6, as indicated by @limitedAtonement above. I suggest this patch be given high priority Tested on |
Thanks for your help compiling. I was attempting to build with Qt5 and this does NOT longer work. Qt6 is now required. |
|
I don't know if this PR is necessary anymore. I got successful compilation of the master branch with qmake6, as shown with the code in the comment above, on commit 83783a5 [Again, compiling test was on linux] Regards |
|
@limitedAtonement @Isarhamster Howerver the changes in this pull request on the file Since the software now requires Qt6 and the commands as shown in the update here, |
that doesn't work. There is no
I can make and run the project, and everything looks good. I agree that the documentation needs updated to reflect that this is a qt6 project. |
yes, my typo. indeed |
Description:
This builds on the fantastic work of @additional-pumpkin,
Supercedes / Closes PR #90 and PR #91
Changes:
std:__binary_functiontemplate, as that is now handled entirely by the compiler as of C++17.Details:
I haven't messed with QT programming, or Windows linking/ABI in many years, so I could have missed something, but it was looking for extern's that didn't exist in the zlib libraries. (quazipfile.o was referencing
__imp_z_gzflush,__imp_z_gzread,__imp_z_gzwrite, etc, that I couldn't find anywhere usingdumpbin /symbolsWorth noting I tried first without installing external zlib, and also with external zlib, same problem, and the external zlib build didn't have the referenced implementation functions, either.
Notes:
The INSTALL.md file needs additional updates. Currently, (at least) C++17 is required at minimum to build all requirements, however C++20 is specified in the build deps per PR #90, so I'll defer to the maintainer on how to update the remainder of the file.