🫠

wine install trouble shooting for Ubuntu

2024/12/06に公開

My case: old repository list

邦題:FFベンチを動かしたい

  1. rename the source.list file as below
  • Just in case, It is recommended rename the list file.
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
  1. Create new sources.list
  • Retreived from github.

https://gist.github.com/hakerdefo/9c99e140f543b5089e32176fe8721f5f

sudo nano /etc/apt/sources.list
sudo apt update
sudo apt install --install-recommends winehq-stable

  1. wine version check
$ wine --version
wine-9.0

  1. wine version update
  • Default browser is Internet explorer. we should install other.

https://gitlab.winehq.org/wine/wine/-/wikis/Gecko

wineboot
wine: created the configuration directory '/home/askengi/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
004c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0054:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0054:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0054:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0054:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0054:err:ole:start_rpcss Failed to open RpcSs service
004c:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
004c:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
004c:err:ole:apartment_get_local_server_stream Failed: 0x80004002
009c:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
009c:fixme:file:NtLockFile I/O completion on lock not implemented yet
009c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00ac:fixme:file:NtLockFile I/O completion on lock not implemented yet
00ac:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00ac:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
00ac:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0114:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
013c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
013c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
013c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
013c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
wine: configuration in L"/home/askengi/.wine" has been updated.

wine msiexec /i wine-gecko-2.47.4-x86_64.msi

  1. Install Winetricks / vulkan /
  • Convenience for additional components.
sudo apt install winetricks

  • Install Vulkan
sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:i386
sudo apt install mesa-vulkan-drivers mesa-vulkan-drivers:amd64

Install DirectX components

https://qiita.com/yakitatata/items/35208cffde2875e0f8b4

  1. Install DirectX components
  • winetricks + needed components
  • My reference article is above
wine dxdiag

ん?DirectX 9だと??

  • まずはDirectX 10/11/12のAPIをVulkan APIに変換する目的でdxvk
winetricks dxvk

Direct X12 install

https://github.com/naxl/directx12offline

  • こちらより、力技でホーム直下クローン
cd   ~/.wine/drive_c/users
~/.wine/drive_c/users$ git clone https://github.com/naxl/directx12offline.git

DirectXは9のまま

  • “ファイナルファンタジーXIV(FINAL FANTASY XIV)”の公式ベンチマークソフト

FF Bench のバージョンを下げるのとコンポーネント追加

winetricks

  • 一応、できる限りDirectXに関係しそうなコンポーネントを追加
  • .NETは一通りインストールが済んでいればアイコンの直接クリックでインストールは可能

参照元サイトではdxvkがDirectX 11をインストールとあった

  • Qiita の@yakitatata さんの記事(上部リンク参照)

dxvkでDirectX11もついてくるようです。
この状態でffxv.exeを起動するとスコアが随分上がると思います。
(自分は1500台→4000強になりました。)

  • FF bench のバージョンを下げてみます

https://www.guru3d.com/download/final-fantasy-xiv-heavensward-benchmark-download/

動作へ(Working)

  • RTX 4070で動作確認です。1270x720なのでスコア高くなってますね。

  • 10000ちょいといったScoreでした

Reference

Arch Linux

https://miyacopl.hatenablog.com/entry/2019/04/12/191425

Plamo Linux

https://gihyo.jp/lifestyle/serial/01/ganshiki-soushi-2/0034

Discussion