http://bugs.winehq.org/show_bug.cgi?id=59680 --- Comment #24 from समीरसिंह Sameer Singh <lumarzeli30@gmail.com> --- (In reply to Vitor Coimbra from comment #23)
(In reply to समीरसिंह Sameer Singh from comment #21)
1.First clone and compile the wine repo with the patches. a) Install the required system dependencies by reading this: https://gitlab.winehq.org/wine/wine/-/wikis/Building-Wine#satisfying-build- dependencies, it does not give the specific package names for NixOS, so you have to find it out on your own. Once the build dependencies are installed. b) git clone https://gitlab.winehq.org/wine/wine.git --depth 1 c) cd wine d) wget https://gitlab.winehq.org/wine/wine/-/merge_requests/10859.patch e) wget https://gitlab.winehq.org/wine/wine/-/merge_requests/10868.patch f) git apply 10859.patch g) git apply 10868.patch h) mkdir build && cd build i) ../configure --enable-archs=i386,x86_64 j) make -j$(nproc)
Thank you for the very thorough instructions. If anyone else wants to test this on NixOS, step a) is basically the following command:
nix-shell -p wine64Packages.stagingFull.nativeBuildInputs wine64Packages.stagingFull.buildInputs winePackages.stagingFull.nativeBuildInputs winePackages.stagingFull.buildInputs wget git
This will pull in all dependencies needed to build wine 32 and 64 bits (as well as wget and git) straight from the nixpkgs repo into a nix-shell session. Then just follow the rest of the instructions as written.
Ok, so after waiting quite a while for wine to build (I don't have a good computer), I tried running the following test (from the build directory created by the above instructions):
1) ./wine programs/notepad/i386-windows/notepad.exe
but was met with the following output:
[nix-shell:~/wine/build]$ ./wine programs/notepad/i386-windows/notepad.exe wine: created the configuration directory '/home/vitorc/.wine' 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org 004c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 0054:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org 004c:err:vulkan:vulkan_init_once Failed to load libvulkan.so.1 004c:err:wgl:egl_init Failed to load libEGL.so.1: libEGL.so.1: cannot open shared object file: No such file or directory 004c:err:wgl:X11DRV_OpenGLInit Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory 004c:err:wgl:X11DRV_OpenGLInit OpenGL support is disabled. 0054:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002 0054:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002 0054:err:ole:apartment_get_local_server_stream Failed: 0x80004002 0054:err:ole:start_rpcss Failed to open RpcSs service 004c:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002 004c:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002 004c:err:ole:apartment_get_local_server_stream Failed: 0x80004002 Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org 0094:err:winediag:gnutls_process_attach failed to load libgnutls, no support for encryption 0094:err:winediag:process_attach failed to load libgnutls, no support for pfx import/export Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5. http://www.freetype.org 009c:err:winediag:gnutls_process_attach failed to load libgnutls, no support for encryption 009c:err:syslink:SYSLINK_SetFont Failed to create link font!
Upon further reflecting on why this could be happening, I'm guessing it could be FHS related, since NixOS does not follow it. wine is probably looking for runtime stuff in places it won't be in. Again, just a guess though.
If this is indeed an FHS issue, then have you tried building an FHS environment with all the runtime libraries wine needs, to run wine from? See: https://ryantm.github.io/nixpkgs/builders/special/fhs-environments/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.