Code Monkey home page Code Monkey logo

dosbox-x's People

Contributors

flexiondotorg avatar kenvandine avatar merlijn-sebrechts avatar mr-cal avatar popey avatar snap-advocacy-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dosbox-x's Issues

No audio output.

There is no audio output.
Tested with wolfenstein 3D and "skunny kart".
Using --edge build

Regular non-snapped dosbox from ppa:i30817/dosbox-patched works fine with audio.

I use Linux Mint 19.1.

Might be because the games use midi?

You have not selected a valid path

What happened?

  1. I had the DOSBox-X snap installed.
  2. I attempted to launch DOSBox-X after hitting the "Windows" key, typed DOSBox-X, and pressed enter on the search entry that came up.
  3. Nothing happened.
  4. I did something else, and my hard drive eventually filled up with log spam.

/var/log/syslog contained the following spam:

Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: You have not selected a valid path. Do you want to run DOSBox-X with the current path as the DOSBo>
Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: DOSBox-X will exit if you select No.
Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: y/n:

Because this was happening thousands of times a second for awhile, my syslog ended up consuming hundreds of gigabytes.

What should have happened?

Preferably, the app should have launched. In lieu of that, a user-facing error message would have been nice. Not the log spam 😆

Output of snap info $snap_name

name:      dosbox-x
summary:   DOSBox-X fork of the DOSBox project
publisher: Snapcrafters
store-url: https://snapcraft.io/dosbox-x
contact:   https://github.com/snapcrafters/dosbox-x/issues
license:   unset
description: |
  DOSBox-X is a x86 emulator with Tandy/Hercules/CGA/EGA/VGA/SVGA graphics
  sound and DOS. It's been designed to run old DOS games under platforms that
  don't support it.
  
  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - dosbox-x
snap-id:      ogcav3zrjqBXdDx8ofgJYMEPSLVRs9ID
tracking:     latest/stable
refresh-date: today at 00:23 EST
channels:
  latest/stable:    0.83.14 2021-06-02  (840) 81MB -
  latest/candidate: ↑                              
  latest/beta:      0.83.12 2021-04-02  (776) 81MB -
  latest/edge:      0.83.21 2022-01-11 (1028) 82MB -
installed:          0.83.14             (840) 81MB -

Output of snap connections $snap_name

Interface        Plug                      Slot             Notes
audio-playback   dosbox-x:audio-playback   :audio-playback  -
desktop          dosbox-x:desktop          :desktop         -
desktop-legacy   dosbox-x:desktop-legacy   :desktop-legacy  -
home             dosbox-x:home             :home            -
network          dosbox-x:network          :network         -
network-bind     dosbox-x:network-bind     :network-bind    -
opengl           dosbox-x:opengl           :opengl          -
removable-media  dosbox-x:removable-media  -                -
unity7           dosbox-x:unity7           :unity7          -

Output of snap version

snap    2.54.3.2
snapd   2.54.3.2
series  16
ubuntu  21.10
kernel  5.13.0-35-generic

Relevant log output

Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: You have not selected a valid path. Do you want to run DOSBox-X with the current path as the DOSBo>
Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: DOSBox-X will exit if you select No.
Mar 12 20:00:33 jayschwa-desktop dosbox-x_dosbox-x.desktop[134923]: y/n:

Teminal output of app

No response

Needs newer ffmpeg

0.82.20 requires a newer ffmpeg.

g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../src/aviwriter -I../../src/hardware/snd_pc98/sound -I../../src/hardware/snd_pc98/common -I../../src/hardware/snd_pc98/generic -I../../src/hardware/snd_pc98/sound/getsnd -I../../src/hardware/snd_pc98/x11 -I../../src/hardware/snd_pc98/cbus -I../../src -Wno-extended-offsetof   -Wno-int-to-void-pointer-cast   -Wno-address-of-packed-member   -Wno-format-zero-length   -Wno-missing-field-initializers   -Wno-strict-aliasing   -Wno-implicit-fallthrough   -Wno-deprecated-declarations   -Wconversion-null   -Wsign-promo   -Wlogical-op   -pedantic   -Wunused   -Wextra   -Wall   -Wno-unknown-warning   -I/build/dosbox-x/parts/dosbox-x/build/vs2015/sdl/linux-host/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/build/dosbox-x/parts/dosbox-x/build/vs2015/sdlnet/linux-host/include -I/build/dosbox-x/parts/dosbox-x/build/vs2015/sdlnet/linux-host/include/SDL -I/usr/include/x86_64-linux-gnu  -g -std=gnu++11  -O2 -msse  -Wno-unknown-warning   -Wall   -Wextra   -Wunused   -pedantic   -Wlogical-op   -Wsign-promo   -Wconversion-null   -Wno-deprecated-declarations   -Wno-implicit-fallthrough   -Wno-strict-aliasing   -Wno-missing-field-initializers   -Wno-format-zero-length   -Wno-address-of-packed-member   -Wno-int-to-void-pointer-cast   -Wno-extended-offsetof  -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -I/build/dosbox-x/parts/dosbox-x/build/vs2015/sdlnet/linux-host/include -I/build/dosbox-x/parts/dosbox-x/build/vs2015/sdlnet/linux-host/include/SDL  -MT hardware.o -MD -MP -MF $depbase.Tpo -c -o hardware.o hardware.cpp &&\
mv -f $depbase.Tpo $depbase.Po
hardware.cpp:57:4: error: #error Your libavcodec is too old. Update FFMPEG.
 #  error Your libavcodec is too old. Update FFMPEG.

Perhaps we can use a stage snap?

dosbox-x snap does not start

@popey I decided to have a look at the Snap package, to see how it compares to the Flatpak I made. And if I could perhaps add some contributions. But I immediately run into a problem. Namely, it does not start. Neither from the desktop by clicking on the icon or from the command line. The command line though gives at least a hint as to what is going on.

$ snap info dosbox-x
name:      dosbox-x
summary:   DOSBox-X fork of the DOSBox project
publisher: Snapcrafters
store-url: https://snapcraft.io/dosbox-x
contact:   https://github.com/snapcrafters/dosbox-x/issues
license:   unset
description: |
  DOSBox-X is a x86 emulator with Tandy/Hercules/CGA/EGA/VGA/SVGA graphics
  sound and DOS. It's been designed to run old DOS games under platforms that
  don't support it.
  
  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - dosbox-x
snap-id:      ogcav3zrjqBXdDx8ofgJYMEPSLVRs9ID
tracking:     latest/stable
refresh-date: today at 09:17 CEST
channels:
  latest/stable:    0.83.6 2020-10-02 (597) 80MB -
  latest/candidate: ↑                            
  latest/beta:      0.83.6 2020-10-02 (597) 80MB -
  latest/edge:      0.83.5 2020-10-06 (603) 79MB -
installed:          0.83.6            (597) 80MB -
$ snap run dosbox-x
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
LOG: Early LOG Init complete
LOG: Logging init: beginning logging proper. This is the end of the early init logging
LOG: Logging: No logfile was given. All further logging will be discarded.
LOG: DOSBox-X version 0.83.6 (Linux SDL1)
LOG: E_Exit: Can't init SDL No available video device
E_Exit: Can't init SDL No available video device

Any idea what may be causing this? I'm running Fedora 33 beta with Wayland.

Two other things I noticed.

  • It still uses the regular dosbox icon on the linux desktop, and not the dosbox-x icon. Please also note that there is a SVG icon available in dosbox-x under contrib/icons which should be used where possible.
  • Your using the SDL1 build apparently based on the above LOG messages, even though from the snapcract.yaml it seems like it should be SDL2?

Fails to build

Looks like it needs to build using the supplied libsdl not from the repo.

-D_POSIX_C_SOURCE=200809L  -mmmx -msse -msse2 -MT render.o -MD -MP -MF $depbase.Tpo -c -o render.o render.cpp &&\
mv -f $depbase.Tpo $depbase.Po
sdlmain.cpp:109:4: error: #error This code must be compiled using the SDL 1.x library provided in this source repository
 #  error This code must be compiled using the SDL 1.x library provided in this source repository
    ^
sdlmain_linux.cpp: In function ‘void Linux_JPXKBFix()’:
sdlmain_linux.cpp:58:30: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
                     sym[j] = XKeycodeToKeysym(wminfo.info.x11.display,(KeyCode)i,j);
                              ^

Config file is not included.

HI there. The file dosbox-x-.conf file is not included, and configurations from the GUI won't save.
Only reason I went with the Snap package is because Dosbox-x is not packaged for Ubuntu.
I also tried to compile it from source which didn't work because there were missing libraries.

Crashes when enabling opengl

As per https://forum.snapcraft.io/t/dosbox-x-crashes-when-trying-to-use-opengl-output/11453/2

When switching from software to OpenGl output in dosbox-x (by going to Video->Output->OpenGL), it crashes.
The terminal output seems to suggest that it can’t find the appropriate libraries:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error:  BadValue
  Request Major code 152 (GLX)
  Request Minor code 3 ()
  Value 0x0
  Error Serial #218
  Current Serial #219

Add armhf support

When trying to snap install Dosbox-x, I got following error message:
snap "dosbox-x" is not available on stable for this architecture (armhf) but exists on other architectures (amd64, i386)

I'm running Linux Debian Buster (32bit) on a Raspberry Pi 3.

Is it possible to create a snap version for this platform?

[Bug]: "serial1=directserial realport:ttyS0" doesn't work

What happened?

/dev/ttyS0 couldn't be opened while the user running dosbox-x had read-write permisson.

What should have happened?

The "serial-port" plug should be configured in snapcraft.yaml.

Output of snap info $snap_name

store-url: https://snapcraft.io/dosbox-x
contact:   https://github.com/snapcrafters/dosbox-x/issues
...
installed:          0.83.14             (840) 81MB

Output of snap connections $snap_name

Interface        Plug                      Slot             Notes
audio-playback   dosbox-x:audio-playback   :audio-playback  -
desktop          dosbox-x:desktop          :desktop         -
desktop-legacy   dosbox-x:desktop-legacy   :desktop-legacy  -
home             dosbox-x:home             :home            -
network          dosbox-x:network          :network         -
network-bind     dosbox-x:network-bind     :network-bind    -
opengl           dosbox-x:opengl           :opengl          -
removable-media  dosbox-x:removable-media  -                -
unity7           dosbox-x:unity7           :unity7          -

Output of snap version

snap    2.53.4
snapd   2.53.4
series  16
ubuntu  20.04
kernel  5.13.0-27-generic

Relevant log output

strace:
openat(AT_FDCWD, "/dev/ttyS0", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 EPERM

Teminal output of app

LOG: DOSBox-X version 0.83.14 (Linux SDL1)                                      
...
LOG: Serial1: BASE 3f8h                                                         
LOG: Serial1: Opening ttyS0                                                     
LOG: Serial1: Serial Port "ttyS0" could not be opened.                          
LOG: System error 9.

Cannot access file /usr/share/alsa/alsa.conf

I'm trying to make DosBox-X to work with MUNT emulator for MT-32.

I have the following lines to my dosbox.conf

mpu401              = intelligent
mididevice          = default
midiconfig           = 128:0

When I start DosBox-X from command line I get the following errors:

ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ hw

Changes requested

Hi,

I would like to ask for a few things to be changed for building the snap package. Such that the snap and flatpak experiences are more in-line with each other. fyi, I created the flatpak package.

A new dosbox-x release should be out around the 1st of the month, and I will be preparing some minor updates to the flatpak yaml for the next version. For instance, right now the flatpak page does not show any screenshots, but once the new build is done with the updated metainfo.xml, screenshots will be shown.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.