I have a very very old linux library, and I can't get the code to recompile that library on Windows. So, I'm looking for a method to load this library on a Windows Program.
I found the section "5 Building Winelib DLLs". Is this applicable just for applications running on Wine, or can I use it on an application running on Windows?
The library does not require external linux libraries, but this .so library can load it's own .so libraries (I have them) and the path of those libraries are saved in a .ini file that must be located in the same directory as the main ".so" lib.
I know, I could use WSL2 and write a bridge to communicate the library with the program in windows (I got good results using that method) but that involves a lot of steps that are not easy to follow for final users.
So, I'm researching for a way to run a ".so" library on Windows using the easiest way for the final user.
P.S. Sorry, I was unable to find the best place to write this post.
Can I call ".so" lib using Winelib on a native Windows Program?
-
- Level 4
- Posts: 149
- Joined: Mon Jun 02, 2008 5:03 pm
Re: Can I call ".so" lib using Winelib on a native Windows Program?
It's not possible with Winelib.
You would essentially need the reverse of what Wine does - instead of a PE loader on Linux, you need an ELF loader on Windows, as well as replacements for whatever APIs the .so uses. It sounds possible to me, but I don't know of any project that does it.
You would essentially need the reverse of what Wine does - instead of a PE loader on Linux, you need an ELF loader on Windows, as well as replacements for whatever APIs the .so uses. It sounds possible to me, but I don't know of any project that does it.