Re: Raspberry Pi (Raspbian) + OpenglES + no X

Alex Barry <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAJSO58OOuV-5mb29vPkLB3uUHZzwFF11JwO3iiG5YCseizAOfg@mail.gmail.com>
I'd say build it yourself, distribute the library files with your app.  I
think most people are building with the flags you mentioned.  Here is the
script the buildbot uses
<https://hg.libsdl.org/SDL/file/default/build-scripts/raspberrypi-buildbot.sh>
to test raspberry pi builds.  You might not need all of those flags (ie
prefix, sysroot, etc.), but that's a good starting point for a known, good
configure.  There are a few others that probably do more SDL apps for
raspberry pi than myself that could give you better directions, but that's
at least a start.

On Thu, Oct 6, 2016 at 11:59 AM, cleger <[email protected]> wrote:

> Greetings.
>
> I'm trying to build an application on Raspberry Pi (version 1A or
> 2B+)/raspbian which:
>
> - uses SDL for event handling, image loading, sound, etc.
> - uses OpenglES for rendering
> - runs without X (just to save memory)
>
> I've read a great many posts where people help each other build or run
> SDL+OpenglES apps, but I can never completely nail down what config people
> are dealing with.
>
> My questions:
> - Can I build and run the above app with the stock SDL2-dev library that I
> can get from the Raspbian ppt?
> - In order to build and run my app, must I first build SDL2 with
> rpi-related flags enabled, and use a few disables, such as
> --disable-video-x11, --disable-video-opengl, etc.?
>
> My main dilemma is that I don't know whether SDL for Raspbian 'prefers' or
> 'assumes' it is running inside of, or outside of, X.
>
> Anyone who wants to throw a wall of text at me explaining how SDL is
> configured for this would be my hero.
>
> Thank you in advance.
>
> _______________________________________________
> SDL mailing list
> [email protected]
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.