-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PDFWriter to 4.6.7 #411
Conversation
@galkahana any ideas what am i doing wrong? |
If im reading the error messages right then it seems like theres a conflict in linking the freetype dll. Both freetype and zlib define flate/inflate method. This probably has to do with the addition of zlib as dependency without the removal of the gzip code (im seeing only in this pr and not in either earlier code or other similar sources - hummusjs or pdfwriter). I think you have to choose one or another. Id like to form a verified response but on vacation. Be back home in a week and i can run some checks. |
ok i thought its possible through the new system that the freetype lib chooses hummus:zlib which uses zlib lib. but couldnt get it to work. also Z_PREFIX had no effect (i may have needed to unset it from zlib to not have the same prefix) |
libtiff has an issue here with: https://gitlab.com/libtiff/libtiff/-/issues/622 |
You should be able to correct this problem by adding a define symbol FT_CONFIG_OPTION_SYSTEM_ZLIB=1 to src/deps/FreeType/binding.gyp. this should make the builds work, but i think that due to a recent upgrade of the internal tiff library - galkahana/PDF-Writer#227 - 32 bit is sort of not supported anymore...at least for tiff images, and so it might mean that ia32 archs will fail testing (that is...probably). maybe remove them? if makes sense. |
ok, might be i have a solution for the tests failing on tiff. |
Awesome |
ok. seems to build and run well. solution to tiff is to allow defining libtiff SIZEOF_SIZE_T as 4 for target_arch ia32. this combines allowing the override of the symbol in tif_config.h, like here and adding a conditional symbol with the right value (4) for target arch 32 in the respective binding.gyp, |
See: https://github.com/galkahana/PDF-Writer/releases/tag/v4.6.7 Fixes #410 # Conflicts: # CHANGELOG.md
This reverts commit 727a563.
This reverts commit 138b3c1.
5af062a
to
73d1bb0
Compare
This reverts commit 3e93e4c.
@galkahana any ideas why tiff Tests failing for musl and electron or why one encrypt Stream Test fails? |
oh my. well i guess there's some tiff flags to tune for those failing builds [if we're lucky it's the same issue, less lucky...several]. it's not the same as what i corrected with the 32 bits in that only one of the tests failed then and only on particular tiffs that had a particular compression...but it's probably along those lines of this and that count of bytes per some type. i'll have to sit and figure this out. i'll try to find some time this weekend. |
ok, figured out the tiff issues part. [i mean...still to run the workflows but im fairly optimistic] |
seems like the builds completed well: |
See: https://github.com/galkahana/PDF-Writer/releases/tag/v4.6.7
Fixes #410