Skip to content

Instantly share code, notes, and snippets.

@kolen
Last active April 11, 2017 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kolen/b9b0a142a7e46fa9c97dbdde461823d5 to your computer and use it in GitHub Desktop.
Save kolen/b9b0a142a7e46fa9c97dbdde461823d5 to your computer and use it in GitHub Desktop.
#!/bin/bash
export WINEPREFIX=`mktemp -d`
echo "Created temporary wineprefix: $WINEPREFIX"
export DYLD_FALLBACK_LIBRARY_PATH=/opt/X11/lib/
winetricks macdriver=x11
wineserver --wait # Wait for wineserver to terminate
winefile
▶ /tmp/winetest.sh
Created temporary wineprefix: /var/folders/yh/pq7_yd0n4x7dwn_zg5s51g200000gn/T/tmp.BPgrM32C
------------------------------------------------------
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20170327 - sha256sum: 14b41daecb79991f4b304366720ce41529e992ec7bbacea4ed9b753ecb71620d with wine-2.5 and WINEARCH=win64
20170327
Executing w_do_call macdriver=x11
Executing load_macdriver x11
Setting MacDriver to x11
Executing winetricks_early_wine regedit /var/folders/yh/pq7_yd0n4x7dwn_zg5s51g200000gn/T/tmp.BPgrM32C/dosdevices/c:/windows/temp/_macdriver=x11/set-mac.reg
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
err:hid_report:process_hid_report Device reports coming in too fast, last report not read yet!
wineserver: file_set_error() can't map error: Operation not supported on socket
▶ ls -l /opt/X11/lib/libX11.6.dylib
-rwxr-xr-x 1 root wheel 2382992 29 окт 11:00 /opt/X11/lib/libX11.6.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment