Closed simon987 closed 4 years ago
Note:
nm /mnt/disk/vcpkg/installed/arm64-linux/debug/lib/libpng16d.a | grep _neon
U png_do_expand_palette_rgb8_neon
U png_do_expand_palette_rgba8_neon
U png_riffle_palette_neon
U png_init_filter_functions_neon
This is not usual scenario we're working on now, but we accept PRs for fixing this issue. Sorry for that.
If I manually build libpng I don't get this error:
git clone https://github.com/glennrp/libpng
cd libpng
cmake .
make
cp -r libpng16.a /mnt/disk/vcpkg/installed/arm64-linux/debug/lib/libpng16d.a
cp -r libpng16.a /mnt/disk/vcpkg/installed/arm64-linux/lib/libpng16.a
vcpkg install tesseract # works
Do you have any clue/pointers in what ways vcpkg builds the library differently to cause it to not include the arm/*
functions?
I'll take a look this issue. @PhoebeHui you can assign arm64-linux/arm-linux build issues to me if your team doesn't have time to work on it.
Awesome! Thank you so much @xieyubo :heart: !
Thank you @xieyubo! I assigned this issue to you.
This issue should be fixed by commit 27a2418e91179d8607862348d7b498558e98a0ab. @PhoebeHui you can close this now.
Host Environment
./vcpkg install tesseract
Failure logs
Tail of
vcpkg/buildtrees/tesseract/install-arm64-linux-dbg-out.log
:Additional context It looks like libpng failed to detect that NEON instructions are available and compiled without those
*_neon
functions?Or is it possible that it's linking to the system libraries (I haveVCPKG_FORCE_SYSTEM_BINARIES=on
) and they are not compiled with those functions?If a maintainer wants to test the issue, I can provide credentials to an arm64 AWS machine with that behavior (email me me@simon987.net)