Git Product home page Git Product logo

yurt-sdl's Introduction

Build Steps
------
A pre-build version is included with this library, but you can build one yourself!

1. Run: `./install_ubuntu.sh` or `install_centos.sh` depending on the platform you're running.
2. Run `./build.sh` this will build both development, release, and release PIC static versions, as well as debug and release shared library versions of (YURT) SDL.


Usage
------
To run a program on YURT display, specifiy the `DISPLAY` and `SDL_DISPLAY_START` environment variables.

For instance, to run on display 3, run: `DISPLAY=:0.3 SDL_DISPLAY_START=3 ./my-sdl-app`

If SDL_DISPLAY_START is not specified the default is 0.

Tricks
------
You can either have your project build and use SDL library or use LD_PRELOAD.

If you're porting an application and don't want to mess with its build system, LD_PRELOAD is probably easier. Note this ONLY works if SDL is being loaded as a shared library LD_PRELOAD will cause the program to use the YURT version of SDL rather than the default one used by the project.

For instance, to run on display 3, run: `LD_PRELOAD=/path/to/YURT-SDL/build-SDL-Shared-Release/libSDL2-2.0.so DISPLAY=:0.3 SDL_DISPLAY_START=3 ./my-sdl-app`

You can also use that `libSDL2-2.0.so.0` in the root of the project directory.

Notes
------
...

yurt-sdl's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.