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

Adds basic SDL support #26

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

DavidMazarro
Copy link
Member

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.

@DavidMazarro DavidMazarro added the ci-not-passing Travis CI is not passing label Aug 16, 2020
.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
Copy link
Contributor

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)

Copy link
Member Author

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

Copy link
Member Author

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/
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-not-passing Travis CI is not passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add SDL video support
2 participants