Meteo Posted August 31, 2018 Share Posted August 31, 2018 Hi, I've made an attempt to run Affinity Designer on Linux via Wine. I managed to run the program myself, but it is not possible to create or edit a document. The problem is probably with Direct3D support in Wine or in my GPU (maybe drivers). I will describe how to install and run the Designer via Wine. Maybe someone can successfully create or edit a document (eg with a different GPU). The operating system used is Ubuntu 18.04. What we need? Windows (yes, I know) - it can be a virtual machine. It will be used to extract the installation of the program because the standard installer does not work under the Wine. Wine with some patches - we must add MoveFileTransactedA/W stubs to kernel32. The building of Wine is required. Winetricks. 64-bit mscms.dll library. Affinity Designer installer and license. Offline installer of .NET Framework 4.0 and .NET Framework 4.7.2. Step 1 – build Wine We must build and install 64-bit and 32-bit Wine with patch. Building of Wine on Ubuntu is very well described on the WineHQ wiki: Building Biarch Wine On Ubuntu. Don't forget to apply the patch from attachment (fix.patch). During the building process I installed additional libraries like libvulkan-dev and libvkd3d. Step 2 – create MSI installer of Designer This step must be done on Windows. Open the command line (cmd.exe) and go to the directory where the Affinity Designer installer is located. Run the affinity-designer.exe /extract command (the file name may be different). Complete the required data and create an MSI installer. Transfer the created MSI file to your system with Wine. Step 3 – install Winetricks The Winetricks installation is described on the project page: Winetricks. I prefer a manual installation of latest Winetricks instead install outdated version from repo. Step 4 – create Wine prefix and install .Net framework Installation of .Net Framework with Winetricks doesn't work for me, that's why I do it manually. Initialize new Wine prefix: WINEPREFIX=~/Designer wineboot –init Change the system to Windows XP (for correct installation of .Net Framework 4.0) and remove the mono if installed: WINEPREFIX=~/Designer winetricks winxp WINEPREFIX=~/Designer winetricks remove_mono Download and install .NET Framework 4.0: wget 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe' WINEPREFIX=~/Designer wine ./dotNetFx40_Full_x86_x64.exe /q Change the system to Windows 7 and switch mscoree to native (this is very important): WINEPREFIX=~/Designer winetricks win7 WINEPREFIX=~/Designer winecfg Download and install .NET Framework 4.7.2: wget 'http://download.microsoft.com/download/D/D/3/DD35CC25-6E9C-484B-A746-C5BE0C923290/NDP47-KB3186497-x86-x64-AllOS-ENU.exe' WINEPREFIX=~/Designer wine ./NDP47-KB3186497-x86-x64-AllOS-ENU.exe /q Step 5 - run Affinity Designer Switch system to Windows 8.1 or 10. Designer will not start in Windows 7 mode due to Aero errors. WINEPREFIX=~/Designer winetricks win81 Install Affinity Designer (in my case MSI installer is Affinity.msi) WINEPREFIX=~/Designer wine msiexec /passive /i ./Affinity.msi Copy the missing mscms.dll library to Affinity Designer instalation directory. In my case it is ~/Designer/drive_c/Program Files/Affinity/Affinity Designer/. I have found the missing library on dlldownloader.com: mscms.dll. Start Affinity Designer: WINEPREFIX=~/Designer wine "C:\Program Files\Affinity\Affinity Designer\Designer.exe" The program should start and you will see the welcome screen. I can open preferences and change options, but creating a new document causes a crash. In Performance tab my GPU is displayed as Intel(R) HD Graphivs 4000 (I have Intel® UHD Graphics 620). Crash report: Attempting to create Direct3D device with adapter Intel(R) HD Graphics 4000 c:\buildagent10\work\live\persona\windows\libraries\serif.directx\dxrenderer.cpp(676): error 0x80004001 (Unknown error 0x80004001) In the last step I tried to start the Designer using Vulkan-based D3D10/D3D11 implementation. After this (and install mesa-vulkan-drivers) in Performance tab my GPU is displayed correctly, but the program still crash while creating a new document. WINEPREFIX=~/Designer winetricks dxvk Crash report: Attempting to create Direct3D device with adapter Intel(R) UHD Graphics 620 (Kabylake GT2) c:\buildagent10\work\live\persona\windows\libraries\serif.directx\dxrenderer.cpp(676): error 0x80004001 (Unknown error 0x80004001) I know that Serif developers don't provide support for running Affinity programs via Wine. The post is for information purposes only. fix.patch gewb, Mithferion, johnbot81 and 8 others 4 7 Quote Link to comment Share on other sites More sharing options...
valevll Posted September 3, 2018 Share Posted September 3, 2018 Oh wow! That's quite some progress, unfortunately wasn't techy enough to be able to recreate it, but hopefully at some point we will be able to get it all working and in a simpler way :) Thank you for an amazing contribution. Quote Link to comment Share on other sites More sharing options...
Pšenda Posted September 4, 2018 Share Posted September 4, 2018 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130. Link to comment Share on other sites More sharing options...
Josias Viskoo Posted October 6, 2018 Share Posted October 6, 2018 It was not this time! But we are making progress! I also made some attempts with a portable version! Let's keep trying. valevll and SrPx 2 Quote Link to comment Share on other sites More sharing options...
NNois Posted October 8, 2018 Share Posted October 8, 2018 you should try with proton (valve/steam) he provide dx11 dx12 and vulkan compatibility !! just that Quote Link to comment Share on other sites More sharing options...
firstdefence Posted October 8, 2018 Share Posted October 8, 2018 Affinity primarily uses CPU not GPU for its editing processes NNois 1 Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
j0e.org Posted November 4, 2018 Share Posted November 4, 2018 We have everything on Linux. Only a proper graphic solution is missing. Please give us Affinity Designer for Linux. mondze, gabem, m.vlad and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Josias Viskoo Posted December 15, 2018 Share Posted December 15, 2018 I read that Adobe is thinking about developing the tools for linux, let's see who gets into the fray first? I hope the serif! Quote Link to comment Share on other sites More sharing options...
j0e.org Posted December 15, 2018 Share Posted December 15, 2018 Do you have a link? Quote Link to comment Share on other sites More sharing options...
NNois Posted January 3, 2019 Share Posted January 3, 2019 On 11/4/2018 at 5:32 PM, j0e.org said: We have everything on Linux. Only a proper graphic solution is missing. Please give us Affinity Designer for Linux. What about Krita ? Krita is kicking ! Quote Link to comment Share on other sites More sharing options...
firstdefence Posted January 3, 2019 Share Posted January 3, 2019 4 minutes ago, NNois said: What about Krita ? Krita is kicking ! Krita, Inkscape, Gimp why do you need Affinity anyway, I'm surprised an open source clone hasn't popped up yet. Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
j0e.org Posted January 3, 2019 Share Posted January 3, 2019 Gimp is much better the Krita. Quote Link to comment Share on other sites More sharing options...
InfoCentral Posted January 3, 2019 Share Posted January 3, 2019 Krita is primarily a bitmap program. Quote Link to comment Share on other sites More sharing options...
j0e.org Posted January 3, 2019 Share Posted January 3, 2019 Gimp also. I found Krita is more like Paint. Quote Link to comment Share on other sites More sharing options...
ꜱᴩʀɪᴛᴇ➀ Posted January 6, 2019 Share Posted January 6, 2019 Valve's Proton project has apparently done a lot in the way of interfacing with DirectX calls. Would anyone with more knowledge be able to check it out and see how it goes? Affinity Designer is really one of the missing workflows I have since moving to Linux Inkscape is just painful to work with and Gravit is a subscription-based Electron app... Quote Link to comment Share on other sites More sharing options...
valevll Posted January 23, 2019 Share Posted January 23, 2019 Wine 4.0 was just released with Vulkan support & Direct3D 12 support, could this make it easier to make Affinity work on Linux, what do you guys think? Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted January 23, 2019 Share Posted January 23, 2019 5 hours ago, valevll said: Wine 4.0 was just released with Vulkan support & Direct3D 12 support, could this make it easier to make Affinity work on Linux, what do you guys think? The only way to know is for you, or someone, to try it. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
BestestGrandad Posted January 23, 2019 Share Posted January 23, 2019 I've just had a look on Winehq and my guess is that Affinity will not work under wine anytime soon. I'm basing this on their install instructions which near the beginning say "If your system is 64 bit, enable 32 bit architecture" which I take to mean that wine only supports 32 bit software and since Affinity is 64 it's a non-starter. And here https://wiki.winehq.org/Wine_Features it specifically says there is only 32-bit compatibility :-( Quote Link to comment Share on other sites More sharing options...
NNois Posted January 23, 2019 Share Posted January 23, 2019 21 minutes ago, BestestGrandad said: I've just had a look on Winehq and my guess is that Affinity will not work under wine anytime soon. I'm basing this on their install instructions which near the beginning say "If your system is 64 bit, enable 32 bit architecture" which I take to mean that wine only supports 32 bit software and since Affinity is 64 it's a non-starter. And here https://wiki.winehq.org/Wine_Features it specifically says there is only 32-bit compatibility :-( totally false ! there's a wine64 and a wine32 ... Quote Link to comment Share on other sites More sharing options...
ꜱᴩʀɪᴛᴇ➀ Posted January 23, 2019 Share Posted January 23, 2019 Well for one, I got it to run on the new Wine 4.0 version but only until the registration window. It closes immediately once you get to the license agreement window. Quote Link to comment Share on other sites More sharing options...
BestestGrandad Posted January 23, 2019 Share Posted January 23, 2019 NNois Interesting - and indeed I may be wrong BUT (and I'm on Ubuntu) I can only install or run 32 bit apps using wine. If you can point me at the wine which fully supports 64 bit (and doesn't simply run on 64 bit machines) then I'll build a machine and test it. I'd also appreciate a link to winehq where supports your claim that wine supports 64bit programs. Quote Link to comment Share on other sites More sharing options...
firstdefence Posted January 23, 2019 Share Posted January 23, 2019 34 minutes ago, BestestGrandad said: NNois Interesting - and indeed I may be wrong BUT (and I'm on Ubuntu) I can only install or run 32 bit apps using wine. If you can point me at the wine which fully supports 64 bit (and doesn't simply run on 64 bit machines) then I'll build a machine and test it. I'd also appreciate a link to winehq where supports your claim that wine supports 64bit programs. https://wiki.winehq.org/FAQ#Is_there_a_64_bit_Wine.3F Quote A few things to note: 32 bit Wine runs on both 32-bit and 64-bit Linux/Unix installations. 16-bit and 32-bit Windows applications will run on it. 64-bit Wine runs only on 64 bit installations, and so far has only been extensively tested on Linux. It requires the installation of 32 bit libraries in order to run 32 bit Windows applications. Both 32-bit and 64-bit Windows applications (should) work with it; however, there are still many bugs. @BestestGrandad Quote iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
BestestGrandad Posted January 23, 2019 Share Posted January 23, 2019 I duly stand corrected. Strange that they don't mention 64bit when they specifically mention 32 but there you go. Looks like tomorrow will be spent building another machine and see how far I can get :) If I get it to work I'll let you know. Quote Link to comment Share on other sites More sharing options...
ivan lavosky Posted January 23, 2019 Share Posted January 23, 2019 6 hours ago, ꜱᴩʀɪᴛᴇ➀ said: Well for one, I got it to run on the new Wine 4.0 version but only until the registration window. It closes immediately once you get to the license agreement window. How did you do that? I've just installed Wine 4 and didn't even manage to install it at the first place Quote Link to comment Share on other sites More sharing options...
ubiquity Posted January 24, 2019 Share Posted January 24, 2019 On 1/3/2019 at 9:18 PM, firstdefence said: Krita, Inkscape, Gimp why do you need Affinity anyway, I'm surprised an open source clone hasn't popped up yet. It seems Affinity is making inroads into Adobe's hold on the "in industry" market - despite being excellent products GIMP and Inkscape still don't have the industry acceptance that Affinity has developed in a remarkably short time. Unfortunately I think Affinity development resources are probably spread to thin to support porting to Linux in the near future. iMatt 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.