Pattern Maker for cross stitch in Linux Mint 19.1 (worked)

Questions about Wine on Linux
Locked
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Pattern Maker for cross stitch in Linux Mint 19.1 (worked)

Post by ovisergiu »

Hello!

I tried to install Pattern Maker for cross stitch (a Windows application for creating cross stitch patterns).
ON their webpage, at system requirements:

Code: Select all

Windows® 2000/XP/Vista/7/8/10
Pentium 466MHz (or equiv.) or higher
1024x768 resolution graphics or greater
16-bit color resolution or greater
128 Mbytes of RAM
17 Mbytes of disk space
Mouse or other pointing device
I use: Linux Mint 19.1 x64 Cinnamon
I did these steps:

Terminal:
mkdir Wine
cd Wine/

copied to Wine folder the executable of my software
ll (the executable was listed there)
WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM winecfg

I was prompted to install Wine and I was given these lines and typed them line by line:
sudo apt install wine-development
sudo apt install wine-stable
sudo apt-get install wine32-development

A window shoowed up, clicked OK (noticed "Windows 7" was chosen somewhere in the bottom of the window)
Under "Software Package Manager" I searched for "Winetricks", checked the little square in front of it and installed it by clicking "Apply".

Back in Terminal:
WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM winetricks

Another window showed up:
checked the "Select default prefix" - OK
Next window showed up: "Install Windows DLL or components” - OK
Next window: In checked ”vcrun6 and wsh57” - OK -
Next window: checked the ”Install a font” - OK - then checked the ”corefonts” - OK

Back in Terminal:
WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM wine

After the last line written above, I tried and open the software.
It opened nicely and almost everything was ok, except the „minimize+maximize+close” icons, who showed up badly.

Then I did these replacements and modifications (from the same video tutorial that showed me to do everything I did above):
I opened with Kate editor the shortcut of my software called ”Pattern Maker for cross stitch, Pro.desktop” (located in /home/oks/.local/share/applications/wine/Programs/Pattern Maker for cross stitch - v4)
I replaced the:
„C:\\\\windows\\\\command\\\\start.exe”
with explorer

then I deleted /Unix
and the line after it: /home/oks/Wine/PM/dosdevices/c:/users/oks/Start\\ Menu/Programs/Pattern\\ Maker\\ for\\ cross\\ stitch\\ -\\ v4/Pattern\\ Maker\\ for\\ cross\\ stitch,\\ Pro.lnk
and put these:
/desktop=pmdesk, 1920x1080 “/home/oks/Wine/PM/drive_c/Program Files/HobbyWare/Pattern Maker for cross stitch/program_v4/pmaker.exe”

And of course, the program won't open anymore. It is just opening a blue square window that contains nothing.
I tried to revert the last changes by retyping the original lines but nothing happens, only the blue square window does not show up.
What did I do wrong? Can this be fixed?

Any help would be kindly appreciated.
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

It seems I can not edit the original post, but I found some mistakes I did when writing and I believe I have to correct them.
For easier reading I copied and corrected the original post here>

Terminal:
mkdir Wine
cd Wine/

copied to Wine folder the executable of my software
ll (the executable was listed there)
WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM winecfg

I was prompted to install Wine and I was given these lines and typed them line by line:
sudo apt install wine-development
sudo apt install wine-stable
sudo apt-get install wine32-development

A window shoowed up, clicked OK (noticed "Windows 7" was chosen somewhere in the bottom of the window)
Under "Software Package Manager" I searched for "Winetricks", checked the little square in front of it and installed it by clicking "Apply".

Back in Terminal:
WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM winetricks

Another window showed up:
checked the "Select default prefix" - OK
Next window showed up: "Install Windows DLL or components” - OK
Next window: In checked ”vcrun6 and wsh57” - OK -
Next window: checked the ”Install a font” - OK - then checked the ”corefonts” - OK

Back in Terminal:

Code: Select all

WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM wine setup.exe
The installer showed up, Next-next and there it was, my Pattern Maker installed succesfully.
I even managed to make it to update itslelf and I had another update in a different .exe file which I managed to do it flawlessly using "WINEARCH=win32 WINEPREFIX=/home/oks/Wine/PM wine update_to_4.08.exe"

After the last line written above, I tried and open the software.
It opened nicely and almost everything was ok, except the „minimize+maximize+close” icons, who showed up badly (see attached picture) and the color of window looks lik Winows 95/98...

Then I did these replacements and modifications (from the same video tutorial that showed me to do everything I did above):
I opened with Kate editor the shortcut of my software called ”Pattern Maker for cross stitch, Pro.desktop” (located in /home/oks/.local/share/applications/wine/Programs/Pattern Maker for cross stitch - v4)
I replaced the:
„C:\\\\windows\\\\command\\\\start.exe”
with

Code: Select all

explorer


then I deleted

Code: Select all

/Unix
and the line after it:

Code: Select all

 /home/oks/Wine/PM/dosdevices/c:/users/oks/Start\\ Menu/Programs/Pattern\\ Maker\\ for\\ cross\\ stitch\\ -\\ v4/Pattern\\ Maker\\ for\\ cross\\ stitch,\\ Pro.lnk
and put these:

Code: Select all

/desktop=pmdesk, 1920x1080 “/home/oks/Wine/PM/drive_c/Program Files/HobbyWare/Pattern Maker for cross stitch/program_v4/pmaker.exe”
And of course, the program won't open anymore. It is just opening a blue square window that contains nothing.
I tried to revert the last changes by retyping the original lines but nothing happens, only the blue square window does not show up.
What did I do wrong? Can this be fixed?

Update: I reinstall successfully the same software in another bottle of Wine, but did not modify the shortcut with Kate (as previously did).
The program works almost perfect (the Windows 95/98 look of its window and the maximize-minimize-close icons are still messed up)
Is there a Windows component or DLL I should have checked at a previous step?
What is your opinion?

Any help would be kindly appreciated.
Attachments
Screenshot from 2019-06-17 12-53-32.png
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by DarkShadow44 »

What happens when you just install the program and run it? Just a clean WINEPREFIX, no workarounds or tricks?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by Bob Wya »

ovisergiu wrote:...
And of course, the program won't open anymore. It is just opening a blue square window that contains nothing.
I tried to revert the last changes by retyping the original lines but nothing happens, only the blue square window does not show up.
What did I do wrong? Can this be fixed?

Any help would be kindly appreciated.
@ovisergiu

Seriously could we just have the edited highlights... Your post is seriously tl;dr.

Does the application still open, when launched directly from a terminal window?
If so then just post your full desktop file, with forum Code tags, and we'll help you fix it.

There's no point installing the winetricks package on Debian / Ubuntu... It's months/years out-of-date.
See: Github: bobwya/winetricks README.md.

You'll also need to install an up-to-date version of Wine (version 3.0, of Wine, is obsolete).
See: WineHQ Download: Ubuntu.
I'd probably recommend the winehq-staging package - to avoid the faudio packaging issues (on Debian / Ubuntu)!

The wine-development package is required to build Wine from source i.e. you probably don't need that!

Please stick to using the forum Code tags for file bodies, all terminal commands and output, etc.

Code: Select all

I AM COMMAND
I AM TERMINAL OUTPUT
I AM FILE BODY
Doing this makes your post a lot easier to read!

Thanks
Bob
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

@Bob Wya
The wine-development package is required to build Wine from source i.e. you probably don't need that!
The "wine-development" package is the Debian/Ubuntu version of the "winehq-devel" package.
As we are used to from Debian, they are a bit behind. Version 4.2
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

DarkShadow44 wrote:What happens when you just install the program and run it? Just a clean WINEPREFIX, no workarounds or tricks?
I am not sure what do you mean with „just install the program and run it” and the clean WINEPREFIX with/without tricks since I am a beginner. :(
Bob Wya wrote: Seriously could we just have the edited highlights... Your post is seriously tl;dr.
You'll laugh but I did highlight every code used and after previewing it I thought it was disturbing since there were several code lines.
I did tried to edit the original post but I wasn't allowed, and I also noticed I forgot something to add so I made the second post and tried to use the code tags, but not fully.
I am really sorry for this and I will be careful to use the tags and follow forum's rules.
Bob Wya wrote: Does the application still open, when launched directly from a terminal window?
If so then just post your full desktop file, with forum Code tags, and we'll help you fix it.
I do not know how to do this and I delete "everything" I guess by following these lines from a tutorial:. :oops:

Code: Select all

go to your home folder and remove
 .wine folder
Did that.

Code: Select all

in a terminal
cd $HOME
rm .config/menus/applications-merged/wine*
rm -r .local/share/applications/wine
rm .local/share/desktop-directories/wine*
rm .local/share/icons/????_*.xpm
Did that

Code: Select all

go to software sources
remove wine repositories which you found there
Found nothing with Wine there.

Code: Select all

in a terminal
sudo apt purge winehq*
sudo apt autoremove
Did that, but when I wrote:

Code: Select all

wine --version
I see this:

Code: Select all

wine-3.6 (Ubuntu 3.6-1
Bob Wya wrote: There's no point installing the winetricks package on Debian / Ubuntu... It's months/years out-of-date.
See: Github: bobwya/winetricks README.md.
You'll also need to install an up-to-date version of Wine (version 3.0, of Wine, is obsolete).
See: WineHQ Download: Ubuntu.
I'd probably recommend the winehq-staging package - to avoid the faudio packaging issues (on Debian / Ubuntu)!
The wine-development package is required to build Wine from source i.e. you probably don't need that!
(...)
Since I am a beginner, I need a little bit of extra-explaining and I thank you for all you wrote me.
I guess somehow I need to unninstall the Wine I have on my Mint 19.1 and even in the "https://wiki.winehq.org/Ubuntu" I read I have to unninstall previous versions in order to avoid conflicts.
I read the "https://wiki.winehq.org/FAQ#How_do_I_wi ... llation.3F" and the "https://wiki.winehq.org/FAQ#Uninstalling" and I did delete the .wine folder.
In Software Package Manager I could see these "wine" green things but I am not sure I have to unninstall all of them (the green ones).
If you can and if you have more patience with me, can you please tell me what should I do first?

Thank you very much.
Ovi.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

If you want to remove all Wine packages on your system, you could find them with:

Code: Select all

dpkg -l | grep wine
This will print a list with all installed packages which contain "wine" in the second column.

You could remove them with:

Code: Select all

sudo apt purge <package name>
Also include the ":" if it is in the package name.
For example

Code: Select all

sudo apt purge wine32:i386
If you are unsure if you should remove a package, please post the output of "dpkg -l | grep wine"

When all the wine packages are removed, run:

Code: Select all

sudo apt-get autoremove --purge
This command will also remove all packages which where installed with wine.
Note: Again, if you are unsure if you need these packages, please post the output.

Now you could follow the installation instructions on https://wiki.winehq.org/Ubuntu
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thanks, jkfloris!
After

Code: Select all

dpkg -l | grep wine

I saw these:

Code: Select all

ii  libwine-development:amd64                     3.6-1                                                       amd64        Windows API implementation - library
ii  libwine-development:i386                      3.6-1                                                       i386         Windows API implementation - library
ii  wine-development                              3.6-1                                                       all          Windows API implementation - standard suite
ii  wine-stable                                   4.0~bionic                                                  amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-amd64                             4.0~bionic                                                  amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-i386:i386                         4.0~bionic                                                  i386         WINE Is Not An Emulator - runs MS Windows programs
ii  wine32-development:i386                       3.6-1                                                       i386         Windows API implementation - 32-bit binary loader
ii  wine64-development                            3.6-1                                                       amd64        Windows API implementation - 64-bit binary loader
ii  winetricks
and I purged them all.
Is it ok now?

What should I install next?
Thank you!
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

and I purged them all.
Is it ok now?
Yes, now you can start over again.
What should I install next?
Follow the instructions on https://wiki.winehq.org/Ubuntu
and install the winehq-staging package.
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thank you, I successfully did what you recommend.
Now it reads: wine-4.0.1

What should I do next?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

I successfully did what you recommend.
Not exactly. You have installed wine-stable instead of wine-staging, but we will continue.

Create a 32-bit wineprefix and start the Pattern Maker installer.

Code: Select all

WINEARCH=win32 wine start /unix </path/to/Pattern/Maker/installer/setup.exe>
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Here is what I tried:
- on my Mint's desktop I have a folder called "pm4" with Pattern Maker's setup.exe in it. (the path is: /home/oks/Desktop/pm4/setup.exe)
- opened a Terminal window and wrote this:

Code: Select all

wine
-then I put this your code with my path with the <>:

Code: Select all

WINEARCH=win32 wine start /unix </home/oks/Desktop/pm4/setup.exe>
and I received this message:

Code: Select all

bash: syntax error near unexpected token `newline'
-I wrote again the code but without the <>:

Code: Select all

WINEARCH=win32 wine start /unix /home/oks/Desktop/pm4/setup.exe

and received this message:

Code: Select all

wine: WINEARCH set to win32 but '/home/oks/.wine' is a 64-bit installation.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

You are almost there!
First delete the .wine directory

Code: Select all

rm -rf /home/oks/.wine
Start the setup

Code: Select all

WINEARCH=win32 wine start /unix /home/oks/Desktop/pm4/setup.exe
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thank you!
I managed to do that and the installer started, I installed it even updated it via its „Check for updates”.
But the very last update is not available through auto-update. The creator offered a file called „updt_4.08.exe”.
How can I update to that one? Where to copy and how to start it?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

Copy the file to your desktop and you could update with:

Code: Select all

wine start /unix /home/oks/Desktop/updt_4.08.exe
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thank you, it worked!
Is there something we could do so the window would not look like Windows 98 anymore?
Attachments
Screenshot from 2019-06-19 22-16-16.png
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Can someone help me regarding the Windows 98 look of the installed software I post in previous message?
Thank you!
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by DarkShadow44 »

That's how wine looks. Under winecfg->Desktop Integration you can install themes though.
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thank you @DarkShadow44 for your reply!
I will get used to that. I thought it was something that I did wrong.
Thank you @jkfloris for your wonderful help!
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

jkfloris wrote:
I successfully did what you recommend.
Not exactly. You have installed wine-stable instead of wine-staging, but we will continue.

Create a 32-bit wineprefix and start the Pattern Maker installer.

Code: Select all

WINEARCH=win32 wine start /unix </path/to/Pattern/Maker/installer/setup.exe>
I have reinstalled my PC, same OS.
If I install this time wine-stagging (cause last tipe I installed wine-stable by mistake) are the next steps identical to install Pattern Maker?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

Yes, the steps are the same.
ovisergiu
Level 2
Level 2
Posts: 29
Joined: Mon Jun 17, 2019 3:18 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by ovisergiu »

Thank you, jkfloris, but after following the exact same steps, when I add in Terminal the line with winehq-stagging, I received this:

Code: Select all

sudo apt install --install-recommends winehq-staging
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-staging : Depends: wine-staging (= 4.11~bionic)
E: Unable to correct problems, you have held broken packages.
It's true, on the page (https://wiki.winehq.org/Ubuntu) is written:
If apt complains about missing dependencies, install them, then repeat the last two steps (update and install).
But, what dependencies? How to install them?
Could you help me, please?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by jkfloris »

Try to install the "wine-staging" package:

Code: Select all

sudo apt install wine-staging
Probably you will get an error about an other packages that couldn't be installed. Try to install those packages by hand, until you found the package which is blocking the Wine installation. Usually this a package from a non-default ppa.
RAILITYSA
Newbie
Newbie
Posts: 2
Joined: Thu Aug 01, 2019 1:54 pm

Re: Pattern Maker for cross stitch in Linux Mint 19.1 (worke

Post by RAILITYSA »

RAILITYSA wrote:
ovisergiu wrote:Thank you @DarkShadow44 for your reply!
I will get used to that. audacity find my iphone origin I thought it was something that I did wrong.
Thank you @jkfloris for your wonderful help!
That's how wine looks. Under winecfg->Desktop Integration you can install themes though.
I will get used to that. I thought it was something that I did wrong.
Locked