Artifact Content
Not logged in

Artifact 5cd664389f79373c36d48fa1a28afb3089a866b3:

Wiki page [Beyond AndroWish] by chw 2019-02-17 11:40:44.
D 2019-02-17T11:40:44.048
L Beyond\sAndroWish
P fc089c224c6644fdc6905b9e7a93831c6c8f9cb9
U chw
W 3946
Some subdirectories of [AndroWish] have a ready-to-build-then-use <a href="http://www.debian.org">Debian</a> infrastructure built in. That allows to build Debian packages easily e.g. on a <a href="http://www.raspbian.org">Raspbian</a> distribution running on your Raspberry Pi:

<verbatim>
    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
</verbatim>

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 <tt>sdl2wish8.6</tt>, <tt>sdl2wish86.exe</tt>, 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:

<tt>-sdlfullscreen</tt>

    Make the SDL window (the root window for Tk) into a fullscreen window.

<tt>-sdlresizable</tt>

    Allow resizing of the SDL window.

<tt>-sdlnoborder</tt>

    Make the SDL window borderless, i.e. without window manager decorations.

<tt>-sdlheight <i>pixels</i></tt>

    Set the height of the SDL window to <tt><i>pixels</i></tt>.

<tt>-sdlwidth <i>pixels</i></tt>

    Set the width of the SDL window to <tt><i>pixels</i></tt>.

<tt>-sdlrootheight <i>pixels</i></tt>

    Set the height of the root window (as seen by Tk) to <tt><i>pixels</i></tt>. If not set, the root window's size is equal to the SDL window size.

<tt>-sdlrootwidth <i>pixels</i></tt>

    Set the width of the root window (as seen by Tk) to <tt><i>pixels</i></tt>. If not set, the root window's size is equal to the SDL window size.

<tt>-sdlxdpi <i>dpi</i></tt>

    Set the dots per inch ratio for the X dimension to <tt><i>dpi</i></tt>. If both, <tt>-sdlxdpi</tt> and <tt>-sdlydpi</tt> are not set, the default is approx. 75 dpi. If only one dimension is set (<tt>-sdlxdpi</tt> or <tt>-sdlydpi</tt>), that value is taken as overall dots per inch ratio.

<tt>-sdlydpi <i>dpi</i></tt>

    Set the dots per inch ratio for the Y dimension to <tt><i>dpi</i></tt>. If both, <tt>-sdlxdpi</tt> and <tt>-sdlydpi</tt> are not set, the default is approx. 75 dpi. If only one dimension is set (<tt>-sdlxdpi</tt> or <tt>-sdlydpi</tt>), that value is taken as overall dots per inch ratio.

<tt>-sdlnogl</tt>

    Force using the software renderer. This turns OpenGL usage off.

<tt>-sdllog <i>level</i></tt>

    Set the minimum log level to be shown in SDL log message. <tt><i>level</i></tt> must be a positive integer.

<tt>-sdlicon <i>filename</i></tt>

    Set the SDL root window icon to the BMP image from <tt><i>filename</i></tt>.

<tt>-sdlnosysfonts</tt>

    Don't search for and register system fonts. This can reduce startup time significantly.

<tt>-sdlopacity <i>value</i></tt>

    Set the initial opacity of the SDL root window. <tt><i>value</i></tt> must be given as positive integer percentage.

<tt>-sdlswcursor</tt>

    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 <b>SDL_hints.h</b> header file. The most important are:

<tt>SDL_VIDEODRIVER</tt>

    A string selecting the video driver, use it to enable the <b>jsmpeg</b> video driver.

<tt>SDL_RENDER_DRIVER</tt>

    A string selecting the SDL renderer. Normally chosen automatically but sometimes it can be necessary to explicitly turn on the <b>software</b> renderer. Other possible values depend on how SDL was built, e.g <b>opengl</b>, <b>opengles2</b> etc.

 
Z 70d39bdfa8005cf89fc7b4031f73387c