Wine Build on Ubuntu 22.04

Questions about Wine on Linux
Locked
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Wine Build on Ubuntu 22.04

Post by jstromsoe »

All,

Having some issues building Wine (stable branch, cloned from c7c729c0db7c3e246182a890de4c606f3e394d0e).

Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy

Following instructions here:
https://wiki.winehq.org/Building_Wine#Shared_WoW64

I'm building Wine from scratch because as of this writing there is no build for jammy (it's brand new).

I'm able to successfully build for 64 bit Wine using:
```
cd ~/wine-dirs/wine64-build/
../wine-source/configure --enable-win64
make
```
When I try to build for 32 bit (2nd part of instructions)
```
cd ~/wine-dirs/wine32-build/
PKG_CONFIG_PATH=/usr/lib32 ../wine-source/configure --with-wine64=../wine64-build
make
```

I make it pretty far into the compile but it errors out on :
```
gcc -m32 -o dlls/capi2032/capi2032.so -shared -Wl,-Bsymbolic -Wl,-soname,capi2032.so -Wl,-z,defs dlls/capi2032/unixlib.o dlls/ntdll/ntdll.so
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_isinstalled':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:117: undefined reference to `capi20_isinstalled'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_get_profile':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:112: undefined reference to `capi20_get_profile'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_get_serial_number':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:105: undefined reference to `capi20_get_serial_number'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_get_version':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:93: undefined reference to `capi20_get_version'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_get_manufacturer':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:85: undefined reference to `capi20_get_manufacturer'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_waitformessage':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:78: undefined reference to `capi20_waitformessage'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_get_message':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:71: undefined reference to `capi20_get_message'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_put_message':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:63: undefined reference to `capi20_put_message'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_release':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:56: undefined reference to `capi20_release'
/usr/bin/ld: dlls/capi2032/unixlib.o: in function `capi_register':
/home/jstromsoe/wine-dirs/wine-build-32/../wine-source/dlls/capi2032/unixlib.c:48: undefined reference to `capi20_register'
collect2: error: ld returned 1 exit status
```

Anyone have any ideas ? Any help super appreciated.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

A few things you can try:
- Build without PKG_CONFIG_PATH=/usr/lib32
I believe the gstreamer problem is solved in newer versions.

- Build without CAPI (Do you need ISDN support?)

Code: Select all

../wine-source/configure --without-capi --with-wine64=../wine64-build 
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

Sooo close. I ran again with --without-capi and that got much further into the compile. I believe per the instructions you NEED to specify PKG_CONFIG to a 32 bit set of libraries or none of what's being attempted with WoW (32 bit support win apps) would be accomplished. So I left that as you can see, but got another compiler error. Do I need to go install a 32 bit gstreamer version? If so, which and what dependencies? Thanks in advance!

gcc -m32 -o dlls/winegstreamer/winegstreamer.so -shared -Wl,-Bsymbolic -Wl,-soname,winegstreamer.so -Wl,-z,defs \
dlls/winegstreamer/wg_parser.o dlls/ntdll/ntdll.so -lgstvideo-1.0 -lgstaudio-1.0 -lgstbase-1.0 \
-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so when searching for -lgstvideo-1.0
/usr/bin/ld: cannot find -lgstvideo-1.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstvideo-1.0.so when searching for -lgstvideo-1.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so when searching for -lgstaudio-1.0
/usr/bin/ld: cannot find -lgstaudio-1.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstaudio-1.0.so when searching for -lgstaudio-1.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so when searching for -lgstbase-1.0
/usr/bin/ld: cannot find -lgstbase-1.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so when searching for -lgstbase-1.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so when searching for -lgstreamer-1.0
/usr/bin/ld: cannot find -lgstreamer-1.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so when searching for -lgstreamer-1.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgobject-2.0.so when searching for -lgobject-2.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgobject-2.0.a when searching for -lgobject-2.0
/usr/bin/ld: cannot find -lgobject-2.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libgobject-2.0.so when searching for -lgobject-2.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libglib-2.0.so when searching for -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libglib-2.0.a when searching for -lglib-2.0
/usr/bin/ld: cannot find -lglib-2.0: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libglib-2.0.so when searching for -lglib-2.0
collect2: error: ld returned 1 exit status
make: *** [Makefile:215705: dlls/winegstreamer/winegstreamer.so] Error 1
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

Do I need to go install a 32 bit gstreamer version? If so, which and what dependencies?
You need the 32 bit version of libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev

Code: Select all

sudo apt install libgstreamer1.0-dev:i386 libgstreamer-plugins-base1.0-dev:i386
But configure should report which parts were not found.
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

SO. Finally installed 32bit gstreamer and ran

Code: Select all

PKG_CONFIG_PATH=usr/lib32 ../wine-source/configure --with-wine64=../wine-build-64 --without-capi
All worked fine. Then ran make. Also completed normally. Then I tried to run an installer, and all the install windows looked pretty normal. The program I'm trying to run is called ReelSteadyGo (which takes GoPro footage and smooths it based on accel/gyro inputs from the camera).

That said the menu items are all missing. Am I missing further dependencies or languages ? See attached.

Thanks very much for your help!!
Attachments
Screenshot from 2022-04-06 18-48-17.png
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

I don't know which font is missing exactly, but with winetricks allfonts the screens are readable.
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

tried that, got:

Code: Select all

jstromsoe@jstromsoe-precision-7740-garage:~/wine-dirs/wine-build-32$ winetricks allfonts
Executing mkdir -p /home/jstromsoe
------------------------------------------------------
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.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 28
drwxrwxr-x  7 jstromsoe jstromsoe 4096 Apr  3 16:36 .
drwxrwxr-x  4 jstromsoe jstromsoe 4096 Apr  6 19:24 ..
drwxrwxr-x  3 jstromsoe jstromsoe 4096 Apr  3 16:36 ProgramData
drwxrwxr-x  8 jstromsoe jstromsoe 4096 Apr  6 19:09 Program Files
drwxrwxr-x  6 jstromsoe jstromsoe 4096 Apr  6 18:47 Program Files (x86)
drwxrwxr-x  4 jstromsoe jstromsoe 4096 Apr  3 16:36 users
drwxrwxr-x 21 jstromsoe jstromsoe 4096 Apr  6 18:47 windows

Registry info:
/home/jstromsoe/.wine/system.reg:#arch=win64
/home/jstromsoe/.wine/user.reg:#arch=win64
/home/jstromsoe/.wine/userdef.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
Then I launched the app and got the same blank windows... It also appears I'm running a 64 bit prefix and I'm not sure that's right (despite the fact that my 32 bit build has all the right libraries included).

-Jeremy
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

Code: Select all

warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
Something went wrong when compiling or installing Wine.
Did you also install the Ubuntu version of Wine?
Then I launched the app and got the same blank windows... It also appears I'm running a 64 bit prefix and I'm not sure that's right (despite the fact that my 32 bit build has all the right libraries included).
Winetricks hasn't changed anything, so it makes sense that you get the same error.
Wine creates a 64-bit prefix by default. This prefix can also handle 32-bit programs. Many 64-bit Windows programs contain 32-bit components.
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

I don’t have the Ubuntu wine version installed because it doesn’t exist for 22.04, which is my primary motivation for building it myself. What’s the best way to figure out what’s wrong with compile and install?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

What does the following command return?

Code: Select all

wine cmd /c set
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

jkfloris wrote: Fri Apr 08, 2022 10:45 am What does the following command return?

Code: Select all

wine cmd /c set

Code: Select all

jstromsoe@jstromsoe-precision-7740-garage:~/wine-dirs/wine-build-32$ wine cmd /c set
_=/usr/bin/wine
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\users\jstromsoe\AppData\Roaming
CLIENTNAME=Console
COLORTERM=truecolor
CommonProgramFiles=C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=JSTROMSOE-PRECI
ComSpec=C:\windows\system32\cmd.exe
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:1
GDMSESSION=ubuntu
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/5c268ae5_36ad_4b8c_a5bd_1047178bf0ac
GNOME_TERMINAL_SERVICE=:1.154
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOMEDRIVE=C:
HOMEPATH=\users\jstromsoe
LANG=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOCALAPPDATA=C:\users\jstromsoe\AppData\Local
LOGNAME=jstromsoe
LOGONSERVER=\\JSTROMSOE-PRECI
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:
*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01
;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31
:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35
:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;
35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.
xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra
=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
NUMBER_OF_PROCESSORS=12
OLDPWD=/home/jstromsoe/wine-dirs/wine-build-32/programs
OS=Windows_NT
PATH=C:\windows\system32;C:\windows;C:\windows\system32\wbem;C:\windows\system32\WindowsPowershell\v1.0
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_ARCHITEW6432=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=9e0d
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files (x86)
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PUBLIC=C:\users\Public
SESSION_MANAGER=local/jstromsoe-precision-7740-garage:@/tmp/.ICE-unix/2391,unix/jstromsoe-precision-7740-garage:/tmp/.ICE-unix/2391
SESSIONNAME=Console
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_LAUNCHER=gnome-keyring
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SYSTEMD_EXEC_PID=2529
SystemDrive=c:
SYSTEMROOT=C:\windows
TEMP=C:\users\jstromsoe\Temp
TERM=xterm-256color
TMP=C:\users\jstromsoe\Temp
USER=jstromsoe
USERDOMAIN=JSTROMSOE-PRECI
USERNAME=jstromsoe
USERPROFILE=C:\users\jstromsoe
VTE_VERSION=6800
windir=C:\windows
WINDOWPATH=2
WINECONFIGDIR=\??\Z:\home\jstromsoe\.wine
WINEDATADIR=\??\Z:\usr\lib\wine\..\..\share\wine\wine
WINEDEBUG=fixme-all
WINEDLLDIR0=\??\Z:\usr\lib\i386-linux-gnu\wine
WINEHOMEDIR=\??\Z:\home\jstromsoe
WINELOADERNOEXEC=1
WINEUSERNAME=jstromsoe
winsysdir=C:\windows\system32
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

So far it looks like there is nothing wrong with your Wine installation.
To be sure, you can test if

Code: Select all

wine cmd /c echo %APPDATA%
returns C:\users\jstromsoe\AppData\Roaming

Which version of winetricks do you use?
If it is not the latest version, you can easily update winetricks with:

Code: Select all

sudo winetricks --self-update
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

Maybe there's a problem with how I'm launching wine or configuring the application ?

I ran what you asked and got what you see below.

Code: Select all

jstromsoe@jstromsoe-precision-7740-garage:~$ wine cmd /c echo %APPDATA%
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\nsiproxy": c0000003
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

C:\users\jstromsoe\AppData\Roaming
jstromsoe@jstromsoe-precision-7740-garage:~$ sudo winetricks --self-update
[sudo] password for jstromsoe: 
Executing cd /tmp/winetricks.IUFVUI5m
Downloading https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks to /tmp/winetricks.IUFVUI5m
--2022-04-12 19:53:48--  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 896662 (876K) [text/plain]
Saving to: ‘winetricks’

winetricks          100%[===================>] 875.65K  --.-KB/s    in 0.1s    

2022-04-12 19:53:49 (7.78 MB/s) - ‘winetricks’ saved [896662/896662]

Executing cd /home/jstromsoe
Executing mv /tmp/winetricks.IUFVUI5m/winetricks /usr/bin/winetricks.update
Executing rmdir /tmp/winetricks.IUFVUI5m
Executing cp /usr/bin/winetricks /usr/bin/winetricks.bak
Executing chmod -x /usr/bin/winetricks.bak
Executing mv /usr/bin/winetricks.update /usr/bin/winetricks
Executing chmod +x /usr/bin/winetricks
------------------------------------------------------
warning: Update finished! The current version is 20220411-next - sha256sum: 59e8ea1a924fd74effd7fbdc63746e9b709f8f323f1dcbb1877454dbc0367014. Use 'winetricks --update-rollback' to return to the previous version.
------------------------------------------------------
When I attempted to run winetricks using the GUI, i got a strange error, see attached. Maybe that's a hint ?
Attachments
Screenshot from 2022-04-12 19-59-28.png
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

^still have the same problem though. I launch the Reel Steady Go app and get what looks like the right application running with a blank window and no fonts.
jstromsoe
Level 1
Level 1
Posts: 9
Joined: Mon Apr 04, 2022 11:32 pm

Re: Wine Build on Ubuntu 22.04

Post by jstromsoe »

I built everything in a directory called "wine-dirs" and make 2 build folders there. I then ran make and install in the wine-build-32 folder. Does "install" put the command here:

Code: Select all

jstromsoe@jstromsoe-precision-7740-garage:~$ whereis wine
wine: /usr/bin/wine /usr/lib/x86_64-linux-gnu/wine /usr/lib/wine /usr/local/lib/wine /usr/share/wine /usr/share/man/man1/wine.1.gz
^I figured if there's something wrong with launching wine properly this would tell me. The other problem is when I run winetricks from the CLI, I get a strange error:

Code: Select all

stromsoe@jstromsoe-precision-7740-garage:~/wine-dirs$ winetricks
Executing mkdir -p /home/jstromsoe
------------------------------------------------------
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.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 28
drwxrwxr-x  7 jstromsoe jstromsoe 4096 Apr  3 16:36 .
drwxrwxr-x  4 jstromsoe jstromsoe 4096 Apr 12 20:04 ..
drwxrwxr-x  3 jstromsoe jstromsoe 4096 Apr  3 16:36 ProgramData
drwxrwxr-x  8 jstromsoe jstromsoe 4096 Apr  6 19:09 Program Files
drwxrwxr-x  6 jstromsoe jstromsoe 4096 Apr  6 18:47 Program Files (x86)
drwxrwxr-x  4 jstromsoe jstromsoe 4096 Apr  3 16:36 users
drwxrwxr-x 21 jstromsoe jstromsoe 4096 Apr  9 06:48 windows

Registry info:
/home/jstromsoe/.wine/system.reg:#arch=win64
/home/jstromsoe/.wine/user.reg:#arch=win64
/home/jstromsoe/.wine/userdef.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "" 
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine Build on Ubuntu 22.04

Post by jkfloris »

From ./configure --help
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'
I use the following commands to build wine:

Code: Select all

# In the 64 bit build directory
../../wine/configure --enable-win64 --prefix=${HOME}/wine-next --without-oss --without-openal
make -j4

# In the 32 bit build directory
../../wine/configure --prefix=${HOME}/wine-next --without-oss --without-openal --with-wine64=../64
make -j4
make install

# In the 64 bit build directory
make install
Locked