joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.76k stars 381 forks source link

How i can compile with SDL1 support under Devuan ASCII 64 Bits #1148

Open inukaze opened 5 years ago

inukaze commented 5 years ago

Describe the bug I can't compile

To Reproduce Steps to reproduce the behavior:

  1. Download the source code
  2. Extract the source code
  3. Try to compile with this commands
PREFIX="/media/Compartido/Videojuegos/Msdos/dosbox-x/x86_64/0.82.19/sdl1"
./configure --disable-avcodec --enable-sdl --disable-sdl2 --prefix="$PREFIX"
  1. Get the follow output
    Making all in gui
    make[3]: se entra en el directorio '/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/src/gui'
    depbase=`echo sdlmain_linux.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../src/aviwriter "-DRESDIR=\"\"" -I../../src -I../../src/mt32 -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   -Wconversion-null   -pedantic   -Wextra   -Wall   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include/SDL  -g -std=gnu++11  -O2 -msse  -Wall   -Wextra   -pedantic   -Wconversion-null   -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/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include/SDL  -MT sdlmain_linux.o -MD -MP -MF $depbase.Tpo -c -o sdlmain_linux.o sdlmain_linux.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
    sdlmain_linux.cpp: In function ‘void Linux_JPXKBFix()’:
    sdlmain_linux.cpp:191:30: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
                     sym[j] = XKeycodeToKeysym(wminfo.info.x11.display,(KeyCode)i,(int)j);
                              ^~~~~~~~~~~~~~~~
    In file included from /usr/include/SDL/SDL_syswm.h:58:0,
                 from sdlmain_linux.cpp:9:
    /usr/include/X11/Xlib.h:1687:15: note: declared here
    extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
    sdlmain_linux.cpp:191:88: warning: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated [-Wdeprecated-declarations]
                     sym[j] = XKeycodeToKeysym(wminfo.info.x11.display,(KeyCode)i,(int)j);
                                                                                        ^
    In file included from /usr/include/SDL/SDL_syswm.h:58:0,
                 from sdlmain_linux.cpp:9:
    /usr/include/X11/Xlib.h:1687:15: note: declared here
    extern KeySym XKeycodeToKeysym(
               ^~~~~~~~~~~~~~~~
    At global scope:
    cc1plus: warning: unrecognized command line option ‘-Wno-extended-offsetof’
    cc1plus: warning: unrecognized command line option ‘-Wno-int-to-void-pointer-cast’
    cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
    cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
    cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
    cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
    cc1plus: warning: unrecognized command line option ‘-Wno-int-to-void-pointer-cast’
    cc1plus: warning: unrecognized command line option ‘-Wno-extended-offsetof’
    depbase=`echo sdlmain.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I../../src/aviwriter "-DRESDIR=\"\"" -I../../src -I../../src/mt32 -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   -Wconversion-null   -pedantic   -Wextra   -Wall   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include/SDL  -g -std=gnu++11  -O2 -msse  -Wall   -Wextra   -pedantic   -Wconversion-null   -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/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include -I/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/vs2015/sdlnet/linux-host/include/SDL  -MT sdlmain.o -MD -MP -MF $depbase.Tpo -c -o sdlmain.o sdlmain.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
    sdlmain.cpp:146: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
    ^~~~~
    cc1plus: warning: unrecognized command line option ‘-Wno-extended-offsetof’
    cc1plus: warning: unrecognized command line option ‘-Wno-int-to-void-pointer-cast’
    cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
    cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
    cc1plus: warning: unrecognized command line option ‘-Wno-implicit-fallthrough’
    cc1plus: warning: unrecognized command line option ‘-Wno-address-of-packed-member’
    cc1plus: warning: unrecognized command line option ‘-Wno-int-to-void-pointer-cast’
    cc1plus: warning: unrecognized command line option ‘-Wno-extended-offsetof’
    Makefile:435: fallo en las instrucciones para el objetivo 'sdlmain.o'
    make[3]: *** [sdlmain.o] Error 1
    make[3]: se sale del directorio '/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/src/gui'
    Makefile:529: fallo en las instrucciones para el objetivo 'all-recursive'
    make[2]: *** [all-recursive] Error 1
    make[2]: se sale del directorio '/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19/src'
    Makefile:391: fallo en las instrucciones para el objetivo 'all-recursive'
    make[1]: *** [all-recursive] Error 1
    make[1]: se sale del directorio '/media/Compartido/Liñux/cdf/dosbox-x-dosbox-x-v0.82.19'
    Makefile:328: fallo en las instrucciones para el objetivo 'all'
    make: *** [all] Error 2

Expected behavior Compile without errors

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

joncampbell123 commented 5 years ago

Please use ./build-debug-no-avcodec.

SDL1 builds must use the heavily modified SDL1 library in-tree.

SDL2 builds can use the system library or the in-tree version.

inukaze commented 5 years ago

Using ./build-debug-no-avcodec no error. its compiled

Full Output on -> This link

inukaze commented 5 years ago

I had the follow dunnos :

1) Some idea why with the SDL1 version when i try to maxime, this happen : dosbox-x-sdl1.png

2) Ok with the SDL2 works fine when i maxime, but i can't use the same commands working fine on the dosbox-0.74 official dosbox-x-sdl2.png

3) Dosbox-0.74 Official. i really need change meanwhile use (i don't know which is the english term for that, something like "on fly", "on hot", "in live") dosbox-0-74-official.png

The lastest thing is because i use dosbox, dosbox-ece, and dosbox-x and i make my own batch scripts for set optimal configuration on my pc for each game before start it and when the game exit, restore my default favorite configuration for dosbox.

core auto
cputype auto
cycles 32768
cycleup   = 1024
cycledown = 1024
joncampbell123 commented 5 years ago

The SDL1 build may fail to detect that it's maximized if the window manager doesn't indicate it right away. Not sure how to fix that yet, since here on Linux and on CentOS 7 SDL1 does not have that problem that I'm aware of.