How do i create an shared obejct file from a dll file

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Moose
Level 1
Level 1
Posts: 7
Joined: Sun Dec 18, 2011 7:16 am

How do i create an shared obejct file from a dll file

Post by Moose »

Greetings all

I have now for the past 3 days tried to create an .so file from a windows .dll file so far no luck hence my posting here.

I need to create the file d3d11.dll.so from d3d11.dll
any input would be great.

Please ask for any info that might needed.

Distro is Debian 32-bit

Best regards

PS

I know that DX11 is not supported (yet) but how do i complete the above task please
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

You can't do that without access to the source-code. Furthermore, if you managed to somehow get access to it, it'd be built with Winelib and would have to be run within Wine. A quick search through these forums might give you some more tips on this subject.

Cheers,

Jorl17
Moose
Level 1
Level 1
Posts: 7
Joined: Sun Dec 18, 2011 7:16 am

Post by Moose »

Thanks for your answer Jorl17 i'll keep reading and searching it must be possible somehow :cry:
Moose
Level 1
Level 1
Posts: 7
Joined: Sun Dec 18, 2011 7:16 am

Post by Moose »

i forgot to ask in my last reply, witk sourcecode you mean the windows dll-file sourcecode i assume ?
John Drescher

How do i create an shared obejct file from a dll file

Post by John Drescher »

On Tue, Dec 20, 2011 at 11:20 AM, Moose <[email protected]> wrote:
i forgot to ask in my last reply, witk sourcecode you mean the windows dll-file sourcecode i assume ?
Yes. And it would not be legal if you had the windows sourcecode so we
can't help you with that.

John M. Drescher
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Unless, and this just occurred to me, that you want Wine's d3d11.dll. In that case it already exists in $INSTALL/lib.

Cheers,

Jorl17
Moose
Level 1
Level 1
Posts: 7
Joined: Sun Dec 18, 2011 7:16 am

Post by Moose »

jorl17 wrote:Unless, and this just occurred to me, that you want Wine's d3d11.dll. In that case it already exists in $INSTALL/lib.

Cheers,

Jorl17
Im sure that Wine's d3d11.dll would be enough but i can't find it anywhere also i would think that i still need an corresponding d3d11.dll.so which should be present i the wine source tree like the rest of the ddl files ??

Best Regards
Moose
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How do i create an shared obejct file from a dll file

Post by vitamin »

Moose wrote:I need to create the file d3d11.dll.so from d3d11.dll any input would be great.
That does exactly what?

If you think this somehow will make dx11 work - you are mistaken. If you want to create a "stub" dll that some program of yours trying to load and crashes if it can't find it - don't bother, result would be even worth.
jorl17 wrote:Unless, and this just occurred to me, that you want Wine's d3d11.dll. In that case it already exists in $INSTALL/lib.
No, latest Wine does not have d3d11.dll* anywhere. Please check the source code before making this statements.
Moose
Level 1
Level 1
Posts: 7
Joined: Sun Dec 18, 2011 7:16 am

Re: How do i create an shared obejct file from a dll file

Post by Moose »

vitamin wrote:If you think this somehow will make dx11 work - you are mistaken. If you want to create a "stub" dll that some program of yours trying to load and crashes if it can't find it - don't bother, result would be even worth.
Case: I want to play Battlefield3 on linux the game runs in DX11 mode but do support DX10, so my guess is that if the d3d11.dll and corresponding d3d11.dll.so are present the game will start. as it is now the game dont crash but simply wont start.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

http://appdb.winehq.org/objectManager.p ... &iId=24663 suggests you can get past this problem by symlinking any old fake dll to d3d11.dll, but the game fails on another problem after getting past that.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How do i create an shared obejct file from a dll file

Post by vitamin »

Moose wrote:Case: I want to play Battlefield3 on linux the game runs in DX11 mode but do support DX10, so my guess is that if the d3d11.dll and corresponding d3d11.dll.so are present the game will start. as it is now the game dont crash but simply wont start.
You can't just "magically" implent DX11 or for that matter DX10 with some 1-line shared library. Otherwise Wine would already had something like this.

Yes, you can fake it, and satisfy loader, but that doesn't mean it can work.
Locked