Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Artifact ID: | 5cd664389f79373c36d48fa1a28afb3089a866b3 |
---|---|
Page Name: | Beyond AndroWish |
Date: | 2019-02-17 11:40:44 |
Original User: | chw |
Parent: | fc089c224c6644fdc6905b9e7a93831c6c8f9cb9 |
Some subdirectories of AndroWish have a ready-to-build-then-use Debian infrastructure built in. That allows to build Debian packages easily e.g. on a Raspbian distribution running on your Raspberry Pi:
cd .../jni/SDL2 ; dpkg-buildpackage -tc -uc ; dpkg -i ../libsdl2*.deb cd .../jni/tcl ; dpkg-buildpackage -tc -uc ; dpkg -i ../sdltcl*.deb cd .../jni/sdl2tk ; dpkg-buildpackage -tc -uc ; dpkg -i ../sdl2tk*.deb /opt/sdltk86/bin/sdl2wish8.6
Building some components of AndroWish for the Windows OS family is possible, too, by using cross compilation on a Linux system. More information can be found in undroidwish.
The resulting sdl2wish8.6, sdl2wish86.exe, or undroidwish binaries support additional command line options to control certain SDL features. Important: these options must be specified on the command line after the optional script to be executed:
-sdlfullscreen
Make the SDL window (the root window for Tk) into a fullscreen window.
-sdlresizable
Allow resizing of the SDL window.
-sdlnoborder
Make the SDL window borderless, i.e. without window manager decorations.
-sdlheight pixels
Set the height of the SDL window to pixels.
-sdlwidth pixels
Set the width of the SDL window to pixels.
-sdlrootheight pixels
Set the height of the root window (as seen by Tk) to pixels. If not set, the root window's size is equal to the SDL window size.
-sdlrootwidth pixels
Set the width of the root window (as seen by Tk) to pixels. If not set, the root window's size is equal to the SDL window size.
-sdlxdpi dpi
Set the dots per inch ratio for the X dimension to dpi. If both, -sdlxdpi and -sdlydpi are not set, the default is approx. 75 dpi. If only one dimension is set (-sdlxdpi or -sdlydpi), that value is taken as overall dots per inch ratio.
-sdlydpi dpi
Set the dots per inch ratio for the Y dimension to dpi. If both, -sdlxdpi and -sdlydpi are not set, the default is approx. 75 dpi. If only one dimension is set (-sdlxdpi or -sdlydpi), that value is taken as overall dots per inch ratio.
-sdlnogl
Force using the software renderer. This turns OpenGL usage off.
-sdllog level
Set the minimum log level to be shown in SDL log message. level must be a positive integer.
-sdlicon filename
Set the SDL root window icon to the BMP image from filename.
-sdlnosysfonts
Don't search for and register system fonts. This can reduce startup time significantly.
-sdlopacity value
Set the initial opacity of the SDL root window. value must be given as positive integer percentage.
-sdlswcursor
Force use of a software cursor texture. Useful, when no proper hardware cursor support is available, e.g. in Haiku using the OpenGL render driver.
Some SDL runtime switches must be specified early by setting environment variables. All these switches are documented in the SDL_hints.h header file. The most important are:
SDL_VIDEODRIVER
A string selecting the video driver, use it to enable the jsmpeg video driver.
SDL_RENDER_DRIVER
A string selecting the SDL renderer. Normally chosen automatically but sometimes it can be necessary to explicitly turn on the software renderer. Other possible values depend on how SDL was built, e.g opengl, opengles2 etc.