box86 icon indicating copy to clipboard operation
box86 copied to clipboard

Development ?

Open jhay06 opened this issue 3 years ago • 3 comments

Can i use box86 userspace to call x86 library within my app

example im developing apps for armhf , then there's a library that i need but its only available for x86 not on armhf .

is there any way i can call box86 header to call that library ?

jhay06 avatar Oct 24 '22 03:10 jhay06

then there's a library that i need but its only available for x86 not on armhf

you mean as a package ?

paulwratt avatar Oct 24 '22 04:10 paulwratt

no , what i mean is that i want to load .so library on my c++ project for armhf for example. but this .so library was built only for x86 , we know that we can load .so using dlopen . but we can't load .so that was built with different arch. so what im thinking is, if i can use box86 to help my project to load .so (maybe box86.so library then a folder for headers) library that was built only for x86 ? is this possible?

jhay06 avatar Oct 24 '22 05:10 jhay06

is that a c++ library or or a C one (only the library interface is important). If it's a C one, there might be a possibility yes. If it's a c++ one, forget it, the VTable makes everything very complicated.

ptitSeb avatar Oct 24 '22 06:10 ptitSeb