#importing .so file in vscode
38 messages ยท Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
You aren't supposed to copy and link libraries built for other platforms
If you're trying to use some commonly available library then just install it with the package manager
It's a custom library. So you're saying it will probably work if I move out of Ubuntu and into an aarch64 build?
I can post a few screenshots in a bit when I get home
Pretty custom. But when I look at what it actually is it just looks like definitions to me
If it's text it's not an .so file
What library is it and how do you know it's not available as a normal package
It's a modified wpa_supplicant.
It's not a text file....it's an so
Why did you mention definitions
Anyway you should just compile the modified version locally
Bad use of verbage. Gimme one sec
Ok
Would a screenshot of the readelf help at all?
Or at least help in pointing in the direction i need to go
Like when you say compile the modified version locally.....im not sure whats been modified in it aside from the results of read elf
Is there a way i can use this current so to recompile for the project?
step 1 would be understanding what the problem actually is
This is the error. He explained why im getting it.....the .so file isnt compatible with this architecture.....Which is reasonable since im trying to compile an aarch64 file in ubuntu. I get that even though im using the aarch compiler. My new question is......how do i go about actually using the shared library thats been made or recompiling just the library
what system are you compiling for?
where did you get this .so?
to recompile the library, you will need its source code
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
Im an idiot lol. Turns out.....it was just a linked library that wasnt actually installed on Ubuntu by default......so i THOUGHT it was completely custom. Whoops
k ^^
Tadaaa
๐
maybe compile the library for your platform if you have access to the source code, or simply compile your code to that available platform
What I said in my first 2 comments