Nikon Capture NX-D

Questions about Wine on Linux
Locked
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Nikon Capture NX-D

Post by Moldmaker »

Hi everybody, I try to run Nikon Capture NX-D with wine under Funtoo Linux (which is very close to Gentoo Linux). First thing I did was check whether or not it will run in general and this site tells me it does. So I downloaded the newest available version from the the Nikon download page and simply doubleclicked it. Since nothing happened, I ran it in a terminal and got the "bad exe format" error. Seems to be related to the architecture, so I issued

Code: Select all

export WINEARCH=win32
and tried again. Now I get

Code: Select all

$ wine S-NXD___-010603WF-ALLIN-ALL___.exe 
wine: WINEARCH set to win32 but '/home/mold/.wine' is a 64-bit installation.
Then I renamed the .wine directory and let wine create a new one (with WINEARCH set to win32). Same errors again.
Since I have Windows 7 (32-bit) installed on another hdd in my machine, with an older version of Capture NX-D installed, I simply copied the installation directory to my C drive under .wine. Again "bad exe format" error or "winearch" error (see above).
Now I am stuck. I found out that Capture NX-D runs on 32-bit and 64-bit Windows (can detect the architecture). But how can I get it running under wine?

Some more information:
My OS:

Code: Select all

$ uname -a
Linux funtoo 4.19.98_p1-debian-sources-lts #1 SMP Sun Feb 2 23:54:43 -00 2020 x86_64 Intel(R) Xeon(R) CPU W5590 @ 3.33GHz GenuineIntel GNU/Linux
My wine version:

Code: Select all

$ wine --version
wine-4.10
(set to Windows 10). Everything is 64-bit. Can somebody point me to the right direction?

Mm.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Nikon Capture NX-D

Post by jkfloris »

I found out that Capture NX-D runs on 32-bit and 64-bit Windows (can detect the architecture).
The installer is a 32-bit application, so you also need the 32-bit Wine installation.
Unfortunately, Funtoo Linux deprecates support for 32-bit applications and libraries on x86-64bit arch.
Funtoo has a page with some solutions: https://www.funtoo.org/32-bit_Chroot
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

Thank you for your quick reply. I am going to look into this.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Nikon Capture NX-D

Post by Bob Wya »

Moldmaker

Funtoo isn't really very close to Gentoo - as Gentoo still provides excellent multilib support! 8)
Gentoo also supports multi-slotted (simultaneous) installation of multiple wine-staging and/or wine-vanilla package versions.
You can't even build a Syswow64 32-bit/64-bit Wine build with Funtoo (according to the Wiki link jkfloris posted anyway)...

To many compromises, in these derivative distributions, IMHO! :roll:

Bob
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

To install a 32-bit chroot seems to me a little too much work for now, so I tried a different approach. I installed the newest version of Capture NX-D on a 64-bit Windows 10 and copied the installation directory to

Code: Select all

~/.wine/drive_c/Program Files
Running it in the terminal got me two error messages on missing dll files (mfc140u.dll and vcruntime140_1.dll) which I copied to

Code: Select all

~/.wine/drive_c/windows/system/
Running the exe after that gets the following result:

Code: Select all

$ wine CaptureNX-D.exe
0009:fixme:msvcrt:_configure_wide_argv (1) stub
0009:fixme:msvcrt:_initialize_wide_environment stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (000000000053F0B0 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (000000000053F010 1 C) semi-stub
0009:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x53eee4, 0x53ef00 0x53eee0
0009:fixme:nls:get_dummy_preferred_ui_language (0x38 0x53eee4 0x53ef00 0x53eee0) returning a dummy value (current locale)
0009:fixme:heap:GetPhysicallyInstalledSystemMemory stub: 0x53f260
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0000000000532A80 1 C) semi-stub
0009:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x5304c4, 0x5304e0 0x5304c0
0009:fixme:nls:get_dummy_preferred_ui_language (0x38 0x5304c4 0x5304e0 0x5304c0) returning a dummy value (current locale)
0009:fixme:msvcrt:MSVCRT__stdio_common_vsnwprintf_s options 24 not handled
0009:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x530444, 0x530460 0x530440
0009:fixme:nls:get_dummy_preferred_ui_language (0x38 0x530444 0x530460 0x530440) returning a dummy value (current locale)
0009:fixme:msvcrt:MSVCRT__stdio_common_vsnwprintf_s options 24 not handled
0009:fixme:msvcrt:MSVCRT__stdio_common_vsnwprintf_s options 24 not handled
0009:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x52f8a4, 0x52f8c0 0x52f8a0
0009:fixme:nls:get_dummy_preferred_ui_language (0x38 0x52f8a4 0x52f8c0 0x52f8a0) returning a dummy value (current locale)
0009:fixme:nls:GetThreadPreferredUILanguages 00000038, 0x52fba4, 0x52fbc0 0x52fba0
0009:fixme:nls:get_dummy_preferred_ui_language (0x38 0x52fba4 0x52fbc0 0x52fba0) returning a dummy value (current locale)
0009:fixme:thread:SetThreadIdealProcessor (0xfffffffffffffffe): stub
002a:fixme:kernelbase:AppPolicyGetThreadInitializationType 0xfffffffffffffffa, 0xc9afdb0
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0000000000531D30 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (000000000052FD50 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (000000000052FDB0 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (000000000052FDB0 1 C) semi-stub

and that's pretty much it, nothing more happens. No application window, no further messages appear. What can it be?

Mm.
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

Bob Wya wrote: Tue Sep 15, 2020 10:57 am Moldmaker

Funtoo isn't really very close to Gentoo - as Gentoo still provides excellent multilib support!
...
To many compromises, in these derivative distributions, IMHO! :roll:

Bob
Thank you for pointing this out. I think Funtoo is a good choice because it is easy to install, runs stable and smoothly and is easy to handle and to maintain. I use it as my daily driver desktop system for more or less everything. Unfortunately, Nikon does not provide any support for Linux. I have tried Darktable which is really impressive but still lacks some features. So I came up with the idea to run Capture NX-D under Wine and now I face the problem described above.
So yeah, from a general point of view I agree to you, you are certainly right. Maybe I can can get this solved anyway. :)

Mm.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Nikon Capture NX-D

Post by Bob Wya »

Moldmaker wrote: Tue Sep 15, 2020 12:08 pm
Running it in the terminal got me two error messages on missing dll files (mfc140u.dll and vcruntime140_1.dll) which I copied to

Code: Select all

~/.wine/drive_c/windows/system/
Running the exe after that gets the following result:
You'd probably (actually) want to use:

Code: Select all

winetricks -q vcrun2019
to ensure all the required libraries are installed and registered.

I'll take a look at whether I can get the application running, later on today. 8)

At the moment it's a bit tricky to separate whether your environment (a pure 64-bit Wine installation) or further issues with the Nikon application are underlying your issues...

Certainly copying installed applications over (from a Windows install) - is not officially supported. See: WineHQ FAQ: 5.1 I have lots of applications already installed in Windows. How do I run them in Wine? ... Typically this would also require copying over some Windows registry key(s) as well, as the installed files, unless the Windows application is portable.

Bob
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

Bob Wya wrote: Wed Sep 16, 2020 6:38 am You'd probably (actually) want to use:

Code: Select all

winetricks -q vcrun2019
to ensure all the required libraries are installed and registered.
I had to install winetricks first, then I got the following:

Code: Select all

mold@funtoo ~ $ winetricks -q vcrun2019
Executing mkdir -p /home/mold
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20200412 - sha256sum: 40ff4c67804584b73d4d36153e1f64ca426d739f1790bd748f5ded0865e8cc7f with wine-4.10 and WINEARCH=win64
Executing w_do_call vcrun2019
Executing mkdir -p /home/mold
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2019 
Executing cd /home/mold/.cache/winetricks/vcrun2019
Downloading https://aka.ms/vs/16/release/vc_redist.x86.exe to /home/mold/.cache/winetricks/vcrun2019
--2020-09-16 14:23:39--  https://aka.ms/vs/16/release/vc_redist.x86.exe
Auflösen des Hostnamens aka.ms… 104.92.89.28
Verbindungsaufbau zu aka.ms|104.92.89.28|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://download.visualstudio.microsoft.com/download/pr/9fe82b83-f3a1-43f5-8f25-ebe24529854c/B4D433E2F66B30B478C0D080CCD5217CA2A963C16E90CAF10B1E0592B7D8D519/VC_redist.x86.exe [folgend]
--2020-09-16 14:23:39--  https://download.visualstudio.microsoft.com/download/pr/9fe82b83-f3a1-43f5-8f25-ebe24529854c/B4D433E2F66B30B478C0D080CCD5217CA2A963C16E90CAF10B1E0592B7D8D519/VC_redist.x86.exe
Auflösen des Hostnamens download.visualstudio.microsoft.com… 68.232.34.200, 2606:2800:133:f17:19e8:2356:251b:2a9
Verbindungsaufbau zu download.visualstudio.microsoft.com|68.232.34.200|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 14427696 (14M) [application/octet-stream]
Wird in »vc_redist.x86.exe« gespeichert.

vc_redist.x86.exe            100%[============================================>]  13,76M  1,85MB/s    in 7,5s    

2020-09-16 14:23:46 (1,84 MB/s) - »vc_redist.x86.exe« gespeichert [14427696/14427696]

Executing cd /home/mold
------------------------------------------------------
sha256sum mismatch! Rename /home/mold/.cache/winetricks/vcrun2019/vc_redist.x86.exe and try again.
------------------------------------------------------
mold@funtoo ~ $
Since I am from Germany and my system is set to german localization, you can find some german text in the output. As you can see, the operation failed. When I tried to run it directly:

Code: Select all

mold@funtoo ~/.cache/winetricks/vcrun2019 $ wine vc_redist.x86.exe 
wine: Fehlerhaftes EXE-Format für Z:\home\mold\.cache\winetricks\vcrun2019\vc_redist.x86.exe.
mold@funtoo ~/.cache/winetricks/vcrun2019 $
which means "bad exe format".
I'll take a look at whether I can get the application running, later on today. 8)
(...)
Bob
I am looking forward to it. Thank you for your patience!

Mm.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Nikon Capture NX-D

Post by Bob Wya »

Moldmaker wrote: Wed Sep 16, 2020 7:39 am ...

Code: Select all

mold@funtoo ~/.cache/winetricks/vcrun2019 $ wine vc_redist.x86.exe 
wine: Fehlerhaftes EXE-Format für Z:\home\mold\.cache\winetricks\vcrun2019\vc_redist.x86.exe.
mold@funtoo ~/.cache/winetricks/vcrun2019 $
which means "bad exe format".
...
Hi, yeah the 32-bit installer definitely won't install on a pure 64-bit Wine installation!

Also, I'd recommend installing:

Code: Select all

=app-emulation/winetricks-99999999
if that's possible on Funtoo - to ensure you have all the latest fixes for this utility!

Bob
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Nikon Capture NX-D

Post by Bob Wya »

@Moldmaker

So I tested out your Nikon Capture application.

It seems to run OK. I tested it with wine-staging 5.14 on my (dual-core) 'craptop'.
It works with both 32-bit and 64-bit WINEPREFIX(s).

I only needed to use the following overrides:

Code: Select all

winetricks win10
i.e. setting the WINEPREFIX to Windows 10 ...

Obviously you'll need to be using an Operating System that actually has working 32-bit support... :lol:

Bob
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

Bob Wya wrote: Wed Sep 16, 2020 11:48 am Also, I'd recommend installing:

Code: Select all

=app-emulation/winetricks-99999999
if that's possible on Funtoo - to ensure you have all the latest fixes for this utility!

Bob
Yes, this version is available. In fact, it was being offered to me by portage in the first place, but I was unsure about it, so I played it safe and installed version 20200412. Gonna do it tomorrow though.

Mm.
User avatar
Moldmaker
Level 1
Level 1
Posts: 7
Joined: Tue Sep 15, 2020 2:47 am

Re: Nikon Capture NX-D

Post by Moldmaker »

Bob Wya wrote: Wed Sep 16, 2020 1:48 pm @Moldmaker

So I tested out your Nikon Capture application.
It seems to run OK.
(...)
Obviously you'll need to be using an Operating System that actually has working 32-bit support... :lol:

Bob
Okay, now you got me! Thank you for your efforts, now I have something to think about.

Mm.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Nikon Capture NX-D

Post by Bob Wya »

np. But the application does (basically) just work out-of-the-box. On a functional OS, anyway! 8)
Locked