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

Compilation instructions #1

Open
The-King-of-Toasters opened this issue Sep 21, 2018 · 0 comments
Open

Compilation instructions #1

The-King-of-Toasters opened this issue Sep 21, 2018 · 0 comments

Comments

@The-King-of-Toasters
Copy link

The-King-of-Toasters commented Sep 21, 2018

Hello!

I came across your post in the plan9port issue tracker (9fans/plan9port#130), and was wondering how this devdraw port is compiled. I tried dropping sdl-srv.c in $PLAN9/src/cmd/devdraw and running 9c sdl-srv.c. First it complained about the SDL header:

sdl-srv.c:31:10: fatal error: SDL.h: No such file or directory
 #include <SDL.h>
          ^~~~~~~
compilation terminated.

After changing it to SDL2/SDL.h, the real errors started showing up:

sdl-srv.c:184:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  msg->error = SDL_GetError();
             ^
sdl-srv.c:327:2: error: label at end of compound statement
  defualt:
  ^~~~~~~
sdl-srv.c:327:2: warning: label ‘defualt’ defined but not used [-Wunused-label]
sdl-srv.c:67:13: warning: ‘handle_rdmouse’ used but never defined
 static void handle_rdmouse(Wsysmsg *);
             ^~~~~~~~~~~~~~
sdl-srv.c:70:13: warning: ‘handle_bouncemouse’ used but never defined
 static void handle_bouncemouse(Wsysmsg *);
             ^~~~~~~~~~~~~~~~~~
sdl-srv.c:131:1: warning: ‘matchevt’ defined but not used [-Wunused-function]
 matchevt(Evtq q, Evt evt, uchar *tag)
 ^~~~~~~~

For reference, I'm currently running Arch Linux with kernel 4.18.9 and SDL2 version 2.0.8.

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

No branches or pull requests

1 participant