New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
Supreeeme opened this issue
Nov 18, 2020
· 4 comments
Comments
On Arch Linux & Wine 5.21, tried with both winetricks from the main repos and winetricks-git from the AUR, as well as wine staging. This is a fresh prefix.
~ winetricks
Executing mkdir -p /home/supreme
------------------------------------------------------
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 32
drwxr-xr-x 7 supreme supreme 4096 Nov 18 14:21 .
drwxr-xr-x 4 supreme supreme 4096 Nov 18 14:23 ..
drwxr-xr-x 3 supreme supreme 4096 Nov 18 14:12 ProgramData
drwxr-xr-x 6 supreme supreme 4096 Nov 18 14:12 Program Files
drwxr-xr-x 6 supreme supreme 4096 Nov 18 14:12 Program Files (x86)
drwxr-xr-x 4 supreme supreme 4096 Nov 18 14:12 users
drwxr-xr-x 19 supreme supreme 4096 Nov 18 14:12 windows
-rw-r--r-- 1 supreme supreme 8 Nov 18 14:21 .windows-serial
Registry info:
/home/supreme/.wine/system.reg:#arch=win64
/home/supreme/.wine/userdef.reg:#arch=win64
/home/supreme/.wine/user.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message ""
------------------------------------------------------
But that doesn’t seem true at all:
~ wine cmd.exe /c echo '%AppData%'
C:userssupremeApplication Data
after compiling 6.0 winetricks is fine now, great.
I still get the problem.
My wine version is 6.2-staging and I use winetricks 20210206-next.
Is this a problem that is caused by a 64-bit wine prefix?
Even after deleting ~/.wine
and letting a new one be created the problem exists.
This issue is closed, you should open your open issue.
That said, I can’t reproduce, so someone that can will likely need to debug it.
-
jstromsoe
- Level 1
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Wine Build on Ubuntu 22.04
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
- Posts: 2476
- Joined: Thu Aug 14, 2014 10:10 am
Re: Wine Build on Ubuntu 22.04
Post
by jkfloris » Tue Apr 05, 2022 6:13 pm
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
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Tue Apr 05, 2022 10:32 pm
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
- Posts: 2476
- Joined: Thu Aug 14, 2014 10:10 am
Re: Wine Build on Ubuntu 22.04
Post
by jkfloris » Wed Apr 06, 2022 7:10 am
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
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Wed Apr 06, 2022 8:50 pm
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
-
-
jstromsoe
- Level 1
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Thu Apr 07, 2022 8:40 pm
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
- Posts: 2476
- Joined: Thu Aug 14, 2014 10:10 am
Re: Wine Build on Ubuntu 22.04
Post
by jkfloris » Fri Apr 08, 2022 4:11 am
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
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Fri Apr 08, 2022 8:32 am
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?
-
jstromsoe
- Level 1
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Fri Apr 08, 2022 8:31 pm
jkfloris wrote: ↑Fri Apr 08, 2022 10:45 am
What does the following command return?
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:usersjstromsoeAppDataRoaming
CLIENTNAME=Console
COLORTERM=truecolor
CommonProgramFiles=C:Program Files (x86)Common Files
CommonProgramFiles(x86)=C:Program Files (x86)Common Files
CommonProgramW6432=C:Program FilesCommon Files
COMPUTERNAME=JSTROMSOE-PRECI
ComSpec=C:windowssystem32cmd.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=usersjstromsoe
LANG=en_US.UTF-8
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOCALAPPDATA=C:usersjstromsoeAppDataLocal
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:windowssystem32;C:windows;C:windowssystem32wbem;C:windowssystem32WindowsPowershellv1.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:usersPublic
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:usersjstromsoeTemp
TERM=xterm-256color
TMP=C:usersjstromsoeTemp
USER=jstromsoe
USERDOMAIN=JSTROMSOE-PRECI
USERNAME=jstromsoe
USERPROFILE=C:usersjstromsoe
VTE_VERSION=6800
windir=C:windows
WINDOWPATH=2
WINECONFIGDIR=??Z:homejstromsoe.wine
WINEDATADIR=??Z:usrlibwine....sharewinewine
WINEDEBUG=fixme-all
WINEDLLDIR0=??Z:usrlibi386-linux-gnuwine
WINEHOMEDIR=??Z:homejstromsoe
WINELOADERNOEXEC=1
WINEUSERNAME=jstromsoe
winsysdir=C:windowssystem32
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
- Posts: 2476
- Joined: Thu Aug 14, 2014 10:10 am
Re: Wine Build on Ubuntu 22.04
Post
by jkfloris » Sat Apr 09, 2022 10:11 am
So far it looks like there is nothing wrong with your Wine installation.
To be sure, you can test if
returns C:usersjstromsoeAppDataRoaming
Which version of winetricks do you use?
If it is not the latest version, you can easily update winetricks with:
-
jstromsoe
- Level 1
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Tue Apr 12, 2022 10:01 pm
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:usersjstromsoeAppDataRoaming
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
-
-
jstromsoe
- Level 1
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Tue Apr 12, 2022 10:02 pm
^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
- Posts: 9
- Joined: Mon Apr 04, 2022 11:32 pm
Re: Wine Build on Ubuntu 22.04
Post
by jstromsoe » Tue Apr 12, 2022 10:14 pm
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
- Posts: 2476
- Joined: Thu Aug 14, 2014 10:10 am
Re: Wine Build on Ubuntu 22.04
Post
by jkfloris » Wed Apr 13, 2022 11:25 am
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
Содержание
- Не могу запустить wine
- Error While installing: warning: wine cmd.exe /c echo ‘%AppData%’ returned empty string, error message «» #226
- Comments
- Warning wine cmd exe c echo appdata returned empty string error message
- Re: Wine Build on Ubuntu 22.04
- Re: Wine Build on Ubuntu 22.04
- Warning wine cmd exe c echo appdata returned empty string error message
- Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
- «cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
- Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
- «cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
- «cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
- Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
- «cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Не могу запустить wine
Установлен wine64 version 5.0.4 при помощи pkg install wine
При запуске exe файла вылетает с ошибками в консоли:
not supported on this system
что дальше? на haiku или на kolibrios игоры запускать будете?
То есть мне нужно искать какие-то нативные чтобы запустилось?
Под 6.0.1-вайном они же запускаются, я проверял
wine64 version 5.0.4 при помощи pkg install wine
такое нужно самому компилять из портов
Компилять нужно только mesa и всё что связано с видео, wine и i386-wine — совершенно необязательно.
bambie , я не знаю что ты хочешь запустить, но ты уверен что оно именно PE32+ (x86-64), запуская его через wine (amd64)?
а что, у вас там есть уже собранный wine с esync патчем?
ты уверен что оно именно PE32+ (x86-64), запуская его через wine (amd64)?
Я могу в этом убедиться только запустив его с 32битным wine:
mesa и всё что связано с видео
mesa не компиляю — только видеодрайвера
С помощью file можно посмотреть:
Был не прав, оно действительно было PE32
Kron4ek , спасибо большое.
как удалить старое ядро? было у меня оно одно, но подвезли новый drm-kmod который со старым ядром отказался работать, пришлось собрать новое ядро и установить в него новый drm-kmod — теперь у меня два ядра, но старое не нужно — как его удалить? может есть какое нибудь remove-old-kernels или что то типа такого?
А что, из портов можно собрать wine с esync? (%
Еще вопрос. Могу ли я установить второй вайн, собрав его с другим PREXIF? Если да, то как?
с другим PREFIX
Я могу в этом убедиться только запустив его с 32битным wine
file -b /path/to/file.exe
Сам понимаешь, телепаты в отпуске. (%
Был не прав, оно действительно было PE32
FreeBSD хранит только два ядра — последнее и предыдущее, каждый make installkernel перемещает /boot/kernel в /boot/kernel.old (и удаляет старый /boot/kernel.old , если он существует), затем ставит новое в /boot/kernel .
А вот что происходит с /boot/modules я не помню, при обновлении GENERIC на следующий релиз оно вайпает чуть ли не всю систему.
Тебе не обязательно собирать wine с другим PREFIX, достаточно распаковать куда угодно и написать обёртку со всеми нужными переменными окружения.
Могу поделиться скриптом, но он во-первых нифига не документирован (могу на пальцах объяснить что как, но никакой поддержки не обещаю, об этом дальше), а во-вторых не работает с wine >=6.0 (там что-то с окружением, гуглить сейчас лень, фиксить не планирую, ибо проще переписать скрипт с нуля, там костылей за два года быстроправок скопилось).
а что, у вас там есть уже собранный wine с esync патчем?
А что, на фряхе появился eventfd?
UPD: Фигасе, The eventfd() system call first appeared in FreeBSD 13.0.
Все, фря готова для гейминга
Есть же всякие гуи вроде PlayOnLinux, они не умеют рулить несколькими версиями вайна?
Есть форк — PlayOnFreeBSD, но я никогда его не тыкал. А вот Lutris на FreeBSD судя по всему вообще не работает (нет никаких упоминаний на официальном сайте, никаких упоминаний на официальном форуме FreeBSD и на сабреддите).
Мне проще накидать скрипт на двадцать пять килобайт и пару лет не париться по этому поводу. Причём в эти двадцать пять килобайт бонусом влезла поддержка dosbox, renpy, gzdoom, pcsxr и dolphin-emu как для amd64, так и для i386.
…достаточно распаковать куда угодно и написать обёртку со всеми нужными переменными окружения.
Хочу узнать об этом поподробнее. Как это сделать?
Могу поделиться скриптом, но он во-первых нифига не документирован (могу на пальцах объяснить что как, но никакой поддержки не обещаю, об этом дальше), а во-вторых не работает с wine >=6.0 (там что-то с окружением, гуглить сейчас лень, фиксить не планирую, ибо проще переписать скрипт с нуля, там костылей за два года быстроправок скопилось).
Пожалуй, давай, это лишним не будет. В инете информации по этому поводу мало, а этот вопрос может быть интересен не только мне. Ну и если проще переписать, может быть кто-то подскажет, кому будет не лень? А так я не против в этом разобраться.
Есть же всякие гуи вроде PlayOnLinux
https://www.freshports.org/emulators/playonbsd Если это оно, то он удален, написано в прошлом году. Но всё равно это было просто обёрткой для wine
Мне проще накидать скрипт на двадцать пять килобайт и пару лет не париться по этому поводу.
Еще проще — установить games/homura.
…достаточно распаковать куда угодно и написать обёртку со всеми нужными переменными окружения.
Хочу узнать об этом поподробнее. Как это сделать?
Нужно понимать как устроено окружение и что нужно конкретному приложению для полноценной работы.
Если раскуришь скрипты многоуважаемого Kron4ek , многое поймёшь конкретно про Wine. Мой скрипт местами переусложнён и/или сильно несовершенен, но он никогда не пилился для публичного использования, потому он такой какой он есть.
Пожалуй, давай, это лишним не будет.
Ссылка в конце комментария.
В инете информации по этому поводу мало, а этот вопрос может быть интересен не только мне. Ну и если проще переписать, может быть кто-то подскажет, кому будет не лень? А так я не против в этом разобраться.
Ну, FreeBSD никогда не позиционировалась как игровая платформа, потому готовых решений до сих пор нет, а все попытки быстро загибаются.
Я не особо геймер, потому не пытался сделать что-то с планами на будущее.
Внутри быстро накиданный README, наверняка с кучей очепяток и ошибок, но в общих чертах должно быть понятно. А если нет — задавай свои ответы, завтра (если повезёт) гляну.
Источник
Error While installing: warning: wine cmd.exe /c echo ‘%AppData%’ returned empty string, error message «» #226
I’m fairly new to github and linux in general, apologies in advance.
**Description: **
After running ‘lutris -i Downloads/modorganizer2.yml’, installation does not complete. The full log is here, https://pastebin.com/QYVjkuCr; below I have copied the most recent messages. I was able to install mod organizer twice before, but I uninstalled MO2 trying to get the dialogue in Skyrim SE to work, and have not been able to reinstall. For what it’s worth, I haven’t run into the issues described in #61 this time around.
System Info:
OS: Drauger OS (Ubuntu 20.04 focal)
Wine Version: wine-6.0.1
Winetricks Version: 20210206-next — sha256sum: 75730c54ef76da9109f48a064bc53c61bb7301d690ab74fd3c23c719d1683de9
Terminal Output:
warning: wine cmd.exe /c echo ‘%AppData%’ returned empty string, error message «»
———
Monitored process exited.
Initial process has exited (return code: 256)
All children have exited.
Exit with returncode 256
2021-06-17 22:04:16,669: I can’t move /home/kyle/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation, it does not exist
None
2021-06-17 22:04:16,669: Error while completing task >: I can’t move /home/kyle/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation, it does not exist
None
File «/usr/lib/python3/dist-packages/lutris/util/jobs.py», line 34, in target
result = self.function(*args, **kwargs)
File «/usr/lib/python3/dist-packages/lutris/installer/commands.py», line 283, in move
raise ScriptingError(«I can’t move %s, it does not exist» % src)
2021-06-17 22:05:04,901: Cancelling installation of Mod Organizer 2
The text was updated successfully, but these errors were encountered:
Источник
Warning wine cmd exe c echo appdata returned empty string error message
Post by jstromsoe » Mon Apr 04, 2022 11:42 pm
Having some issues building Wine (stable branch, cloned from c7c729c0db7c3e246182a890de4c606f3e394d0e).
Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
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.
Re: Wine Build on Ubuntu 22.04
Post by jkfloris » Tue Apr 05, 2022 6:13 pm
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?)
Re: Wine Build on Ubuntu 22.04
Post by jstromsoe » Tue Apr 05, 2022 10:32 pm
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!
Источник
Warning wine cmd exe c echo appdata returned empty string error message
Post by dE_logics » Thu Nov 10, 2011 5:16 am
I’m trying to install a program using winetricks, but I’m using a separate wine install and WINEPREFIX, I run any command as such —
WINEARCH=»win32″ WINE=’/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32′ WINEPREFIX=’/home/de/media_writeit!/temp(others)/walkthrough’ ./winetricks
/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32 cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Also in the winetricks wiki it has not been explained properly how to point out to a seperate wine install.
I tried exporting all the WINE, WINEPREFIX and WINEARCH variables, but it doesn’t workout.
On the other hand —
WINEPREFIX=’/home/de/media_writeit!/temp(others)/walkthrough’ ‘/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32/bin/wine’ cmd
C:>echo %ProgramFiles%
C:Program Files
Post by dimesio » Thu Nov 10, 2011 10:58 am
Post by dE_logics » Thu Nov 10, 2011 11:44 am
I tried that, it doesn’t matter —
WINEARCH=»win32″ WINE=’/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32/bin/wine’ WINEPREFIX=’/home/de/media_writeit!/temp(others)/walkthrough’ ./winetricks
——————————————————
/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32/bin/wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
——————————————————
Post by dE_logics » Thu Nov 10, 2011 11:52 am
WINEPREFIX=/home/de/media_writeit!/temp(others)/walkthrough/ /home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32/bin/wine cmd.exe /c echo ‘%ProgramFiles%’
Post by dimesio » Thu Nov 10, 2011 2:40 pm
Post by dE_logics » Thu Nov 10, 2011 10:08 pm
Nothing will happen (and nothing happened), winetricks is only available in the current directory, so it says command not found.
WINEPREFIX=’/home/de/game/temp(game)/soundforge-10′ ./winetricks
——————————————————
wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Post by dimesio » Thu Nov 10, 2011 11:35 pm
Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
Post by DanKegel » Fri Nov 11, 2011 12:13 am
dE_logics wrote: WINEARCH=»win32″ WINE=’/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32′ WINEPREFIX=’/home/de/media_writeit!/temp(others)/walkthrough’ ./winetricks
/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32 cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Also in the winetricks wiki it has not been explained properly how to point out to a seperate wine install.
I tried exporting all the WINE, WINEPREFIX and WINEARCH variables, but it doesn’t workout.
WINE is how you tell winetricks which wine to run.
WINEPREFIX is how you tell wine (and winetricks) where the fake C drive and
registry live.
Do you really have two versions of wine? What program are you trying to install?
(Dimesio: The ./ in front of winetricks is for when you’ve downloaded winetricks yourself
and not installed it, but have marked it executable.
If you haven’t marked it executable, you have to use ‘sh winetricks’.
If you use the winetricks installed by your distro, you don’t want the ./ or the sh.
This is all about how the shell searches for commands in the directories
listed in the PATH environment variable.)
Post by dE_logics » Fri Nov 11, 2011 1:40 am
dE_logics wrote: WINEARCH=»win32″ WINE=’/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32′ WINEPREFIX=’/home/de/media_writeit!/temp(others)/walkthrough’ ./winetricks
/home/de/media_writeit!/FOSS/additional packages/Wine prefixes/Works with wine 1.3.32/wine-1.3.32 cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Also in the winetricks wiki it has not been explained properly how to point out to a seperate wine install.
I tried exporting all the WINE, WINEPREFIX and WINEARCH variables, but it doesn’t workout.
WINE is how you tell winetricks which wine to run.
WINEPREFIX is how you tell wine (and winetricks) where the fake C drive and
registry live.
Do you really have two versions of wine? What program are you trying to install?
Yes, this system is 64 bit and this problem exists when you try running a 64 bit wine prefix on a 32 bit wine installation. But in my case, every prefix is 32bit.
This time around, since the WINE variable doesn’t appear to be working, I had to drop it and use the prefix of wine-1.3.32 (static build) with wine-1.3.29 (system install). I installed a few packages using winetricks, after which it suddenly stopped working and started giving this error.
Later on (now) I noticed that some wine processes where still running in background which were causing this problem.
However, the main issue now is, the WINE variable doesn’t appear to be working.
I’m trying to make soundforge 10 work. Currently there analyzer graph is bank.
«cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Post by Martin Gregorie » Fri Nov 11, 2011 6:48 am
Some distros (the RedHat ones and probably others) don’t include ‘.’ or
$HOME in $PATH by default. The first thing I do when I set up a new
login users is to make sure ‘.’, $HOME and $HOME/bin are added to $PATH,
preferably at the right end. Its such an automatic action that its easy
to forget you did it years ago.
It sounds like your $HOME directory isn’t in your search path. Post the
output from this:
So we can see what your search path looks like.
Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
Post by Usurp » Fri Nov 11, 2011 8:33 am
Some distros (the RedHat ones and probably others) don’t include ‘.’ or
$HOME in $PATH by default. The first thing I do when I set up a new
login users is to make sure ‘.’, $HOME and $HOME/bin are added to $PATH,
preferably at the right end. Its such an automatic action that its easy
to forget you did it years ago.
It sounds like your $HOME directory isn’t in your search path. Post the
output from this:
So we can see what your search path looks like.
Having ‘.’ and $HOME in $PATH can lead to subtle failures,
if you create a file that has the same name as an existing command.
Simple example: the updatedb command from mlocate
«cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Post by Martin Gregorie » Fri Nov 11, 2011 9:42 am
Having ‘.’ and $HOME in $PATH can lead to subtle failures,
if you create a file that has the same name as an existing command.
Simple example: the updatedb command from mlocate
That is why, if you’re wise, you always run ‘which’ to check check
whether the script/program name you just thought up is going to clash
with anything else. Its also why I said «add them to the right hand
end», as in:
$PATH is searched left to right, so doing it this way guarantees that
pre-existing stuff takes precedence over anything you wrote without
first checking for name clashes.
«cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Post by perryh » Fri Nov 11, 2011 9:15 pm
Re: «cmd.exe /c echo ‘%ProgramFiles%’ returned empty st
Post by dE_logics » Sat Nov 12, 2011 7:45 am
Some distros (the RedHat ones and probably others) don’t include ‘.’ or
$HOME in $PATH by default. The first thing I do when I set up a new
login users is to make sure ‘.’, $HOME and $HOME/bin are added to $PATH,
preferably at the right end. Its such an automatic action that its easy
to forget you did it years ago.
It sounds like your $HOME directory isn’t in your search path. Post the
output from this:
So we can see what your search path looks like.
I’ve not seen any distro which sets ‘.’ in it’s PATH.
Also why will I need $HOME in $PATH?
PATH for user is —
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
Also ‘.’ in $HOME doesn’t make sense.
Having ‘.’ and $HOME in $PATH can lead to subtle failures,
if you create a file that has the same name as an existing command.
Simple example: the updatedb command from mlocate
That is why, if you’re wise, you always run ‘which’ to check check
whether the script/program name you just thought up is going to clash
with anything else. Its also why I said «add them to the right hand
end», as in:
$PATH is searched left to right, so doing it this way guarantees that
pre-existing stuff takes precedence over anything you wrote without
first checking for name clashes.
«cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
Post by Martin Gregorie » Sat Nov 12, 2011 8:55 am
I suggested adding $HOME/bin to your search path, not $HOME.
If you write small shell scripts, e.g. as wrappers for Wine applications
or as a short-hand for common actions and they are intended to only be
used from one login, then a convenient place to keep them is in a
$HOME/bin directory because this keeps clutter out of your login
directory. If you do this you’ll want to include $HOME/bin in the search
path for that login by editing .bash_profile
If such scripts are for more general use they should be put in
«/usr/local/bin» and any associated configuration files should be in
«/usr/local/etc». Make sure that the «/usr/local» structure is backed up
along with «/home».
You should reserve «/bin» and «/usr/bin» for programs and scripts that
are part of your distro. Apart from anything else, if you upgrade your
distro or do a clean install you may loose anything you put in those
directories while, if you backed up the contents of /usr/local then its
easy to drop it back in place after the upgrade or install.
Источник
View previous topic :: View next topic | |||||||||||||||||||||||||
Author | Message | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Mistwolf Apprentice Joined: 07 Mar 2007 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Chiitoo Administrator Joined: 28 Feb 2010 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Chiitoo Administrator Joined: 28 Feb 2010 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Hu Moderator Joined: 06 Mar 2007 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Chiitoo Administrator Joined: 28 Feb 2010 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Chiitoo Administrator Joined: 28 Feb 2010 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Chiitoo Administrator Joined: 28 Feb 2010 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Hu Moderator Joined: 06 Mar 2007 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
Shiru n00b Joined: 20 Oct 2014 |
|
||||||||||||||||||||||||
Back to top |
|
||||||||||||||||||||||||
|
You cannot post new topics in this forum |
- Печать
Страницы: [1] Вниз
Тема: wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string (Прочитано 2254 раз)
0 Пользователей и 1 Гость просматривают эту тему.

freeneutron
Данная тема уже обсуждалась. Но у меня немного другой случай:
sudo winetricks vcrun2010 выдает ошибку:
wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
но wine cmd.exe /c echo ‘%ProgramFiles%’ возвращает:
C:Program Files
« Последнее редактирование: 31 Марта 2016, 20:54:30 от maks05 »

skybour
| toZen |
Зачем sudo?
То же самое хотел спросить.
Думаю, что надо права доступа в .wine проверить.
Вино-то в хомяке, а вызов идёт с директории рута. Отсюда и грабли. ИМХО.

skybour
Там скорее всего перфикс еще не создан, потому путь не находит.
Запусти winecfg, потом ставь пакеты, без sudo.
| toZen |
Там скорее всего перфикс еще не создан, потому путь не находит.
Запусти winecfg, потом ставь пакеты, без sudo.
Возможно, или же, всё уже сделано под sudo и без него родимого не запускается вообще ничего, следовательно — либо полностью снести вино и переустановить, либо начать с подгонки адекватных прав доступа.

skybour

freeneutron
sudo на всякий случай. Но я уже понял, что лишне. Вот что получается без sudo:
freeneutron@freeneutron-A780L3L:~/.cache$ winetricks vcrun2010
Executing w_do_call vcrun2010
Executing load_vcrun2010
Executing mkdir -p /home/freeneutron/.cache/winetricks/vcrun2010
mkdir: невозможно создать каталог «/home/freeneutron/.cache/winetricks/vcrun2010»: Отказано в доступе
——————————————————
Note: command ‘mkdir -p /home/freeneutron/.cache/winetricks/vcrun2010’ returned status 1. Aborting.
——————————————————
И вот на всякий случай результат groups:
freeneutron@freeneutron-A780L3L:~/.cache$ groups freeneutron
freeneutron : freeneutron adm cdrom sudo audio dip plugdev lpadmin sambashare
| toZen |
freeneutron, всё из-за того, что делали под sudo.
ls -l .wine
??
« Последнее редактирование: 16 Октября 2015, 09:47:01 от τοΖεη »

freeneutron
freeneutron, всё из-за того, что делали под sudo.
Это понятно. Но без sudo тоже ошибки. Что я могу сделать?
freeneutron@freeneutron-A780L3L:~$ ls -l .wine
итого 1364
drwxrwxr-x 2 freeneutron freeneutron 4096 окт. 16 13:18 dosdevices
drwxrwxr-x 5 freeneutron freeneutron 4096 окт. 15 16:48 drive_c
-rw-rw-r— 1 freeneutron freeneutron 1219196 окт. 16 13:18 system.reg
-rw-rw-r— 1 freeneutron freeneutron 2690 окт. 15 16:48 userdef.reg
-rw-rw-r— 1 freeneutron freeneutron 157837 окт. 16 13:18 user.reg
-rw-rw-r— 1 freeneutron freeneutron 50 окт. 16 13:18 winetricks.log
Пользователь решил продолжить мысль [time]16 Октябрь 2015, 10:50:51[/time]:
τοΖεη,
То есть мне надо переустановить wine из под freeneutron?
Пользователь решил продолжить мысль 16 Октября 2015, 10:13:32:
Все заработало. Вопрос решен. Большое спасибо!
« Последнее редактирование: 16 Октября 2015, 10:13:32 от freeneutron »
- Печать
Страницы: [1] Вверх
I’m new to linux and I’m trying to install wine so I can play Hearthstone.
I following this tutorial: https://linuxconfig.org/how-to-install-battle-net-on-ubuntu-22-04-linux-desktop
I run winetricks
and everything is OK until Step 3. Then, I get some errors that even if I press OK, they keep reappering and nothing else happens — until I stop the terminal.
Below you can see both images that show up (somewhere between Step 3 and 4)
image1
image2
And here a paste of the terminal while the errors are happening:
guin0x@guin0x-server:~$ winetricks
Executing mkdir -p /home/guin0x
------------------------------------------------------
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 20210206 - sha256sum: 0f21da98811e0bfda16a7d6d6b8e860a9cedbd4e836c7dd9b02f068d3092ee2e with wine-6.0.3 (Ubuntu 6.0.3~repack-1) and WINEARCH=win64
winetricks GUI enabled, using zenity 3.42.1
Executing w_do_call corefonts
Executing mkdir -p /home/guin0x
------------------------------------------------------
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.
------------------------------------------------------
Executing load_corefonts
Executing w_do_call andale
Executing mkdir -p /home/guin0x
------------------------------------------------------
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.
------------------------------------------------------
Executing load_andale
Executing cabextract -q -d /home/guin0x/.wine/dosdevices/c:/windows/temp /home/guin0x/.cache/winetricks/corefonts/andale32.exe
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/guin0x/.wine terminate
------------------------------------------------------
Executing wine regedit C:windowsTemp_register-font.reg
Executing wine64 regedit C:windowsTemp_register-font.reg
0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0100:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
Executing cp /home/guin0x/.wine/dosdevices/c:/windows/temp/_register-font.reg /tmp/winetricks.WeeZhyWc/_reg_90ad6a9f_10400.reg
Executing wine regedit C:windowsTemp_register-font.reg
Executing wine64 regedit C:windowsTemp_register-font.reg
0120:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0120:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0118:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0118:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
Executing cp /home/guin0x/.wine/dosdevices/c:/windows/temp/_register-font.reg /tmp/winetricks.WeeZhyWc/_reg_f6204652_10400.reg
Executing w_do_call arial
Executing mkdir -p /home/guin0x
------------------------------------------------------
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.
Thanks a lot in advance!
Winetricks is a script meant to configure wineprefixes1). It is sometimes necessary to run Windows based games on Wine with additional dependencies that might get missed and therefore have to be added first manually by using Winetricks. Basically, with Winetricks, you can add those missing dependencies manually into an according existing wineprefix. Batocera has implemented Winetricks natively.
Note that every Windows game might have different missing dependencies when running on Wine. Therefore it is necessary to find out what additional dependencies (if any) are needed to make the according game run successfully on Wine. In most cases, to find out which winetricks to use to make a game run successfully in Wine, requires to search the internet, the which games section of the Windows games wiki page can be a start, however, sometimes the game will report a missing dll, in which case installing the winetrick containing it might be enough to fix it (for example, if a game complains about msvcp140.dll
missing, we can see the trick vcrun2017
contains several dlls including that one, installing it can fix that specific issue).
The commands for Wine/Winetricks are different on Batocera than on other classic Linux distributions. The syntax for installing a winetrick into a wineprefix is as follows: 2)
batocera-wine windows tricks <absolute-path-to-the-wineprefix> <trick-to-install>
Note that you can only install one winetrick after another, so it is necessary to run the command from above multiple times if you have multiple winetricks to install.
As already mentioned above, it is necessary to find out what dependencies are needed to make a specific Windows game run successfully in Wine. For the game “Giana Sisters: Twisted Dreams” it was reported by different users that they made it run successfully by installing the following two winetricks: xact
and wmp9
. Since both winetricks are deprecated on the Wine version installed on Batocera, it’s necessary to install other versions of the according winetricks, xact_x64
and wmp11
in this case. Generally, it’s always worth a try to install other versions of the according winetricks if for some reasons Winetricks throws the according error(s)!
In order to find out what winetricks are actually available, navigate to the according section below.
First of all, it is necessary to either get the game’s data as an installer or as raw binary files. For this example, the game is not installed on Batocera by using its installer but just copied the game’s binaries to the according filesystem path at /userdata/roms/windows/Giana Sisters - Twisted Dreams.pc
with the according autorun.cmd
already set up (get more information about the autorun.cmd
here).
After updating the gamelist via the ES menu, the game accours on the WINE games list. In order to get Batocera creating the according wineprefix, the game has to be started manually once (where all ES specific game settings have to be left on default) via ES. Now the winefrefix is being created on the filesystem automatically at the following path:
/userdata/saves/windows/proton/Giana Sisters - Twisted Dreams.pc.wine
Be patient while you see the according blue screen, depending on Batocera’s hardware it may take a while.
Then, as the game is missing some dependencies, it will not start correctly and therefore it should crash and exit back to the ES desktop automatically (which is expected, so don’t worry!). If it freezes instead, just exit manually by pressing Alt + F4
followed by End Process
on the keyboard (sometimes you have to do it twice):
End Process
Now, from a remote PC, connect to the Batocera system via SSH in order to execute the according commands, required to install the missing dependencies via Winetricks.
In case you run into the following error message…
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message “”
…it means the game is still stuck running somewhere in the background. This happens sometimes when the game gets forced to quit by pressing Alt + F4
followed by End Process
as you might have done before. In such case just reboot Batocera by executing…
batocera-es-swissknife --reboot
…and then try again.
That was mostly it. Now as for Wine the game “Giana Sisters: Twisted Dreams” needs Vulkan in order to interact with the according DirectX graphics API, it is necessary to enable DXVK FEATURE
in the ES game’s Advanced Game Settings
menu:
DXVK FEATURE
Now start the game via ES and have fun!
You can produce this information on your own by executing the following command:
/usr/wine/winetricks list-all
A static copy is below, last updated 08.10.2022.
winetricks.txt
Depending on the winetrick you want to install you may run into the issue that the system seems to freeze on the remote command line. Before giving up you should take a look on your Batocera screen. It may ask you to interact.
Example: If you want to install the vcrun2017
the system seems to freeze on the remote command line at this point:
0104:fixme:oleacc:find_class_data unhandled window class: L“Button”
So you may think it fails to install but instead there’s the according package setup popping up on the Batocera GUI screen, waiting for you to interact:
Setup menu
In this case, just go through the setup process and you’re done.