Artifact [ca4889ebda]
Not logged in

Artifact ca4889ebdaf9a44adb2c4769faf50f278dbd35b9:

Wiki page [Beyond AndroWish] by chw 2017-04-11 20:57:05.
D 2017-04-11T20:57:05.874
L Beyond\sAndroWish
P a1b082b82b6673bf6f1514a7be5d6ec0e9ac8c7d
U chw
W 3286
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>

Thanks to SDL's video driver architecture it is possible on the Raspberry Pi to execute the resulting binary both in an X11 session and on the framebuffer (using <a href="http://www.directfb.org">DirectFB</a>).

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:

<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.

Z b0523ce53d026599346d337629d19ffe