Skip to content
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

Issue in libyang cross compilation #2247

Open
ChinmayaAgarwal opened this issue May 30, 2024 · 1 comment
Open

Issue in libyang cross compilation #2247

ChinmayaAgarwal opened this issue May 30, 2024 · 1 comment
Labels
is:question Issue is actually a question.

Comments

@ChinmayaAgarwal
Copy link

Hi,

We are trying to cross-compile libyang 2.1.128 using custom toolchain and sysroot where we are facing issue with build not able to find PCRE2_LIBRARY

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find PCRE2 (missing: PCRE2_LIBRARY) (Required is at least version
"10.21")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindPCRE2.cmake:63 (find_package_handle_standard_args)
CMakeLists.txt:405 (find_package)

What are the ways include PCRE2_LIBRARY ?

Thanks and Regards,
Chinmaya Agarwal

@jktjkt
Copy link
Contributor

jktjkt commented May 30, 2024

I strongly suggest to use some existing, well-working tool for cross compilation such as Buildroot. Simply add a package/library there. You suggest that you're using some pre-existing sysroot; just make sure that CMake is aware of that sysroot and that the sysroot has pcre2 available.

@michalvasko michalvasko added the is:question Issue is actually a question. label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

3 participants