#importing .so file in vscode

38 messages ยท Page 1 of 1 (latest)

lilac prairie
#

Started compiling a c++ program and was hit with an error adding symbols, file in wrong format when linking .so file. The so was compiled in aarch64 and I'm also running vscode on Ubuntu with the aarch64 compiler.... Any ideas?

kindred ingotBOT
#

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.

distant flax
#

we're gonna need more info

#

what exactly are you doing? what error do you get?

jolly marsh
#

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

lilac prairie
jolly marsh
#

What you need to do is recompile it from source

#

How custom is it

lilac prairie
lilac prairie
jolly marsh
#

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

lilac prairie
#

It's a modified wpa_supplicant.

It's not a text file....it's an so

jolly marsh
#

Why did you mention definitions

#

Anyway you should just compile the modified version locally

lilac prairie
#

Bad use of verbage. Gimme one sec

jolly marsh
#

Ok

lilac prairie
#

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?

distant flax
#

step 1 would be understanding what the problem actually is

lilac prairie
# distant flax 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

distant flax
#

what system are you compiling for?

#

where did you get this .so?

#

to recompile the library, you will need its source code

lilac prairie
#

Gotcha

#

Ooop. Nope. Actually i figured it out =] thanks guys

kindred ingotBOT
#

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

distant flax
#

so what was the issue?

#

wrong compiler? ๐Ÿ˜›

lilac prairie
distant flax
#

k ^^

lilac prairie
#

Tadaaa

distant flax
#

๐Ÿ‘

compact spruce
jolly marsh