Menu

Linux development

Mike Shock
2011-03-03
2013-05-28
  • Mike Shock

    Mike Shock - 2011-03-03

    Please post messages here about development of jointSPACE applications in the GNU/Linux environment.

    I have a question to SDK developers: what libraries & packages (binary and source) should be installed for normal app development?

     
  • Sander Raaijmakers

    Nothing specific is required. As an example of development, check http://jstx.sourceforge.net for a command line application using the jointSPACE library. The only extra requirement there is libpng.

     
  • Mike Shock

    Mike Shock - 2011-03-20

    sraaijmakers! I tried to compile the JSTx application, but got errors:
    > ./make.sh
    make: Entering directory `/opt/jointSPACE/JSTx-0.2'
    cc -O2 -Wall -o JSTx.o -c JSTx.c -I. -I./DirectFB_Voodoo/include -Ijslibrc
    JSTx.c: In function ‘read_png_file’:
    JSTx.c:159:21: error: ‘png_const_bytep’ undeclared (first use in this function)
    JSTx.c:159:21: note: each undeclared identifier is reported only once for each function it appears in
    JSTx.c:159:37: error: expected ‘)’ before ‘header’
    JSTx.c:159:37: error: too few arguments to function ‘png_sig_cmp’
    /usr/include/png.h:1503:1: note: declared here
    make: ***  Error 1
    make: Exiting directory `/opt/jointSPACE/JSTx-0.2'
    make: ***  Error 2

    libpng is installes with headers:
    > rpm -qa | grep libpng
    libpng14-compat-devel-1.4.4-2.1.i586
    libpng14-14-1.4.4-2.1.i586
    libpng12-0-1.2.44-7.1.i586
    libpng14-devel-1.4.4-2.1.i586
    libpng12-devel-1.2.44-7.1.i586

    What have I done wrong?

     
  • Mike Shock

    Mike Shock - 2011-03-20

    After Installing the 'libpng-1.5.1' library from sources, making the executable succeded.
    :-)

     
  • Mike Shock

    Mike Shock - 2011-03-20

    JSTx works with -m, -k commands but unfortunately it gives errors when the font file is specified:

    JSTx-0.2/example> ../JSTx -i image:test.png -t file:test.txt -p 1 -F ./decker.ttf -s 30 -f 0,0,0,0
       ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
            (C) 2001-2009  The world wide DirectFB Open Source Community
            (C) 2000-2004  Convergence (integrated media) GmbH
          -------------------------------------------
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFB'.
    (*) Voodoo/Client: Looking up host '10.25.0.100'…
    (*) Voodoo/Client: Connecting to '10.25.0.100:2323'…
    (*) Direct/Thread: Started 'Voodoo Dispatch' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Input' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Output' (-1)  <8388608>…
    (*) Voodoo/Manager: Created remote super interface 'IDirectFB'.
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBDisplayLayer'.
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBWindow'.
    (*) ret 0
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBSurface'.
    (*) Direct/Interface: Using 'Dispatcher' implementation of 'IDirectFBEventBuffer'.
    (*) Direct/Interface: Using 'Dispatcher' implementation of 'IDirectFBDataBuffer'.
    (#) DirectFBError : Limit has been exceeded!
    Fail!! err!=DFB_OK(!)  -> Caught signal 11 (at 0x68525450, invalid address)

    or font file is not given (DEFAULT_FNT      "/decker.ttf"):

    JSTx-0.2/example> ../JSTx -i image:test.png -p 1
       ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
            (C) 2001-2009  The world wide DirectFB Open Source Community
            (C) 2000-2004  Convergence (integrated media) GmbH
          -------------------------------------------
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFB'.
    (*) Voodoo/Client: Looking up host '10.25.0.100'…
    (*) Voodoo/Client: Connecting to '10.25.0.100:2323'…
    (*) Direct/Thread: Started 'Voodoo Dispatch' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Input' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Output' (-1)  <8388608>…
    (*) Voodoo/Manager: Created remote super interface 'IDirectFB'.
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBDisplayLayer'.
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBWindow'.
    (*) ret 0
    (*) Direct/Interface: Using 'Requestor' implementation of 'IDirectFBSurface'.
    (*) Direct/Interface: Using 'Dispatcher' implementation of 'IDirectFBEventBuffer'.
    (#) DirectFBError : File not found!
    Fail!! err!=DFB_OK(!)  -> Caught signal 11 (at 0x68525450, invalid address)

     
  • Sander Raaijmakers

    Hi, please take this discussion to the JSTx forum at https://sourceforge.net/apps/phpbb/jstx/ as this is not directly jointSPACE related. I have copied your questions and provide answers there.

     
  • Sander Raaijmakers

    Hi,

    apparently there does seem to be a jointSPACE issue that is the cause: a maximum screensize limit of 1280*720 @ 16bits was used for JSTx, but this gives issues on 2010 sets. Limiting the maximum screensize to 1200*675 fixes the issue. JSTx was updated to take this into account, but I wanted to let this be known on this forum.

     
  • Sander Raaijmakers

    Please disregard the last question: when you flip a directfb surface multiple times, one is already using the complete memory-space for 1 screen. Doing additional initialization and subsequent flipping of buffers afterwards would lead to this error.

     
  • Joris Spekreijse

    JSTx is using LibPNG 1.5 not 1.4.
    I would recommend not to compile this library for your system when your distro does not offer 1.5.
    Download the source to your development directory and run configure and make but not make install. Now you have a local copy.
    Add -l<libpng1.5dir> in makefile.voodoo to call it by the compiler for JSTx.

     
  • rakeshsg

    rakeshsg - 2011-04-11

    Hi

    I am using Ubuntu 10.10 vmware running as Guest Os in Win7 host.
    I tried running the helloworld app using the steps menntioned in "Remote Application Development" page for helloworld app.
    But I am getting the following error:

    (*) Direct/Thread: Started 'Voodoo Dispatch' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Input' (-1)  <8388608>…
    (*) Direct/Thread: Started 'Voodoo Output' (-1)  <8388608>…
    (!) Voodoo/Manager: Could not create remote super interface 'IDirectFB' (File not found!
    )!
    (#) DirectFBError : File not foun
    d!

    Anyone has seen this earlier?

    Thanks and Regards,
    Rakesh

     

Log in to post a comment.

Auth0 Logo