Need Help with full functionality

Questions about Wine on macOS.
Locked
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

Need Help with full functionality

Post by pmaxp »

Greetings All.

I have a program that was written for the identification of moths. It is an interactive key that uses text and images to enable one to identify a moth species. The problem is that I cannot figure out how to have the jpg show up as needed in each of the key options. I can make the key work using wine, but the pictures fail to appear. The jpg files are in the proper directory along with the the .exe file and .xid and .dat files. "The key uses XID software developed by Richard Old (http://xidservices.com/). It can be run from a web-based platform or downloaded with the XID runtime software." Please advise. Thank you.

Peter Polshek

PS: Here is a link to the Abstract. Look at the How to Use the Key section.

https://cjai.biologicalsurvey.ca/d_17/d_17.pdf
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

Re: Need Help with full functionality

Post by pmaxp »

Hello all again:

I forgot to post:

Mac OS 10.13.6
Wine 5.0

Ask if you need more details.

Thanks.
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

PLEASE HELP: Re: Need Help with full functionality

Post by pmaxp »

Hello all. So far no response to my pleas. I know there must be somebody out there who can assist me. I have been told that perhaps I need to install "DirectX" to help the code see/retrieve the images. I tried to digure out Winetricks, but could not.

Hoping for the Wine community to guide me.

Thanks to all.
Seda
Level 2
Level 2
Posts: 17
Joined: Tue Jan 07, 2014 9:47 am

Re: Need Help with full functionality

Post by Seda »

Does it give any terminal output indicating it is missing something/needs something? That would likely help someone help you, as without access to the program it's the best information you can share I'm guessing.

(I'm just another Wine user btw)
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

Re: Need Help with full functionality

Post by pmaxp »

Oh, thanks for responding. No errors i the terminal. The original creator had me create an error within the program by removing one of the jpg images from the directory. This showed it was looking for the image. It has been suggested to me to install DirectX or similar through Winetricks, but I cannot seem to figure out how to do that. If you are interested in looking the program over, here is the link: http://cjai.biologicalsurvey.ca/d_17/d_17_download.html
Seda
Level 2
Level 2
Posts: 17
Joined: Tue Jan 07, 2014 9:47 am

Re: Need Help with full functionality

Post by Seda »

Just to make sure we're seeing the same thing;

1. Run the program
2. I click on Lepidoptera of Canada\Key to the Lepidoptera of Canada.xid
This changes the bottom part to a description of that.
3. I click Open XID Database
4. I clicked on Thorax->Dorsal Thoracic Scale Tuft -> Present

I assumed this is meant to show us an image. It wasn't. I did this;

1. Get Winetricks as described here.
https://wiki.winehq.org/Winetricks

2. Create a new 32-bit wineprefix.
e.g.
export WINEPREFIX="/pick/some/folder"
wineboot -u

3. Use Winetricks to install ie8
winetricks ie8
(I chose not to install any additional updates during the installer)

4. Run your program.

And images displayed for me properly then.

There is probably a better way of doing this, but I hope this helps you.
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

Re: Need Help with full functionality

Post by pmaxp »

Seda: Thanks much. However, I am having a heck of a challenge installing Winetricks. I can't successfully install wget, pkg config and homebrew (if I use it). Working at Terminal is beyond my skill set so I do not know how to address the errors I am getting; I am sure it is really easy, but I simply don't know the command language:

configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

or

Alternatively, you may set the environment variables GNUTLS_CFLAGS
and GNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

take care, Peter
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Need Help with full functionality

Post by Gcenx »

MacOSX/macOS doesn’t come with wget but curl, the Winehq wiki was written by Linux users

You can use “curl -O” in place of wget, or install winetricks using homebrew

Code: Select all

brew install winetricks
The above will of course requires homebrew to be installed onto your system to function.

I’d even recommend installing wine using homebrew as it also adds the binaries into your users PATH meaning you can forgo needing to launch the “Wine (app name)” each time you want to use wine
pmaxp
Level 1
Level 1
Posts: 7
Joined: Fri Aug 30, 2019 9:19 am

Re: Need Help with full functionality

Post by pmaxp »

This what happens when I try to install homebrew:

Peters-MacBook-Pro-2:~ PMAXP$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... er/install)"
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... install.sh)"

Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin
mkdir: /usr/local/bin: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin
Peters-MacBook-Pro-2:~ PMAXP$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homeb ... install.sh)"
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/bin

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/bin
mkdir: /usr/local/bin: Not a directory
Failed during: /usr/bin/sudo /bin/mkdir -p /usr/local/bin
Peters-MacBook-Pro-2:~ PMAXP$
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Need Help with full functionality

Post by Gcenx »

I have no clue what “guide” your following but don’t, follow https://brew.sh/

If that still fails you may have the same issue as I have on my system where on Mojave I’m force to disable SIP and keep it disabled for access /usr/local as for some unknown reason SIP started to “protect” /usr/local when it should be ignoring this location
Locked