Start application from terminal

Questions about Wine on macOS.
Locked
Lyrri
Newbie
Newbie
Posts: 1
Joined: Tue Jul 26, 2016 3:53 am

Start application from terminal

Post by Lyrri »

Hello all,

I need to start *.exe from terminal and I faced with some problem. I double click to AntScope.exe (it is our own aplication for windows) and all work fine (see 1.png). Apllication is started. After that I try to start AntScope.exe from terminal
according to https://www.winehq.org/docs/wineusr-guide/running-wine

Code: Select all

Ashots-MBP:~ Ashot$ /Applications/Wine.app/Contents/Resources/bin/wine ~/.wine/drive_c/AntScope.exe 
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
I got some warning in terminal and window without any elements (see 2.png). I use wine 1.7.37.
Also I noticed that wine processes has different order for norman start and start via terminal.

Normal start:

Code: Select all

ps -ale | grep wine
  501   346   341     4000   0  31  0  3292020  23992 -      S                   0 ??         0:02.82 /Applications/Wine.app/Contents/Resources/bin/wine /Users/Ashot/Socket/AntScope.exe
  501   356     1        0   0  31  0   614116   4100 -      Ss                  0 ??         0:02.86 /Applications/Wine.app/Contents/Resources/lib/../bin/wineserver
  501   363     1     4000   0  31  0  3211140   3664 -      Ss                  0 ??         0:00.12 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\services.exe
  501   365     1     4000   0  31  0  3251468  10316 -      S                   0 ??         0:02.22 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\winedevice.exe MountMgr
  501   367     1     4000   0  31  0  3210940   3380 -      S                   0 ??         0:00.09 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\plugplay.exe
  501   382     1     4000   0  31  0  3259804  13504 -      Ss                  0 ??         0:00.61 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\explorer.exe /desktop
  501   409   396     4006   0  31  0  2424580    368 -      R+                  0 ttys000    0:00.00 grep wine
Ashots-MBP:~ Ashot$ 
Start via terminal:

Code: Select all

Ashots-MBP:~ Ashot$ ps -ale | grep wine
  501   533     1        0   0  31  0   613092   3552 -      Rs                  0 ??         0:00.95 /Applications/Wine.app/Contents/Resources/lib/../bin/wineserver
  501   539     1     4000   0  31  0  3211144   3664 -      Ss                  0 ??         0:00.12 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\services.exe
  501   542     1     4000   0  31  0  3214732   5684 -      S                   0 ??         0:00.17 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\winedevice.exe MountMgr
  501   544     1     4000   0  31  0  3259856  12576 -      Ss                  0 ??         0:00.35 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\explorer.exe /desktop
  501   546     1     4000   0  31  0  3210940   3372 -      S                   0 ??         0:00.09 /Applications/Wine.app/Contents/Resources/lib/../bin/wine C:\windows\system32\plugplay.exe
  501   559   396     4006   0  31  0  2423356    240 -      R+                  0 ttys000    0:00.00 grep wine
  501   531   525     4002   0  31  0  3292508  23032 -      R+                  0 ttys001    0:01.47 /Applications/Wine.app/Contents/Resources/bin/wine /Users/Ashot/.wine/drive_c/AntScope.exe
Ashots-MBP:~ Ashot$ 
Could you give me some advice or direction how I can solve this problem? And why I got different result for double click and start via terminal. I tried to start it under Ubuntu and got correct start.

Thank you.
Attachments
Start via terminal
Start via terminal
Double-click start
Double-click start
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Re: Start application from terminal

Post by dimesio »

That guide is outdated. The current User's Guide is on the wiki. https://wiki.winehq.org/Wine_User%27s_G ... mmand_line

Code: Select all

Ashots-MBP:~ Ashot$ /Applications/Wine.app/Contents/Resources/bin/wine ~/.wine/drive_c/AntScope.exe 
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Obviously you need to fix that.
I use wine 1.7.37.
That version is old and no longer supported. Upgrade to the latest development release. https://wiki.winehq.org/MacOSX
And why I got different result for double click and start via terminal.
Double-clicking in your file manager sets the working directory to the location of the executable. In the terminal, you have to do that (see wiki instructions in the link above).
Locked