tmcroan / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
0 stars 0 forks source link

"no driver could be loaded" on all wine commands I've tried #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I ran the installation script yesterday and everything seemed to go fine. At 
that time all the commands I tried (winecfg, iexplore, explorer) worked okay. 
The only change I've made was to run "sh winetricks corefonts allfonts tahoma 
gecko gecko-dbg vcrun2005" in order to get Valve's steam running. This also 
initially worked (I was able to access the Steam store).

Now all the wine commands I try return an error like this:

Nicholas-Lowerys-MacBook-Pro:~ nlowery$ wine winecfg
Application tried to create a window, but no driver could be loaded.
Unknown error (998).
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Unknown error (998).

I'm running Mac OS 10.6.4 on a MacBook Pro(7,1).

Any help is much appreciated!

Original issue reported on code.google.com by nicholas.lowery@gmail.com on 29 Oct 2010 at 7:25

GoogleCodeExporter commented 8 years ago
Nicholas,

The "no driver could be loaded" issue is generally due to permission/ownership 
mismatches or a problem with X11 interaction.  If you've installed programs 
with Wine as another user account, or with root, these issues occasionally pop 
up.

What does "wine --version" output?

Did you run the build script or winetricks installs under a different user 
account?  Is the X server running as your user?  Have you installed anything 
via Steam?  If not, try to kill your Wine prefix directory (which defaults to 
/User/username/.wine), recreate the default prefix by running the built-in 
browser and re-install Steam and some nice fonts with:

**
mv ~/.wine ~/.wine.old
wine iexplore 
winetricks allfonts fontfix fontsmooth-rgb
winetricks sound=coreaudio
winetricks steam
**

There is no need to install Gecko as the build script should install the 
correct Gecko package for the version of Wine it's building.  The build script 
also grabs winetricks for you and puts it in the same path as Wine.

Also note that you'll need to use XQuartz 
(http://xquartz.macosforge.org/trac/wiki) if you need decent performance.  If 
you're not using XQuartz, I'd recommend installing it, rebooting (or at least 
logging out/back in) and rebuilding Wine against XQuartz using the build script.

Full-screen games have issues on Mac OS X as well; you'll need to run "wine 
winecfg" and set up a virtual desktop in the Graphics tab to set the proper 
window size.

My work laptop is a MacBook Pro(5,5) - the previous 13" MBP with Nvidia 9400M 
graphics - and Wine works well there.  It should work for you, let me know your 
progress and if there's anything I can help you with!

-ryan

Original comment by rwoodsm...@gmail.com on 29 Oct 2010 at 8:48

GoogleCodeExporter commented 8 years ago

Original comment by rwoodsm...@gmail.com on 29 Oct 2010 at 8:48

GoogleCodeExporter commented 8 years ago
Thanks for the ideas!

"wine --version" gives me "wine-1.2.1".

I did all the building as my user. I'm pretty sure the X server is also running 
as my user (Is there a way I can find out for sure?) And I haven't installed 
anything with Steam.

After killing the prefix file, I tried "wine iexplore" and got this:

Nicholas-Lowerys-MacBook-Pro:~ nlowery$ wine iexplore
wine: created the configuration directory '/Users/nlowery/.wine'
Application tried to create a window, but no driver could be loaded.
Unknown error (998).
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Unknown error (998).
Application tried to create a window, but no driver could be loaded.
Unknown error (998).
Application tried to create a window, but no driver could be loaded.
Unknown error (998).
fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33c6f4
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW 
L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\components\\xpti.dat" 1 
536870916 0x0 0x0 0x21ffd4 0x0
fixme:iphlpapi:NotifyAddrChange (Handle 0x411f518, overlapped 0x411f520): stub
fixme:file:MoveFileWithProgressW MOVEFILE_WRITE_THROUGH unimplemented
fixme:advapi:SetNamedSecurityInfoW 
L"C:\\windows\\system32\\gecko\\1.0.0\\wine_gecko\\components\\compreg.dat" 1 
536870916 0x0 0x0 0x1e046d4 0x0
wine: configuration in '/Users/nlowery/.wine' has been updated.
fixme:ole:CoResumeClassObjects stub
Application tried to create a window, but no driver could be loaded.
Unknown error (998).

...and a hung terminal.

I am running XQuartz (v 2.5.3). Maybe I should try getting rid of the 
wine-1.2.1 directory and building again?

Thanks again for your help

-Nick

Original comment by nicholas.lowery@gmail.com on 29 Oct 2010 at 7:01

GoogleCodeExporter commented 8 years ago
Any luck?  Can you send me the output of the following commands:

**
uname -r
which wine
xcodebuild -version
which gcc
gcc --version
which Xquartz
Xquartz -version
**

You may be hitting another issue with a separate Wine install in your path; 
have you previously installed Wine via Fink or MacPorts?  If you're still 
having trouble I'd recommend the following course of actions:

- grab and re-install Xcode 3.2.4 - latest rev for Snow Leopard
- grab and re-install XQuartz 2.5.3 - latest rev for Snow Leopard
- reboot or logout/log back in to pick up the XQuartz install
- run "xterm" from a Terminal session and make sure the XQuartz X11 server is 
the proper version
- grab and re-run the build script and re-build/re-install Wine
- kill your ~/.wine/ directory and start from scratch

I added a number of features to the build script recently, and you can get the 
latest development release installed (currently Wine 1.3.6) by running the 
script with the "--devel" option:

./osxwinebuild.sh --devel

Hope this helps.  Let me know your progress! -r

Original comment by rwoodsm...@gmail.com on 4 Nov 2010 at 4:23

GoogleCodeExporter commented 8 years ago
Hey; I think I got it figured out. I think what was missing was the export 
commands at the end of the routine. I thought I had them set up in a startup 
script, but apparently it wasn't working. When I started a new terminal and 
re-ran those commands it worked!

So I think that's solved. I've actually got my Ubuntu partition running and now 
I'm running Wine in that, which is nice and easy.

Thanks!

Original comment by nicholas.lowery@gmail.com on 4 Nov 2010 at 11:46

GoogleCodeExporter commented 8 years ago
Have fun with Linux and Wine both! -r

Original comment by rwoodsm...@gmail.com on 12 Nov 2010 at 3:10

GoogleCodeExporter commented 8 years ago
hi, have the same problem. here is my system info:
$ uname -r
10.8.0
$ which wine
/Users/wzrdark/wine/wine-1.3.18/bin/wine
$ xcodebuild -version
Xcode 3.2.2
Component versions: DevToolsCore-1648.0; DevToolsSupport-1631.0
BuildVersion: 10M2148
$ which gcc
/usr/bin/gcc

XQuartz 2.7.1_rc2 (2.7.11) 

Original comment by wzrd...@gmail.com on 29 Jan 2012 at 9:13