Open JayFoxRox opened 6 years ago
Skimming over the GLC_lib code, it's possible that this is a linker issue.
GLC_lib compiles zlib itself, so it probably exposes the same symbols. So when the dynamic linker searches for zlib (when Qt5 / libpng asks), it might also find the exports from GLC_lib, which might result in Qt5 / libpng using those calls - regardless of the version it was build for. This is very poor software design in general - if you want to use zlib, you should build it normally and then link statically against it. Here it is just Frankenstein-ed together by adding all source and header files to the build process..
have you managed to have it compile and run from the "next branch"?
The png files in the "next" branch, are.. weird. They look fine in all my image viewers and browser. However, they crash GLC_Player for me.
I'm running Arch Linux with "libpng 1.6.34-2", "zlib 1:1.2.11-2" and "qt5-base 5.10.1-8". I'm running GLC_lib Version_3_0_1 from your GitHub repo.
When running GLC_Player on master I get a crash like this:
I can solve this issue by running imagemagick like this in "ressources/images/":
However, even then, I still get an error for (presumably) "ressources/images/3DXMLDefaultPreview.png":
I have not had any other Qt5 / libpng / zlib issues with my system yet. So I think this is either a problem with these files, or incompatible versions / headers / code. I have previously only patched a subset of the files and GLC_Player will run but the images are not displayed in the toolbars etc.
I actually get another error when opening a "File open" dialog:
So I assume this is an issue with libpng / zlib somehow.. but it only seems to happen in GLC_Player / GLC_lib