-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adds basic SDL support #26
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 66da8eb.
.travis.yml
Outdated
@@ -1,4 +1,9 @@ | |||
language: c | |||
os: linux | |||
dist: trusty | |||
before_install: | |||
- sudo apt-get -y install libegl1-mesa-dev libgles2-mesa-dev libsdl2-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try adding libsdl2-2.0 (that's what https://wiki.libsdl.org/Installation tells)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be trying that now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still failing :(
Makefile
Outdated
@@ -1,9 +1,9 @@ | |||
CFLAGS = -Wall -g | |||
CFLAGS = -Wall -g -lSDL2 -lSDL2main -std=c99 -I/usr/local/include/SDL2/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if SDL2 is installed system-wide in Travis this shouldn't be neccesary, it's worth checking
Right now, the main function tests the SDL support by launching a white window with a diagonal red line, which is alive for 3 seconds before closing itself and finishing the program. Eventually, real support for drawing from the emulator into this window has to be implemented.
Closes #3.