Skip to content
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

fatal error: KHR/khrplatform.h: No such file or directory #17

Open
williamfzc opened this issue Jul 14, 2020 · 1 comment · May be fixed by #18
Open

fatal error: KHR/khrplatform.h: No such file or directory #17

williamfzc opened this issue Jul 14, 2020 · 1 comment · May be fixed by #18

Comments

@williamfzc
Copy link

Step 10/14 : RUN cd scrcpy/x && ninja
 ---> Running in b97ee8d45e48
[1/26] Generating scrcpy-server-prebuilt with a custom command
[2/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_sys_unix_command.c.o'
[3/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_util_str_util.c.o'
[4/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_util_net.c.o'
[5/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_video_buffer.c.o'
[6/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_tiny_xpm.c.o'
[7/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_stream.c.o'
[8/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_server.c.o'
[9/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_screen.c.o'
[10/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_scrcpy.c.o'
[11/26] Compiling C object 'app/a172ced@@scrcpy@exe/src_recorder.c.o'
ninja: job failed: cc -Iapp/a172ced@@scrcpy@exe -Iapp -I../app -I../app/src -I/usr/include/SDL2 -I/usr/include/directfb -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_REENTRANT -MD -MQ 'app/a172ced@@scrcpy@exe/src_scrcpy.c.o' -MF 'app/a172ced@@scrcpy@exe/src_scrcpy.c.o.d' -o 'app/a172ced@@scrcpy@exe/src_scrcpy.c.o' -c ../app/src/scrcpy.c
In file included from /usr/include/SDL2/SDL_opengl.h:2105,
                 from ../app/src/opengl.h:5,
                 from ../app/src/screen.h:10,
                 from ../app/src/input_manager.h:11,
                 from ../app/src/scrcpy.h:9,
                 from ../app/src/scrcpy.c:1:
/usr/include/SDL2/SDL_opengl_glext.h:475:10: fatal error: KHR/khrplatform.h: No such file or directory
  475 | #include <KHR/khrplatform.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: job failed: cc -Iapp/a172ced@@scrcpy@exe -Iapp -I../app -I../app/src -I/usr/include/SDL2 -I/usr/include/directfb -flto -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -O3 -D_REENTRANT -MD -MQ 'app/a172ced@@scrcpy@exe/src_screen.c.o' -MF 'app/a172ced@@scrcpy@exe/src_screen.c.o.d' -o 'app/a172ced@@scrcpy@exe/src_screen.c.o' -c ../app/src/screen.c
In file included from /usr/include/SDL2/SDL_opengl.h:2105,
                 from ../app/src/opengl.h:5,
                 from ../app/src/screen.h:10,
                 from ../app/src/screen.c:1:
/usr/include/SDL2/SDL_opengl_glext.h:475:10: fatal error: KHR/khrplatform.h: No such file or directory
  475 | #include <KHR/khrplatform.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: subcommands failed
The command '/bin/sh -c cd scrcpy/x && ninja' returned a non-zero code: 1

BTW, git clone https://github.com/Genymobile/scrcpy.git would clone full version of scrcpy repo. Maybe better use git clone --depth 1 instead.

@williamfzc
Copy link
Author

williamfzc commented Jul 14, 2020

and actually your image is 1.12.1 but git clone will use the latest src.

@williamfzc williamfzc linked a pull request Jul 14, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant