Hikvision iVMS client not running in wine-staging

Questions about Wine on Linux
Post Reply
agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Hikvision iVMS client not running in wine-staging

Post by agorwadia » Sat Dec 22, 2018 6:08 am

I have installed iVMS-4200 Lite (v1.0.0.4) - downloaded the exe from HikVision's own website.
Installed it with wine. I have installed wine64 as default for my system.

Upon opening the desktop shortcut nothing happened. So I looked into it, came across MakeUseOff website and tried

Code: Select all

wine ivms-4200 Lite.exe &> debug.txt 
and got the following error messages. Not sure what it means. I find it strange why wine is looking for IVMS-4200.exe in system32 folder. Also, I am unsure about the NPF driver issue.

I am very new to wine. I tried testing my current wine installation with Notepad++ and worked fine.

IVMS-4200 program is mentioned on winehq as a positive - there are people using it without any issues.

for info: - I am using MX Linux 17. Installed winehq-staging from MX Package Installer as per MX Linux guidelines.

Any help would be greatly appreciated.

Ankit

-------------- debug.txt output ----------------
  • fixme:winediag:start_process Wine Staging 2.21 is a testing version containing experimental patches.
    fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
    fixme:ndis:NdisRegisterProtocol (0x53e078, 0x6475e8, 0x53df00, 208): stub
    err:winedevice:async_create_driver failed to create driver L"NPF": c0000001
    wine: cannot find L"C:\\windows\\system32\\IVMS-4200.exe"

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Sat Dec 22, 2018 10:21 am

wine ivms-4200 Lite.exe &> debug.txt
Put quotes around the name

Code: Select all

wine "ivms-4200 Lite.exe"

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Sun Dec 23, 2018 12:43 am

Not sure how your suggestion would help the matter because I do not believe the problem is regarding running the app, its the reason for not running.

Anyways, when I tried with the "" quotes, error message was:

Code: Select all

wine: cannot find 'ivms-4200 Lite.exe'

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Mon Dec 24, 2018 6:56 am

wine: cannot find L"C:\\windows\\system32\\IVMS-4200.exe"
and
wine: cannot find 'ivms-4200 Lite.exe'
In both cases there is a message that there is no file named "ivms-4200" or "ivms-4200 Lite.exe"
Are you in the directory where the exe-file is when you run the wine command?

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Mon Dec 24, 2018 11:14 pm

Dear jkfloris,

Thanks for correcting me. I was not investigating the issue correctly.

Having navigated to the appropriate directory I ran the code again and I got the below set of error messages.

It appears that there are a couple of issues: one with NPF driver and ODBC driver and other with some DLL files. What I find strange is that IVMS client programs has been tested and reported OK by other users on WineHQ so I am unsure why I am getting this issue?

The NPF driver issues appears to be more generic to my wine as I got it even when incorrect file path was specified, as seen in my last error log. The other errors should be specific to this program, I believe.

I am running wine-2.21 (Staging) which I downloaded with MX Package Installer and I am using 64 bit prefix.

Any thoughts on how to resolve these errors??

Thanks,
A

Code: Select all

$ wine --version
wine-2.21 (Staging)
ERROR LOG
fixme:winediag:start_process Wine Staging 2.21 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:ndis:NdisRegisterProtocol (0x53e078, 0x6475e8, 0x53df00, 208): stub
err:winedevice:async_create_driver failed to create driver L"NPF": c0000001
err:winediag:ODBC_LoadDriverManager failed to open library "libodbc.so.2": libodbc.so.2: cannot open shared object file: No such file or directory
err:module:attach_process_dlls "log4cxx.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\iVMS-4200 Lite\\ivms-4200 Lite.exe" failed, status e06d7363

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Tue Dec 25, 2018 12:00 pm

What I find strange is that IVMS client programs has been tested and reported OK by other users on WineHQ so I am unsure why I am getting this issue?
According to the Wine AppDB [1], the application gets a gold rating in a 32-bit prefix and some winetricks overrides:

Code: Select all

winetricks -q jet40 mdac28 riched30 windowscodecs wininet vcrun6 wsh56
[1] https://appdb.winehq.org/objectManager. ... &iId=35493

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Sat Dec 29, 2018 7:08 am

Dear jkfloris,

Thanks for the clarification. I did wonder what the line under 'Additional Comments' meant. Very new to Linux you see and especially wine so I couldn't guess it was a requirement.

Anyhow, I am have installed wine64 prefix. So should I create a separate win32 prefix and re-install IVMS? Or should it work with this installation? I would guess the latter but I am unsure.

I presume the winetricks overides have to be run every time or is it at install only?

Would you be able to provide some further guidance please?

Much appreciated.

Thanks,
AG

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Sat Dec 29, 2018 10:52 am

Anyhow, I am have installed wine64 prefix. So should I create a separate win32 prefix and re-install IVMS? Or should it work with this installation?
If you have other applications installed in the default wineprefix, then I recommend to create a new wineprefix. The winetricks overrides can break the other programs.
By trial and error you can find out if the 32-bit prefix is still necessary.
I presume the winetricks overides have to be run every time or is it at install only?
Winetricks installs some dll-files, so you only have to run this command once.

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Mon Dec 31, 2018 7:24 am

Dear jkfloris,

Thanks for the clarification. I wiped the 64-bit prefix to be safe and installed a fresh 32-bit prefix. All went ok till then.

Then I ran the winetricks code and got the below set of failure messages. Apparently winetricks is trying to fetch files from Windows servers and unable to get all of what it asks for. Perhaps files have been moved.

Any idea how I can get around it?

Thanks,
AG

Code: Select all

winetricks -q jet40 mdac28 riched30 windowscodecs wininet vcrun6 wsh56
Using winetricks 20170101 - sha1sum: c844fda0cca25ac9ed0ed1b55cd138cab6a4af16 with wine-2.21 (Staging) and WINEARCH=win32
Executing w_do_call jet40
Executing load_jet40 
Executing w_do_call mdac27
Executing load_mdac27 
Executing mkdir -p /home/ankit/.cache/winetricks/mdac27
Executing cd /home/ankit/.cache/winetricks/mdac27
Downloading http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe to /home/ankit/.cache/winetricks/mdac27
--2018-12-31 17:51:38--  http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe
Resolving download.microsoft.com (download.microsoft.com)... 23.57.113.23, 2600:1411:0:1a3::e59, 2600:1411:0:182::e59
Connecting to download.microsoft.com (download.microsoft.com)|23.57.113.23|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-12-31 17:51:40 ERROR 404: Not Found.

Executing cd /home/ankit/.cache/winetricks/mdac27
Downloading https://web.archive.org/web/http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe to /home/ankit/.cache/winetricks/mdac27
--2018-12-31 17:51:41--  https://web.archive.org/web/http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe
Resolving web.archive.org (web.archive.org)... 207.241.224.26
Connecting to web.archive.org (web.archive.org)|207.241.224.26|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://web.archive.org/web/20170101154733/http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe [following]
--2018-12-31 17:51:44--  https://web.archive.org/w
eb/20170101154733/http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe
Reusing existing connection to web.archive.org:443.
HTTP request sent, awaiting response... 404 Not Found
2018-12-31 17:51:46 ERROR 404: Not Found.

------------------------------------------------------
Downloading https://web.archive.org/web/http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe failed
------------------------------------------------------

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Mon Dec 31, 2018 9:44 am

Using winetricks 20170101 - sha1sum: c844fda0cca25ac9ed0ed1b55cd138cab6a4af16 with wine-2.21 (Staging) and WINEARCH=win32
Your winetricks version is to old. Please update to a newer version
https://wiki.winehq.org/Winetricks

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Tue Jan 01, 2019 4:30 am

Dear jkfloris,

Updated winetricks to the latest version and was managed to run IVMS as I do in my Win10.

Thanks very much for your patience and assistance.

When I ran winetricks command a message I remember noticing was that my wine is v2.2 and it recommended using 3.0. Now, I recently moved from using Ubuntu to MX Linux and so far I have only used MX package manager to install winehq/winestaging. I would really like to update wine to v3.0 as recommended by winetricks but I would like to do it in a manner that does't steer me off the package manager of MX Linux.

Is there a stable and reliable way of upgrading wine without causing any grief?

Thanks,
Regards

jkfloris
Level 6
Level 6
Posts: 663
Joined: Thu Aug 14, 2014 10:10 am

Re: Hikvision iVMS client not running in wine-staging

Post by jkfloris » Tue Jan 01, 2019 7:40 am

MX Linux is Debian Stable based. You should be able to use the Debian Stable (Stretch) WineHQ repository.
https://wiki.winehq.org/Debian

agorwadia
Level 1
Level 1
Posts: 7
Joined: Sat Dec 22, 2018 5:57 am

Re: Hikvision iVMS client not running in wine-staging

Post by agorwadia » Sat Jan 05, 2019 11:01 pm

Dear jkfloris,

Thanks for the input, I shall give it a try.

AG

Post Reply