-
Notifications
You must be signed in to change notification settings - Fork 212
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
Add libclang.so to SDK #961
Comments
With the original question I want to find out if I am doing something stupidly wrong when using meta-clang or if I have a misunderstanding what the difference is between For everyone who needs a hacky workaround solution I want to share my hack. Basically I have an extra recipe which copies
Not nice, but gets the job done. A clean solution is still appreciated 😄 |
yeah this is perhaps not the best, however, can you share what is the contents of images/ folder inside nativesdk-clang build area. I wonder if this file is getting lost during |
Sure, so I set up a clean poky build following the README from meta-clang:
Here is the folder content (shortened by removing *.h, *.py and *.a files):
It seems that the Side note, while above listings are from master branch, I originally found this on langdale branch (clang 15.0.6). |
what does |
With |
@Hollingsworth-martin-bl since libclang is packaged into a package of its own, it needs to be added explicitly in order for it to be included into SDK as SDK host part. Something like below in
to get libclang.so ( the dev symlink ) into host part of SDK then you also need to add HOWEVER, I wonder why are you needing libraries on SDK host and specifically dev packages e.g. libclang.so, It would make sense if you asked for including the target clang and libclang, since I would expect that normally on SDKs here since they are cross SDKs. So if you clarify your usecase a bit perhaps it can help us to understand the situation a bit better. |
Can confirm that this works. Thanks for the solution and for helping where I overlooked this obvious part from the
My use case is to cross compile a software package written in RUST. The package has a dependency to cargo crate Thank you for offering your help, but I think this usecase goes so far, that I cannot ask your time on that. I wanted to document it however here, that others hitting this roadblock with Yocto SDK and RUST can find it. |
You could try to build and add nativesdk version of bindgen-cli recipe, I think the recipe only provides native and target variants as of now so it has to be BBCLASSEXTEND'ed to |
When Adding clang in generated SDK toolchain following the README guide, in the x86_64 sysroot only
libclang-cpp.so
is added to the lib directory.My application wants to link against
libclang.so
. How do I add it this as well to the SDK?The text was updated successfully, but these errors were encountered: