WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 23 posts ] 



 
Author Message
 Post Posted: Mon Jun 17, 2019 3:53 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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:
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.


Top 
 Post Posted: Mon Jun 17, 2019 6:37 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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:
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:
explorer


then I deleted
Code:
/Unix

and the line after it:
Code:
 /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:
/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
Screenshot from 2019-06-17 12-53-32.png [ 33.11 KiB | Viewed 755 times ]
Top 
 Post Posted: Mon Jun 17, 2019 1:39 pm 
Offline
Level 7
Level 7
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 802
What happens when you just install the program and run it? Just a clean WINEPREFIX, no workarounds or tricks?


Top 
 Post Posted: Mon Jun 17, 2019 5:24 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2682
Location: Cambridge
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:
I AM COMMAND
I AM TERMINAL OUTPUT
I AM FILE BODY

Doing this makes your post a lot easier to read!

Thanks
Bob


Top 
 Post Posted: Tue Jun 18, 2019 2:38 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
@Bob Wya
Quote:
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


Top 
 Post Posted: Tue Jun 18, 2019 5:08 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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:
go to your home folder and remove
 .wine folder

Did that.

Code:
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:
go to software sources
remove wine repositories which you found there

Found nothing with Wine there.

Code:
in a terminal
sudo apt purge winehq*
sudo apt autoremove

Did that, but when I wrote:
Code:
wine --version

I see this:
Code:
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_wipe_the_virtual_Windows_installation.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.


Top 
 Post Posted: Tue Jun 18, 2019 10:48 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
If you want to remove all Wine packages on your system, you could find them with:
Code:
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:
sudo apt purge <package name>

Also include the ":" if it is in the package name.
For example
Code:
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:
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


Top 
 Post Posted: Tue Jun 18, 2019 2:50 pm 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
Thanks, jkfloris!
After
Code:
dpkg -l | grep wine

I saw these:
Code:
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!


Top 
 Post Posted: Wed Jun 19, 2019 2:48 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
Quote:
and I purged them all.
Is it ok now?

Yes, now you can start over again.
Quote:
What should I install next?

Follow the instructions on https://wiki.winehq.org/Ubuntu
and install the winehq-staging package.


Top 
 Post Posted: Wed Jun 19, 2019 3:02 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
Thank you, I successfully did what you recommend.
Now it reads: wine-4.0.1

What should I do next?


Top 
 Post Posted: Wed Jun 19, 2019 9:33 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
Quote:
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:
WINEARCH=win32 wine start /unix </path/to/Pattern/Maker/installer/setup.exe>


Top 
 Post Posted: Wed Jun 19, 2019 9:58 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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:
wine

-then I put this your code with my path with the <>:
Code:
WINEARCH=win32 wine start /unix </home/oks/Desktop/pm4/setup.exe>

and I received this message:
Code:
bash: syntax error near unexpected token `newline'

-I wrote again the code but without the <>:
Code:
WINEARCH=win32 wine start /unix /home/oks/Desktop/pm4/setup.exe

and received this message:
Code:
wine: WINEARCH set to win32 but '/home/oks/.wine' is a 64-bit installation.


Top 
 Post Posted: Wed Jun 19, 2019 11:29 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
You are almost there!
First delete the .wine directory
Code:
rm -rf /home/oks/.wine


Start the setup
Code:
WINEARCH=win32 wine start /unix /home/oks/Desktop/pm4/setup.exe


Top 
 Post Posted: Wed Jun 19, 2019 1:06 pm 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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?


Top 
 Post Posted: Wed Jun 19, 2019 1:54 pm 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
Copy the file to your desktop and you could update with:
Code:
wine start /unix /home/oks/Desktop/updt_4.08.exe


Top 
 Post Posted: Wed Jun 19, 2019 2:16 pm 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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
Screenshot from 2019-06-19 22-16-16.png [ 26.22 KiB | Viewed 654 times ]
Top 
 Post Posted: Fri Jun 21, 2019 12:23 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
Can someone help me regarding the Windows 98 look of the installed software I post in previous message?
Thank you!


Top 
 Post Posted: Fri Jun 21, 2019 5:49 am 
Offline
Level 7
Level 7
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 802
That's how wine looks. Under winecfg->Desktop Integration you can install themes though.


Top 
 Post Posted: Fri Jun 21, 2019 8:27 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
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!


Top 
 Post Posted: Wed Jun 26, 2019 12:57 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
jkfloris wrote:
Quote:
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:
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?


Top 
 Post Posted: Wed Jun 26, 2019 8:44 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
Yes, the steps are the same.


Top 
 Post Posted: Wed Jun 26, 2019 9:14 am 
Offline
Level 2
Level 2

Joined: Mon Jun 17, 2019 3:18 am
Posts: 12
Location: Europe
Thank you, jkfloris, but after following the exact same steps, when I add in Terminal the line with winehq-stagging, I received this:
Code:
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:
Quote:
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?


Top 
 Post Posted: Wed Jun 26, 2019 10:05 am 
Offline
Level 6
Level 6

Joined: Thu Aug 14, 2014 10:10 am
Posts: 510
Try to install the "wine-staging" package:
Code:
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.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 23 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: Bing [Bot] and 13 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: