dlls. any way to convert or "wrap" them using win

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
legitimusmaximus
Newbie
Newbie
Posts: 4
Joined: Mon Aug 23, 2010 9:05 am

dlls. any way to convert or "wrap" them using win

Post by legitimusmaximus »

Hello. I am working to make Linux ports of a couple of games that were made using AGS (adventure game studio). there's a linux engine for running games to use to port them and I am very close getting 2 of them working. However, one of them uses a few additional plugins, in dll format. Since linux is not compatible with dlls this causes the game to crash before it even starts up. I cannot get the source files for any of these plugins.


SO the real question here is... Can Wine be used to wrap dll files and make them linux compatible? Obviously once I got that far, some further modification would need to be done to the binaries for running the games, but this is what I am worrying about for now.

thank you.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: dlls. any way to convert or "wrap" them using

Post by vitamin »

legitimusmaximus wrote:SO the real question here is... Can Wine be used to wrap dll files and make them linux compatible?
Short answer: Not in the way you want it. You'll need the entire Wine to work as a "wrapper".

Long answer: There are lots of things required by most dlls. All those things is what makes Wine. You can't pull only one piece of it, because they are all connected. Just loading dll is easy. But making it work, and providing all the functions it might call - hard.
legitimusmaximus
Newbie
Newbie
Posts: 4
Joined: Mon Aug 23, 2010 9:05 am

Post by legitimusmaximus »

The answer I was expecting.

Thank you anyway. The next option would be to aquire the game's source files and replace the plugins/parts that use the plugins to make them compatible with linux using modules. that is a totally different thing though.

thank you for that information.
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Depending on how the game is written you might get away with recompiling your game engine using winegcc/wineg++ ('winelib') instead of plain gcc/g++. The game obviously depend on Wine but you can mix Linux and win32 code that way, so the engine can still use Linux libraries like SDL, X11 or whatever you need. This would only work if the closed source dlls are 'well behaving' else you would also need the win32 gui and the other real win32 parts.
Locked