Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting .DLL to .SO

Can any one of you help me in converting an windows dll file in a .so file.

like image 972
Sachin Chourasiya Avatar asked Oct 29 '09 04:10

Sachin Chourasiya


People also ask

Can DLL files be used in Linux?

UNIX doesn't use DLLs. In Linux the corresponding file format is "so" (shared objects) and in Mac OS X it's "dylib" (dynamic libraries) and "bundle".

Can we convert DLL to source code?

You can get your source code from DLL, this process is know as Reverse engineering for that you can use Disassembler like Ildasm. you can surely decompile managed code dll or exe to il using ildasm or other tools.


2 Answers

You might try re-compiling the source code to the dll to a shared object. This may help you get started, after ensuring the code is indeed portable.

Edit:

Here is yet another link that can help guide you through the process of creating a shared library using GCC and other parts of the GNU tool chain. This link will help you to discover pitfalls that other people had when undertaking a project similar to this.

There is only so much help that can be provided for such a specific task, especially with so many unknowns. If you elect to provide more information in your question, please leave a comment.

NB: I'm pulling these links right out of Google.

like image 183
Tim Post Avatar answered Sep 28 '22 00:09

Tim Post


If you don't have the source, or can't recompile, you may be able to run the code under Wine.

like image 20
brianegge Avatar answered Sep 28 '22 01:09

brianegge