joncampbell123 / dosbox-x

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

Build process on Raspberry pi 3b failed with "sdl2-config: No such file or directory" #1943

Open facilitas opened 3 years ago

facilitas commented 3 years ago

Describe the bug running ./build-debug results in the following message:

checking for SDL - version >= 2.0.5... ../configure: line 15838: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config: No such file or directory
../configure: line 15839: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config: No such file or directory
../configure: line 15843: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config: No such file or directory
../configure: line 15845: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config: No such file or directory
../configure: line 15847: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config: No such file or directory
no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl2-config script: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl2-config
checking for sdl-config... /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config
checking for SDL - version >= 1.2.0... ../configure: line 16190: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config: No such file or directory
../configure: line 16191: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config: No such file or directory
../configure: line 16194: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config: No such file or directory
../configure: line 16196: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config: No such file or directory
../configure: line 16198: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config: No such file or directory
no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /home/hu/git/dosbox-x/vs2015/sdlnet/../sdl2/linux-host/bin/sdl-config
configure: error: SDL 1.x or SDL 2.x is required to compile this program

To Reproduce Steps to reproduce the behavior: git clone https://github.com/joncampbell123/dosbox-x.git cd dosbox-x sudo ./build-debug

Expected behavior Building continues.

Environment (please complete the following information):

Additional context Installed sdl packages: libsdl-image1.2 libsdl-image1.2-dev libsdl-mixer1.2 libsdl-mixer1.2-dev libsdl-net1.2 libsdl-net1.2-dev libsdl-ttf2.0-0 libsdl-ttf2.0-dev libsdl1.2-dev libsdl1.2debian libsdl2-2.0-0 libsdl2-dev

$ locate -i sdl.h
/home/hu/git/dosbox-x/vs2015/libpdcurses/sdl1/pdcsdl.h
/home/hu/git/dosbox-x/vs2015/libpdcurses/sdl2/pdcsdl.h
/home/hu/git/dosbox-x/vs2015/sdl/include/SDL.h
/home/hu/git/dosbox-x/vs2015/sdl/linux-host/include/SDL/SDL.h
/home/hu/git/dosbox-x/vs2015/sdl2/include/SDL.h
/usr/include/SDL/SDL.h
/usr/include/SDL2/SDL.h
/usr/include/python2.7/asdl.h
/usr/include/python3.5m/asdl.h

config.log vs2015/sdl/linux-build/config.log:

conftest.c:25:17: fatal error: SDL.h: No such file or directory
 #include "SDL.h"
                 ^
compilation terminated.
configure:16328: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define PACKAGE "SDL_net"
| #define VERSION "1.2.8"
| /* end confdefs.h.  */
| 
| #include <stdio.h>
| #include "SDL.h"
| 
| int main(int argc, char *argv[])
| { return 0; }
| #undef  main
| #define main K_and_R_C_main
| 
| int
| main ()
| {
|  return 0;
|   ;
|   return 0;
| }
configure:16368: error: SDL 1.x or SDL 2.x is required to compile this program

vs2015/sdlnet/linux-build/config.log

the log of build process

Wengier commented 3 years ago

I do not have Raspberry Pi to test, but I wonder whether you want to build the SDL1 version or the SDL2 version? If you want the latter you can try ./build-debug-sdl2 instead.