-
Notifications
You must be signed in to change notification settings - Fork 70
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
Wine Cleaning up (/tmp/ld-linux.so.2 冲突的文件) #21
Comments
|
如同 issus 11 所说。 map_so_lib( argv[1], &main_binary_map );
/* load the ELF interpreter */
interp = (char *)main_binary_map.l_addr + main_binary_map.l_interp;
map_so_lib( interp, &ld_so_map ); 修改为: map_so_lib( argv[1], &main_binary_map );
/* load the ELF interpreter */
interp = (char *)main_binary_map.l_addr + main_binary_map.l_interp;
char fullpath[256] = {};
wld_memset(fullpath, 0, sizeof(fullpath));
if (rootpath != NULL)
wld_strcat(fullpath, rootpath);
wld_strcat(fullpath, interp);
map_so_lib( fullpath, &ld_so_map ); 具体参考 Commit AppRun修改为: #!/bin/bash
HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="$HERE/usr/lib":$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu":$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$HERE/lib":$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$HERE/lib/i386-linux-gnu":$LD_LIBRARY_PATH
#Sound Library
export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu/pulseaudio":$LD_LIBRARY_PATH
export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu/alsa-lib":$LD_LIBRARY_PATH
#LD Root Path
export LINUXFILEROOT="$HERE"
"$HERE/lib/ld-linux.so.2" "$HERE/bin/wine" "$@" | cat 我已经测试成功,之后会打包文件。 As issus 11 said. Map_so_lib( argv[1], &main_binary_map );
/* load the ELF interpreter */
Interp = (char *) main_binary_map.l_addr + main_binary_map.l_interp;
Map_so_lib( interp, &ld_so_map ); change into: Map_so_lib( argv[1], &main_binary_map );
/* load the ELF interpreter */
Interp = (char *) main_binary_map.l_addr + main_binary_map.l_interp;
Char fullpath[256] = {};
Wld_memset(fullpath, 0, sizeof(fullpath));
If (rootpath != NULL)
Wld_strcat(fullpath, rootpath);
Wld_strcat(fullpath, interp);
Map_so_lib( fullpath, &ld_so_map ); Specific reference Commit AppRun is modified to: #!/bin/bash
HERE="$(dirname "$(readlink -f "${0}")")"
Export LD_LIBRARY_PATH="$HERE/usr/lib":$LD_LIBRARY_PATH
Export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu":$LD_LIBRARY_PATH
Export LD_LIBRARY_PATH="$HERE/lib":$LD_LIBRARY_PATH
Export LD_LIBRARY_PATH="$HERE/lib/i386-linux-gnu":$LD_LIBRARY_PATH
#Sound Library
Export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu/pulseaudio":$LD_LIBRARY_PATH
Export LD_LIBRARY_PATH="$HERE/usr/lib/i386-linux-gnu/alsa-lib":$LD_LIBRARY_PATH
#LD Root Path
Export LINUXFILEROOT="$HERE"
"$HERE/lib/ld-linux.so.2" "$HERE/bin/wine" "$@" | cat I have tested it successfully and will package the file later. |
让我很开心。非常感谢你的工作。 |
The text was updated successfully, but these errors were encountered: