https://bugs.winehq.org/show_bug.cgi?id=29582
--- Comment #43 from Maxim Stewart gamer1119@gmail.com --- OK here is an update with what I did. I did both 32bit and 64bit builds so will list the steps I took.
Build process:
1. sudo add-apt-repository ppa:ubuntu-wine/ppa OR 1. Make sure to add or uncomment the sources URIs in /etc/apt/sources.list 2. sudo apt-get update 3. sudo apt-get build-dep wine 4. git clone https://github.com/daniel-santos/wine 5. cd /the/location/of/wineBuildDir/ 6. git checkout hybrid-sync 7. ./configure OR configure --enable-win64 8. make 9. make install // Optional since we can run from the build dir.
To run from winebuilddir cd wineBuildDir/loader/ // This location has the Wine exe. 10. STAGING_SHARED_MEMORY=1 STAGING_SHM_SYNC=1 WINEPREFIX=<your_prefix> wine GameData/BattlefrontII.exe
My specific usage examples for "launching" 32bit & 64bit:
32bit: STAGING_SHARED_MEMORY=1 STAGING_SHM_SYNC=1 WINEPREFIX="/home/abaddon/.PlayOnLinux/wineprefix/z:/" ./wine "C:\Program Files\Steam\steamapps\common\Star Wars Battlefront II\GameData\BattlefrontII.exe"
64bit: STAGING_SHARED_MEMORY=1 STAGING_SHM_SYNC=1 WINEPREFIX="/home/abaddon/.PlayOnLinux/wineprefix/z:/" ./wine64 "C:\Program Files\Steam\steamapps\common\Star Wars Battlefront II\GameData\BattlefrontII.exe"
For 32bit I get the following errors.
0012:err:module:import_dll Library mscoree.dll (which is needed by L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe") not found 0012:err:module:attach_dlls Importing dlls for L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe" failed, status c0000135 000f:err:service:process_send_command service protocol error - failed to write pipe! 000f:fixme:service:scmdatabase_autostart_services Auto-start service L"clr_optimization_v4.0.30319_32" failed to start: 1053 wineserver: ERROR: shared memory corruption detected: 0xf758d008 should be fdfdfdfd, found aaaaaaaa ... // the wine server error repeats multiple times thus I am putting dots 000d:err:menubuilder:RefreshFileTypeAssociations failed wait for semaphore wineserver: shm_slab.c:530: shm_cache_free: Assertion `!cache->count' failed.
This error could be because I am lacking the proper mscoree.dll (or so it seems) and I've been trying to figure out how to fix this with no success so far. I am still doing research on how to get the library included properly. The winserver error is of interest to me because you had said that much of your changes were there. So the error might not be tied to the other issue. I'll defer to your judgment since you know the system more than I do.
For 64bit I get a message about not being able to load a 32bit wine containers but that's not surprising after I looked into Wine's build instructions and they said much the same as a warning.
My system info if needed:
uname -a: Linux abaddon 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a No LSB modules are available. Distributor ID: LinuxMint Description: Linux Mint 18 Sarah Release: 18 Codename: sarah