Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

GTK+2 is ported

Hi,

I'd succeeded to port the libraries for GTK. Now 'gtk-demo' and 'tangogps' are working well though there are some bugs in 'Xfbdev' and unix sockets. The response of some widgets are not so good, and it seems that those depend heavily on the memory's speed. (But from the result, I think that X Window + FLTK2 or something is more realistic for the 100MHz class CPUs.) Unfortunately it's impossible to execute these on NEEK, because you need at least 64MBytes main memories. So I used DE2-70.

Kazu

P.S. Does anyone know about the key-map setting for X Window? Now I can't use arrow keys etc. and I'm struggling to find its method.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    Can you share the source code of the design ?

    --- Quote End ---

    My patches are almost all posted in this forum. For example, please see

    http://www.alteraforum.com/forum/showthread.php?t=18802

    http://www.alteraforum.com/forum/showthread.php?t=25473

    .

    For GTK+2 libraries, I only down-loaded the sources and compiled those with the commands like

    
    PATH=$PATH:/home/***/nios2-linux/toolchain-mmu/x86-linux2/bin
    export CC="nios2-wrs-linux-gnu-gcc -I/mnt/usr/include"
    export LD=nios2-wrs-linux-gnu-ld
    export LDFLAGS="-L/mnt/usr/lib/ -g"
    export CFLAGS="-I/mnt/usr/include -g"
    export CPPFLAGS="-I/mnt/usr/include -g"
    export LIBS="-L/mnt/usr/lib/"
    export CROSS=nios2-wrs-linux-
    export PKG_CONFIG_PATH=/mnt/usr/lib/pkgconfig/
    ./configure --host=nios2-wrs-linux-gnu --prefix=/mnt/usr/ --x-libraries=/mnt/usr/lib/
    make
    make insatll
    
    but to evoke the 'tangoGPS', you need many libraries,

    Dynamic section at offset 0x3f9b8 contains 44 entries:
      Tag        Type                         Name/Value
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
     0x00000001 (NEEDED)                     Shared library: 
    
    :D.

    This means that you must march into the land of 'Dependency Hell!!', if you want to build these from their sources. So I strongly recommend you only to get their working binaries.

    Anyway I'm going to up-load these in more convenient style, if possible.

    Kazu