Solved WINE on FreeBSD ver 13.1

Sigh...:mad:

Pegasus crashes, even after removing those IERenderer files and the IERenderer directory.

More work to do.

But I am going to bed now.

Again, thanks

Ken
 
Generally, running a Windows application on FreeBSD (either on other *nixes) is a “hit-and-miss” game. ;) You need not only Wine, but sometimes also the correct version of Wine. And even this sometimes will not work. FreeBSD has available in the repository 3 versions of Wine: wine, wine-devel and wine-proton. I would try to install another version of Wine and see what happen.

The second thing to check is applications database for Wine. As I see, there are some problems with Pegasus on Wine: https://appdb.winehq.org/objectManager.php?sClass=version&iId=40720 Maybe the workaround mentioned there will work for you?

Edit: wording

Thanks for the suggestion, and I went to the link you provided. Even so, doing what was suggested there did not make my installation of Pegasus work. It continually crashes on start up. I'll work on it as I have time.

I did get WINE to work just fine. I had to use wine-devel, though. That is version 7.1.5. Maybe a later version will permit Pegasus to work in my FreeBSD ver 13.1, but that is for a later time.

As I have mentioned in the past, this is another successful step in my goal of completely dumping Windows on all our family computers.

In the meantime, I am a fairly happy camper. I'll mark this thread as solved. and again, I thank you all for your help with this..

Ken
 
# pkg install wine-gecko wine-mono wine

I want a 32-bit wine and prefix, so

% /usr/local/share/wine/pkg32.sh install wine mesa-dri
pkg -o ABI=FreeBSD:13:i386 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/bxbzq/.i386-wine-pkg install wine mesa-dri
Updating FreeBSD repository catalogue...
...

$ winetricks
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212-next - sha256sum: 6a36f1911ee48c48978f12a3a0dea33cb871052fcce6910d6e1b664dd9090ac9 with wine-7.0.1 and WINEARCH=win64
winetricks GUI enabled, using zenity 3.42.1

$ WINEARCH=win32 WINEPREFIX=~/.i386-wine-pkg/ winecfg
wine: WINEARCH set to win32 but '/home/bxbzq/.i386-wine-pkg' is a 64-bit installation.

What am I doing wrong?
 
You dont need to specify your wineprefix location into the i386-pkg folder.

Just use the default by dont use the wineprefix env ($HOME/.wine) or use your own folder.
 
OK. Maybe switching between 32 and 64-bit back and forth makes a lot of mess. Now I

Code:
% sudo pkg install wine-gecko wine-mono wine winetricks

% winetricks --self-update

% wine jdk-8u191-windows-x64.exe 
/home/bxbzq/.i386-wine-pkg//usr/local/bin/wine doesn't exist!

Try installing 32-bit Wine with
        /usr/local/share/wine/pkg32.sh install wine mesa-dri

If using Poudriere, please make sure your repo is setup to use FreeBSD:13:i386
and create symlinks for
  FreeBSD:13:amd64 and
  FreeBSD:13:i386
to the relevant output directories. See pkg.conf(5) for more info.

% wine64 jdk-8u191-windows-x64.exe                                                             
bxbzq@AMD_STATION:~/bin % wine64 jdk-8u191-windows-x64.exe 
wine: created the configuration directory '/home/bxbzq/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0)
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0)
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x8000400
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:err:ole:start_rpcss Failed to open RpcSs service
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x8000400
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0048:fixme:imm:ImeSetActiveContext (0x1535d0, 0): stub
0048:fixme:imm:ImmReleaseContext (0000000000010020, 00000000001535D0): stub
002c:fixme:imm:ImeSetActiveContext (0x153150, 1): stub
002c:fixme:imm:ImmReleaseContext (0000000000010050, 0000000000153150): stub
0088:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L\windows\\inf\\wineusb.inf"
0090:fixme:file:NtLockFile I/O completion on lock not implemented yet
0090:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0090:err:mscoree:LoadLibraryShim error reading registry key for installroot
0090:err:mscoree:LoadLibraryShim error reading registry key for installroot
0090:err:mscoree:LoadLibraryShim error reading registry key for installroot
0090:err:mscoree:LoadLibraryShim error reading registry key for installroot
0098:fixme:file:NtLockFile I/O completion on lock not implemented yet
0098:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0098:err:mscoree:LoadLibraryShim error reading registry key for installroot
0098:err:mscoree:LoadLibraryShim error reading registry key for installroot
0098:err:mscoree:LoadLibraryShim error reading registry key for installroot
0098:err:mscoree:LoadLibraryShim error reading registry key for installroot
0098:err:msi:execute_command unable to execute command 1359
0098:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0098:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0090:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0090:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
wine: configuration in L"/home/bxbzq/.wine" has been updated.
00f8:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011B2E8, 0000000000000000 000000000011B2E4
00f8:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011B2E8 0000000000000000 000000000011B2E4) returning amy value (current locale)
00f8:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011B2E8, 0000000000A04BC0 000000000011B2E4
00f8:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011B2E8 0000000000A04BC0 000000000011B2E4) returning amy value (current locale)
0104:fixme:file:NtLockFile I/O completion on lock not implemented yet
0104:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0104:fixme:wincodecs:jpeg_decoder_get_metadata_blocks stub
0104:fixme:imm:ImeSetActiveContext (0x195400, 1): stub
0104:fixme:imm:ImmReleaseContext (0000000000030088, 0000000000195400): stub
0104:fixme:wincodecs:jpeg_decoder_get_metadata_blocks stub
0104:fixme:wincodecs:jpeg_decoder_get_metadata_blocks stub
01f4:fixme:file:NtLockFile I/O completion on lock not implemented yet
01f4:fixme:ieframe:Unknown_QueryInterface The IShellLinkA interface is not yet supported by InternetShortcut
0248:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
An unrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x0000000000e803b4, pid=576, tid=0x0000000000000248
#
# JRE version:  (8.0_191-b12) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 interpreted mode windows-amd64 compressed oops)
# Problematic frame:
# v  ~BufferBlob::get_cpu_info_stub
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Program Files\Java\jdk1.8.0_191\bin\hs_err_pid576.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
0248:fixme:msvcrt:__clean_type_info_names_internal (0000000072072630) stub
0248:fixme:msvcrt:__clean_type_info_names_internal (000000006D965D20) stub
0248:fixme:msvcrt:__clean_type_info_names_internal (0000000071FEB670) stub
0248:fixme:msvcrt:__clean_type_info_names_internal (0000000071DC7010) stub
0248:err:msvcrt:_invalid_parameter (null):0 (null): (null) 0
0104:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0104:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011F7B8, 0000000000000000 000000000011F7B4
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011F7B8 0000000000000000 000000000011F7B4) returning amy value (current locale)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011F7B8, 0000000000A01520 000000000011F7B4
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011F7B8 0000000000A01520 000000000011F7B4) returning amy value (current locale)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011C838, 0000000000000000 000000000011C834
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011C838 0000000000000000 000000000011C834) returning amy value (current locale)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011C838, 0000000000A0A660 000000000011C834
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011C838 0000000000A0A660 000000000011C834) returning amy value (current locale)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011A938, 0000000000000000 000000000011A934
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011A938 0000000000000000 000000000011A934) returning amy value (current locale)
0250:fixme:nls:RtlGetThreadPreferredUILanguages 00000034, 000000000011A938, 0000000000A0A660 000000000011A934
0250:fixme:nls:get_dummy_preferred_ui_language (0x34 000000000011A938 0000000000A0A660 000000000011A934) returning amy value (current locale)

I need to install the jdk. This is the first step of the installation of a package. Obviously the jdk installation failed and I couldn't proceed.
 
You didn't install the 32-bit version of Wine. To run a 32-bit Windows application, you have to do the following steps:

1. Be sure, there is no .wine directory. If any, delete it.
2. Install 64-bit wine with pkg install wine mesa-dri
3. Install 32-bit wine with /usr/local/share/wine/pkg32.sh install wine mesa-dri
4. Run the program with command wine program_name.exe

Don't set any environment variables, unless you want to change the default location of Wine prefix. You don't need to set WINEARCH variable, the default installation is capable to run 64-bit and 32-bit programs out-of-box.

Windows version of Java works in Wine, I was running a couple of Java programs which had Windows launchers (yes, Minecraft works on FreeBSD ;)).
 
You didn't install the 32-bit version of Wine. To run a 32-bit Windows application, you have to do the following steps:

1. Be sure, there is no .wine directory. If any, delete it.
2. Install 64-bit wine with pkg install wine mesa-dri
3. Install 32-bit wine with /usr/local/share/wine/pkg32.sh install wine mesa-dri
4. Run the program with command wine program_name.exe

Don't set any environment variables, unless you want to change the default location of Wine prefix. You don't need to set WINEARCH variable, the default installation is capable to run 64-bit and 32-bit programs out-of-box.

Windows version of Java works in Wine, I was running a couple of Java programs which had Windows launchers (yes, Minecraft works on FreeBSD ;)).
Yesterday I faied both 32 and 64-bit wine. Today I thought 64-bit wine is the default so it should be easier to play with. So I deleted all wine installation, reinstalled it (no /usr/local/share/wine/pkg32.sh install wine mesa-dri) and tried 64-bit jdk to see how it goes. Will try your steps tomorrow.
 
Wine in FreeBSD has WoW64 ("Windows on Windows64") support for quite a while now. Of course, to be able to run 32bit Windows binaries, the 32bit version of Wine must also be installed (that's what this script allows you to do, in a separate prefix so it doesn't conflict on files).

Whether or not you have the 32bit version installed has no influence at all on the ability to run 64bit Windows binaries. Read: Just install it, it won't hurt.

EDIT: keep in mind the versions must match. So when you upgrade your packages, also do /usr/local/share/wine/pkg32.sh upgrade.
 
BTW, Java works in wine-devel 7.21 but not on Wine 7.0

But installing Java itself doesn't work, you need to extract an runtime like openjdk and link to it.
 
Installing java failed.
Tried more installations, there were some completed, but when launch them, many of them give me this error. There are simple ones like 7-zip, notepad++ I can run.
Screenshot from 2023-03-31 22-40-53.png
 
I kind of question the usefulness of installing Java in Wine. Sure, really braindead software exists that manages to even abuse Java for "platform-specific" code ... but that should really be an edge case. If you're confronted with that, complain loudly to the vendor 😈
 
I kind of question the usefulness of installing Java in Wine. Sure, really braindead software exists that manages to even abuse Java for "platform-specific" code ... but that should really be an edge case. If you're confronted with that, complain loudly to the vendor 😈
Never underestimate the malice and incompetence of Java programmers. I should know. I am one of them.
 
Back
Top