-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[tesseract:arm64-linux] build failure #13395
Comments
Note:
|
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 |
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. |
…o _csc_OPTIONS to fix issue microsoft#13395. Root cause: In script mode, cmake won't populate CMAKE_SYSTEM_PROCESSOR parameter automatically. That parameter is required by libpng to configure build parameters. To fix this issue, we need explicitly pass that parameter via _csc_OPTIONS. Verify: On arm64-linux and arm-linux host, run `./vcpkg install tesseract:arm64-linux` and `./vcpkg install tesseract:arm-linux`.
Awesome! Thank you so much @xieyubo ❤️ ! |
Thank you @xieyubo! I assigned this issue to you. |
…E is arm or arm64. This change tries to fix issue microsoft#13395. Root cause: In script mode, cmake won't populate CMAKE_SYSTEM_PROCESSOR parameter automatically. That parameter is required by libpng to configure build parameters. To fix this issue, we need explicitly set CMAKE_SYSTEM_PROCESSOR value. Verify: On arm64-linux host, run `./vcpkg install tesseract:arm64-linux`.
…E is arm or arm64. (#13465) This change tries to fix issue #13395. Root cause: In script mode, cmake won't populate CMAKE_SYSTEM_PROCESSOR parameter automatically. That parameter is required by libpng to configure build parameters. To fix this issue, we need explicitly set CMAKE_SYSTEM_PROCESSOR value. Verify: On arm64-linux host, run `./vcpkg install tesseract:arm64-linux`.
This issue should be fixed by commit 27a2418. @PhoebeHui you can close this now. |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./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 [email protected])
The text was updated successfully, but these errors were encountered: