уааа ставлю!!
а то fuse намучил с нашими ромсетами.
если всё заработает! делаем дему дальше!
- - - Добавлено - - -
bash-4.4$ unreal-speccy-portable
Ошибка сегментирования (стек памяти сброшен на диск)
Эхх как всегда, ничего не работает.
Вид для печати
AER,-что говорит?Код:which unreal-speccy-portable
OS какая? Arch, Manjaro?
А так работает?:
Код:cd /usr/lib/unreal-speccy-portable/
./unreal_speccy_portable
У меня та же ошибка случилась. В Linux Mint все работало отлично, сегодня установил Ubuntu Mate и получил сегфаулт от USP.
Проверил, если предварительно перейти в каталог установленного USP, запускает нормально.
Исправил ярлык, добавив параметр:
Получилось вот так:Код:Path=/opt/unreal
Скрытый текст
Код:[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Unreal Speccy Portable
Comment=Portable ZX-Spectrum emulator
Exec=/opt/unreal/unreal_speccy_portable %F
Path=/opt/unreal
Icon=/opt/unreal/unreal_speccy_portable.png
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Application;Game;
StartupNotify=true
MimeType=application/usp-zx-snapshot;application/usp-zx-disk;application/usp-zx-replay;application/usp-zx-tape;
GenericName[en_GR]=
[свернуть]
Теперь запускается из меню нормально.
В пакете в AUR та же проблема решена с помощью скрипта (взятого из исходного репозитария).
Код:$ cat /usr/bin/unreal-speccy-portable
#!/bin/sh
# Starts Unreal Speccy Portable
BIN_PATH=/usr/lib/unreal-speccy-portable/
cd ${BIN_PATH}
exec ${BIN_PATH}unreal_speccy_portable "$@"
$ ls -l /usr/lib/unreal-speccy-portable/
total 920
drwxr-xr-x 1 root root 14 Nov 10 21:44 res
-rwxr-xr-x 1 root root 941008 Nov 10 21:39 unreal_speccy_portable
$ ls -l /usr/lib/unreal-speccy-portable/res/
total 0
drwxr-xr-x 1 root root 24 Nov 10 21:44 font
drwxr-xr-x 1 root root 126 Nov 10 21:44 rom
Код:$ pacman -Ql unreal-speccy-portable-git
unreal-speccy-portable-git /usr/
unreal-speccy-portable-git /usr/bin/
unreal-speccy-portable-git /usr/bin/unreal-speccy-portable
unreal-speccy-portable-git /usr/lib/
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/font/
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/font/spxtrm4f.fnt
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/dos513f.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/service.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/sos128_0.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/sos128_1.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/sos48.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/res/rom/test.rom
unreal-speccy-portable-git /usr/lib/unreal-speccy-portable/unreal_speccy_portable
unreal-speccy-portable-git /usr/share/
unreal-speccy-portable-git /usr/share/applications/
unreal-speccy-portable-git /usr/share/applications/unreal-speccy-portable.desktop
unreal-speccy-portable-git /usr/share/icons/
unreal-speccy-portable-git /usr/share/icons/hicolor/
unreal-speccy-portable-git /usr/share/icons/hicolor/128x128/
unreal-speccy-portable-git /usr/share/icons/hicolor/128x128/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/128x128/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/icons/hicolor/22x22/
unreal-speccy-portable-git /usr/share/icons/hicolor/22x22/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/22x22/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/icons/hicolor/24x24/
unreal-speccy-portable-git /usr/share/icons/hicolor/24x24/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/24x24/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/icons/hicolor/32x32/
unreal-speccy-portable-git /usr/share/icons/hicolor/32x32/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/32x32/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/icons/hicolor/48x48/
unreal-speccy-portable-git /usr/share/icons/hicolor/48x48/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/48x48/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/icons/hicolor/64x64/
unreal-speccy-portable-git /usr/share/icons/hicolor/64x64/apps/
unreal-speccy-portable-git /usr/share/icons/hicolor/64x64/apps/unreal_speccy_portable.png
unreal-speccy-portable-git /usr/share/mime/
unreal-speccy-portable-git /usr/share/mime/packages/
unreal-speccy-portable-git /usr/share/mime/packages/unreal_speccy_portable.xml
/usr/bin/unreal-speccy-portable
OS arch
bash-4.4$ cd /usr/lib/unreal-speccy-portable/
bash-4.4$ ./unreal-speccy-portable
bash: ./unreal-speccy-portable: Нет такого файла или каталога
незапускается и из bin.
Вообще, как бы чтото промелькивает и валиться все.
bash-4.4$ cd /usr/lib/unreal-speccy-portable/
bash-4.4$ ./unreal_speccy_portable
Ошибка сегментирования (стек памяти сброшен на диск)
bash-4.4$
Также, что-то промелькивает и падает.
AER, можно попробовать установить пакет cogl явно (хотя он скорее всего д.б. уже установлен) и затем переустановить/пересобрать usp.
Либо собрать дебаг-версию usp чтобы понять из за чего именно валится (эта "ошибка" - скорее всего результат какого-то assert() в usp) - отредактировать PKGBUILD перед сборкой, исправить "-DCMAKE_BUILD_TYPE=Release" на "-DCMAKE_BUILD_TYPE=Debug"
bash-4.4$ yaourt -S cogl
разрешение зависимостей...
проверка конфликтов...
Пакеты (1) cogl-1.22.2+10+g3baa2d7a-1
Будет загружено: 0,73 MiB
Будет установлено: 4,08 MiB
:: Приступить к установке? [Y/n] y
:: Получение пакетов...
ошибка: не удалось получить файл 'cogl-1.22.2+10+g3baa2d7a-1-x86_64.pkg.tar.xz' из mirror.lastmikoi.net : The requested URL returned error: 404
ошибка: не удалось получить файл 'cogl-1.22.2+10+g3baa2d7a-1-x86_64.pkg.tar.xz' из f.archlinuxvn.org : The requested URL returned error: 404
ошибка: не удалось получить файл 'cogl-1.22.2+10+g3baa2d7a-1-x86_64.pkg.tar.xz' из archlinux.mirror.colo-serv.net : The requested URL returned error: 404
Текущая версия 1.22.2+22+ge023a361-1 вообще-то: https://www.archlinux.org/packages/extra/x86_64/cogl/
Код:$ yaourt -yyS cogl
# вообще лучше (что бы все в системе обновить заодно):
$ yaourt -yySua cogl
Короче поставился cogl
переустановил unreal, - ситуация такая же. промелькивает окно и все падает. будь просто запускаю, будь в папке с прогой.
а вот РОМы кидать надо куда? а то может, и валиться. Я просто ставил по yaourt и все.
Даже ассоциации файлов на унреал перевелись, но промелькивает и исчезает рамка окошка
.
А что должно лежать в ~/.usp ?
Конфиг его как минимум. Он создает, если нет.
А до его установки была эта директория? Если раньше использовался usp, может старый какой конфиг остался там и в этом дело? Можно попробовать переименовать/удалить ~/.usp и посмотреть будет ли работать.
он пустой. и раньше небыло.
может че кинуть туда? что там есть у тебя?
может видеорежим нужно подправить например.
UPD
nри удалении этой директории он её создает снова пустой, и падает также.
На raspbian в ~/.usp кэширутся файлы, отрываемые из инета. Например:
~/.usp/bbb/s/shocktit.zip
~/.usp/rzx/a/amc.zip
И конфиг создаётся (сам!) по имени unreal_speccy_portable.xml
<?xml version="1.0" encoding="UTF-8"?>
<UnrealSpeccyPortable>
<Options>
<web_browse_last_item>bbb/s/satisfac.zip</web_browse_last_item>
<last_file>/home/pi/.usp/bbb/s/shocktit.zip/SHOCKTIT.SCL</last_file>
<joystick>cursor</joystick>
<sound_chip>ay</sound_chip>
<ay_stereo>abc</ay_stereo>
<zoom>fill screen</zoom>
<filtering>on</filtering>
<fast_tape>on</fast_tape>
<auto_play_image>on</auto_play_image>
<mode_48k>off</mode_48k>
<reset_to_service_rom>off</reset_to_service_rom>
</Options>
</UnrealSpeccyPortable>
AER, сделай Debug-версию, просто же. Понятно будет на чем именно валится.
В ~/.usp у меня дефолтный конфиг, автоматически созданный, подобно тому что у creator.
Это ничего не даст. USP должен его сам создать. То что не создает говорит о том что он валится раньше.
Скорее всего поймешь. Если валится по assert() - будет сообщение более информативное.Цитата:
по дебагу один хрен ничего непойму, что читать, где читать.
или же сейчс буду git версию час собирать.
Запускаешь из терминала и смотришь на сообщение об ошибке.Цитата:
так собираю дебаг версию. и что дальше?
ОК, у меня закончились идеи.
Как воспроизвести эту проблему не понятно, у меня работает.
выхлоп
strace unreal-speccy-portable:
https://cloud.mail.ru/public/EVfn/v7q8XAfSh
видева как незапускается:
https://cloud.mail.ru/public/3hDQ/YLsQUuARB
Тогда более полезно может быть:
- - - Добавлено - - -Код:cd /usr/lib/unreal-speccy-portable
ltrace ./unreal_speccy_portable
А лучше всего собрать debug-версию (как описано выше) и запустить под gdb:
Код:cd /usr/lib/unreal-speccy-portable
gdb ./unreal_speccy_portable
r
Собрал USP под свежий Astra Linux, полёт нормальный.