News:

 

Topic: Making NVil run on Linux...  (Read 19337 times)

0 Members and 1 Guest are viewing this topic.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
February 16, 2019, 11:48:54 am

  • No avatar
  • Posts: 976
  • Polygon
February 16, 2019, 11:00:08 pm
I read the post, but I had no luck so far.

Installation of dotnet461 via PoL pulls older versions of dotnet (probably as dependencies) and some of them are crashing during installation. The closest I could get to a working NVil today, is broken and unresponsive UI and an error dialog:

This is after installing all dotnet versions from 2.0 to 4.6.2.

After installing only the following: dotnet461, core fonts and SlimDX, NVil doesn't even start:
Code: [Select]
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
0009:err:module:fixup_imports_ilonly mscoree.dll not found, IL-only binary L"NVil 1.0.exe" cannot be loaded
0009:err:module:attach_dlls Importing dlls for L"C:\\NVil\\NVil 1.0.exe" failed, status c0000135
I tried with WINE 3.20, 4.1 and 4.1-staging.
I'm on Debian Buster, with nvidia-driver 390.87-8 amd64 installed.

Perhaps next time I'll try with pure WINE and winetricks.

  • No avatar
  • Posts: 976
  • Polygon
February 16, 2019, 11:02:25 pm
By the way, I think adding post attachments is broken:
Quote
An Error Has Occurred!
Cannot access attachments upload path!

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
February 17, 2019, 12:02:34 am
What is your Linux version? Are you trying to install 32-bit or 64-bit version?

Please check if the attachment upload problem is fixed.

  • No avatar
  • Posts: 976
  • Polygon
February 17, 2019, 01:17:41 am
What is your Linux version? Are you trying to install 32-bit or 64-bit version?
Code: [Select]
$ uname -a
Linux 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 (2019-01-17) x86_64 GNU/Linux
$ wine --version
wine-4.0 (Debian 4.0-1)
$ winetricks --version
20181203 - sha256sum: b4b29a961905bfed1db98f10e2f09a356b719861fc8602ffbf813a22579b2848
I'm currently trying to install NVil on a 32-bit WINEPREFIX.

At the moment I'm facing a problem with SlimDX installation refusing to find DXSETUP.EXE for some reason. However it copies SlimDX.dll to
Code: [Select]
/windows/Microsoft.NET/assembly/GAC_32/SlimDX/v4.0_4.0.13.43__b1b0c32fd1ffe4f9/SlimDX.dllso perhaps it does install even though it claims it failed. Just to be sure, I copied SlimDX.dll to NVil's directory.
When I launch NVil, its window is overstretched horizontally, viewports are blank and the interface does not respond.



Maybe something else also needs to be installed with winetricks? I don't know.


Quote
Please check if the attachment upload problem is fixed.
There's a different problem now:
Code: [Select]
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.

  • No avatar
  • Posts: 976
  • Polygon
February 17, 2019, 01:37:32 am
Perhaps I should install d3dx9 with winetricks, but apparently cabextract has a problem with the archive:
Code: [Select]
$ WINEPREFIX=~/.wine-nvil32 winetricks d3dx9
Using winetricks 20181203 - sha256sum: b4b29a961905bfed1db98f10e2f09a356b719861fc8602ffbf813a22579b2848 with wine-4.0 (Debian 4.0-1) and WINEARCH=win32
Executing w_do_call d3dx9
Executing load_d3dx9
Executing cabextract -q -d /home/myuser/.wine-nvil32/dosdevices/c:/windows/temp/_d3dx9 -L -F *d3dx9*x86* /home/myuser/.cache/winetricks/directx9/directx_Jun2010_redist.exe
Executing cabextract -q -d /home/myuser/.wine-nvil32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/myuser/.wine-nvil32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab
/home/myuser/.wine-nvil32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab: WARNING; file possibly truncated by 262432 bytes.
/home/myuser/.wine-nvil32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab: no valid cabinets found
------------------------------------------------------
Note: command cabextract -q -d /home/myuser/.wine-nvil32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/myuser/.wine-nvil32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab returned status 1. Aborting.
I already tried purging winetricks cache in ~/.cache/winetricks, to no avail. Cabextract always returns status 1 when it extracts a downloaded copy of directx_Jun2010_redist.exe.

I used a workaround and unpacked this .exe in WINE and ran the installer from there. Then I have overriden all d3dx9_* libraries with "(native, builtin)" in winecfg, but it didn't change anything.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
February 17, 2019, 01:53:42 am
He mention this "Linux Mint 18.3". Does it matter?

  • No avatar
  • Posts: 976
  • Polygon
February 17, 2019, 02:18:13 am
It shouldn't. At least not to a point where a Windows program runs perfectly fine on Mint's WINE while at the same time it doesn't work at all on Debian's WINE. Probably something needs to be installed from the repository, or some .dlls overriden with native Windows ones.

After all, Mint is based on Ubuntu (or Debian, in case of LMDE) while Ubuntu is based on Debian.

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
February 17, 2019, 04:22:46 am
At the moment I'm facing a problem with SlimDX installation refusing to find DXSETUP.EXE for some reason. However it copies SlimDX.dll to
Code: [Select]
/windows/Microsoft.NET/assembly/GAC_32/SlimDX/v4.0_4.0.13.43__b1b0c32fd1ffe4f9/SlimDX.dllso perhaps it does install even though it claims it failed.

SlimDX installation is not just installing SlimDX.dll. The installation failing message means something is missing and the related installation did not happen.

Try installing "Visual C++ Redistributable 2010".

  • No avatar
  • Posts: 976
  • Polygon
February 18, 2019, 02:08:06 pm
Try installing "Visual C++ Redistributable 2010".
I installed it, but unfortunately it didn't change anything.SlimDX still throws an error (even though it later says the installation has completed):



"Yes" button takes me here:
https://docs.microsoft.com/en-us/dotnet/framework/deployment/initialization-errors-managing-the-user-experience?version=(null)&processName=DXSETUP.exe&platform=0000&osver=2&isServer=0&shimver=4.0.30319.0


I downloaded and ran netfx_setupverifier tool to check if maybe .NET is not installed correctly, but the tool says it's ok.

Here are my steps so far: https://github.com/ajz3d/wine-nvil/blob/master/wine-nvil.sh

  • No avatar
  • Posts: 3705
  • Developer
  • Administrator
  • Polygon
February 18, 2019, 06:01:52 pm
Have you installed DirectX9?

  • No avatar
  • Posts: 976
  • Polygon
February 21, 2019, 05:40:15 pm


Success!

In the end, I used PlayOnLinux with Wine 3.20 (32-bit) and the following additional components:
  • Microsoft Core Fonts
  • d3dx9
  • msxml3
  • msxml4
  • msxml6
  • vcrun2010
  • dotnet20
  • dotnet20sp1
  • dotnet20sp2
  • dotnet30
  • dotnet30sp1
  • dotnet35
  • dotnet35sp1
  • dotnet40
  • dotnet45
(In that order)

Then I installed SlimDX 32-bit.

It's running ok, but not flawless. Frame rate is excellent, but there are several minor problems that I have noticed:
  • Ampersands trailing menu group names.
  • Radial menu makes the viewport go blank and it remains like that until radial menu is closed.
  • No anti-aliasing. On Windows I solved this by overriding NVil's 3D settings in NVIDIA Control Panel. I thought it would work here too, but setting AA overrides in NVIDIA X Server Settings doesn't affect applications run under WINE. I'd like to find a solution for this one, because it's difficult to work with aliased wireframe.
  • Splash screen's transparency is semi-opaque.

There were at least two reasons why I think NVil didn't want to work on my system before.

Winetricks, contrary to PoL, uses cabextract to retrieve selected files from cabinet archives (-F option). Current version of cabextract available in Debian Buster (testing) repository uses libmspack 0.8-1 which has a regression related to -F (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912687). It is solved in libmspack 0.9.1-1, but for now it is only available in repository of Debian Sid (unstable).

This bug broke installation of d3dx9 in pure WINE+winetricks. I tried to install d3dx9 manually via dxsetup.exe and while it installed successfully, something was still wonky.

At some point I have noticed that I didn't have i386 version of nvidia drivers installed on my multiarch Debian. I solved this by installing nvidia-driver-libs-i386.

So, next goal is to run NVil under 64-bit wineprefix. This is going to be much harder.

  • Posts: 514
  • Polygon
April 27, 2019, 10:31:10 pm
Chris Titus https://youtu.be/lI09QLkqZiE has started running a series of videos on getting windows programs running under linux, it may be of interest and he may touch on the how to solve the remaining issues you are experiencing in future videos. He uses Debian 10 (Buster) with the 5.0 kernel.

I just tried on Mint 19 following Carstens advice using 32 bit slimdx.
I only installed MS core fonts and dotnet461 and got the same results as you with regard to menus, splash screen & radial menus. Installing vcrun10 or dx9 made no difference.

I could not get the 64 bit version to work at all. It might be worth buying CrossOver https://www.codeweavers.com/products which is the paid for version of Wine and it may resolve the 32bit or 64bit problem.
« Last Edit: May 04, 2019, 10:11:17 pm by kevjon »

  • No avatar
  • Posts: 976
  • Polygon
July 18, 2019, 03:37:21 pm
Enabling AA turned out to be quite easy. I had to add the following DWORD to "Windows" registry:
Code: [Select]
HKEY_CURRENT_USER->Software->Wine->Direct3D->SampleCountand set it to 2, 4, 8, 16 or 32. The disadvantage is that HUD fonts become slightly blurry.

More info: https://wiki.winehq.org/Useful_Registry_Keys
« Last Edit: July 18, 2019, 10:41:43 pm by rubberDuck »

  • No avatar
  • Posts: 1
  • Vertex
October 01, 2019, 11:37:56 am
Does this line disable AA for all the apps running or just NVil?