Installing DirectX in Wine

Discussion in 'Mac and PC Games' started by EdTheGreat, Aug 12, 2010.

  1. EdTheGreat macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    Searsport, ME
    #1
    I got Wine for my MacBook because I was tired of always having to use Windows to play my favorite games, most of which require DirectX. But I can't install DirectX in Wine! Any help will be greatly appreciated.
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Did you get the free WineBottler? If you did, use winetricks to install any DirectX runtimes.
     
  3. EdTheGreat thread starter macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    Searsport, ME
    #3
    Ok...

    Tried! And a dialog popped up saying "Prefix creation ended with error." What the heck is a prefix, and why does this happen every time I use it?

    HELP PLEASE?
     
  4. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    You didn't create a prefix for Wine files to live in first. You need to do that BEFORE installing DirectX. This is easy enough with WineBottler:
    1. Go to the Wine menulet.
    2. Choose Change Prefix...
    3. Click New
    4. Choose where it should go and what to name it
    5. Click OK
    6. Wait while Wine initializes the new prefix to default settings
     
  5. EdTheGreat thread starter macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    Searsport, ME
  6. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    Once that's done, activate your new prefix by clicking its name in the Change Prefix dialog. Then, install the DirectX runtime as usual.
     
  7. EdTheGreat thread starter macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    Searsport, ME
  8. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #8
    Looks like the d3dx9 entry in the Winetricks dialog is the one you want.
     
  9. doh123 macrumors 65816

    Joined:
    Dec 28, 2009
    #9
    Wine has its own directX implementation. Installing MS DirectX is not a good idea ad can actually break things or make things run worse. It can help with some games, but you shouldn't do it unless the game will not work without it... that doesn't mean the game says it wants directx that you should install it... you should only install it if, and only if the directX in Wine is not working right.

    Installing d3dx9 is just using a few dll files from DX9, not installing all of directX... do it if you game errors related to those specific dlls. Most games will run better without MS DirectX 9 installed than with it.
     
  10. stockypeasant macrumors newbie

    Joined:
    Sep 12, 2010
    #10
    is installing the directx prefix in wine/winebottler the same as installing a ."msi"prefix?

    if so, i am having trouble running a file with a ".msi" (microsoft installer) prefix.
     
  11. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #11
    No. MSI files DO work in the Wine environment, but you normally have to invoke them via the Wine Command Prompt, not by double-clicking.

    This is the command to use:
    Code:
    msiexec /i drive:\path\to\msi\file
    For example, if you put the installer file in a folder called Installers inside the prefix's virtual C drive, and it is called setup.msi, then the command to invoke it is:
    Code:
    msiexec /i C:\Installers\setup.msi
    ... just like in Windows.
     
  12. stockypeasant macrumors newbie

    Joined:
    Sep 12, 2010
    #12

    thanks for this clarification!

    in this case would i need to create a new prefix virtual drive? or is there one already created? i noticed in winebottler one can create a new virtual drive depending on the prefix, but i am uncertain if the ".msi" is native.


    regardless thank you for your guidance
     
  13. stockypeasant macrumors newbie

    Joined:
    Sep 12, 2010
    #13
    @wrldwzrd89 type the wine commands in the "wine" command prompt or type the "wine" commands in mac os x terminal?
     
  14. AnonMac50 macrumors 65816

    Joined:
    Mar 24, 2010
    #14
    I think he means the Wine Command Prompt, not the Terminal prompt.
     
  15. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #15
    Yes, you need to create a prefix first.
    Wine Command Prompt, NOT the Terminal.
    You are correct.
     
  16. Ace134blue macrumors 6502a

    Ace134blue

    Joined:
    Sep 17, 2009
    #16
    Your not supposed to install DX9/10/ because its already in wine. It also clearly states to NOT install DX because it will fu** it up.
     
  17. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #17
    Yes, DirectX is already in Wine, BUT the Wine implementation is a bit lacking in some areas. This is why winetricks allows installation of various DLLs to make up for the missing functionality.
     
  18. doh123 macrumors 65816

    Joined:
    Dec 28, 2009
    #18
    start.exe (part of Wine) will run msi files as well as .bat or any file type that has an associated installed program for (like a .txt will open in notepad).

    You can just do like...
    wine start /unix "/path/to/my/program/exectuble.msi"

    If you use Wineskin, I have a built in option when you select the file to run to use start.exe if you need/want to.
     
  19. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #19
    Thanks, I did not know about that little program. That will make my Wine experience easier. :D
     
  20. Gravedigger 212 macrumors newbie

    Joined:
    Oct 13, 2013
    #20
    winebottler

    how do i do that?????????
     
  21. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #21
    Start Wine by clicking it in the Applications folder, once it's installed. Then follow the directions you quoted. Wine / WineBottler can be downloaded here: http://winebottler.kronenberg.org/
     
  22. BigBuce macrumors newbie

    Joined:
    Sep 22, 2015
    #22
    Can someone post a guide with pictures because Im trying to play Rivals of aether and Im having the same trouble with Winebottler/Directx as he is ^
     
  23. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
  24. BigBuce macrumors newbie

    Joined:
    Sep 22, 2015
    #24
    OMG thats perfect, how do I "select" my directx file? I double clicked it and it just told me it was being changed?
     
  25. BigBuce macrumors newbie

    Joined:
    Sep 22, 2015
    #25
    Ugh I did the wine trick and it still didn't work
     

Share This Page