This is the old SliTaz forum - Please use the main forum.slitaz.org

Attemping to compile Tilda (Game Console Like Terminal)
  • chompachompa December 2009
    This is my 3rd day using tilda and i thought i would customize it to how i like my linux. Please bare with me as im still quite newbie.

    After installing some much needed tools for somiling "gcc, libc, siltaz-toolchain" and at the configurations request "flex and pkg-config" i have run into a wall.

    The source code it looking for a variable in pkg-config to help locate GTK; This is the error:

    >>> Checking for GTK... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) where not met: No Package 'gtk+-2.0' found. Consider adjusting the PKG_COFIG_PATH enviroment variable if you installed software in a non-standard prefix. Alternitivley, you may set the enviroment variables GTK_CFLAGS and GTK_LIBS to aboid the need to call pkg-config. See the pkg-config man page for more details.

    'pkg-config --listall' command has output this:

    >>> shared-mime-info shared-mime-info - Freedesktop common MIME database

    Can anyone help me compile this and possaily share the package with other users? :D

    BTW: does anyone know howto copy and paste from xterm or know another term which can? (that was a long error message :P)
  • chompachompa December 2009
    installing gtk+-dev solved the first issue. ill inform how it progresses
  • chompachompa December 2009
    i am now experiencing the same error with package 'gobject-2.0' but the only gobject in the repository is pygobjet or gob2.
  • jozeejozee December 2009
    use sakura for copy n paste. You must read Slitaz cookbook documentation before attempting compiling a new pkg (even if you have compiled many source pkgs before) and you must practice compiling an existing pkg in repos (using tazwok) to understand what are the common BUILD problems. Compiling a pkg like tilda should be easy as all the dependencies are already in Slitaz repos.
  • chompachompa December 2009
    Thanks ill get me some recipes ;)
  • jozeejozee December 2009
    Also, once you have read and tried compiling as per the cookbook and you understand the receipt format, then you may also like to try our new tool tazarch: http://labs.slitaz.org/wiki/tazarch
    Download it and have fun :-).
  • chompachompa December 2009
    EDIT: dw my mistake
  • chompachompa December 2009
    More issues :( (well the same issue)



    see below for copy of recipt file




    is this possably because i installed pkg-config?



    ERROR MESSAGE WHEN COMPILING:



    checking for GTK... configure: error: Package requirements (gtk+-2.0 >= 2.0.0) were not met:

    Package gobject-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gobject-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'gobject-2.0', required by 'GdkPixbuf', not found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables GTK_CFLAGS
    and GTK_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    make: *** No targets specified and no makefile found. Stop.
    make: *** No rule to make target `install'. Stop.






    Copy of recipt file:

    # http://surfnet.dl.sourceforge.net/project/tilda/tilda/tilda-0.9.6/tilda-0.9.6.tar.gz
    # SliTaz package receipt.
    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    SHORT_DESC="X terminal emulator with tabs styled like FPS game terminals"
    MAINTAINER="pankso@slitaz.org"
    DEPENDS="gLib glade vte libconfuse"
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WEB_SITE="http://tilda.sourceforge.net/"
    WGET_URL="http://surfnet.dl.sourceforge.net/project/$PACKAGE/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"

    # Rules to configure and make the package.
    compile_rules()
    {
    cd $src
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    strip -s $fs/usr/bin/*
    }


    ## end of reciept file
  • chompachompa December 2009
    output of command 'pkg-config --list-all' (after installing pkgs: gtk+-dev and pygobject)


    root@slitaz:/home/tux# pkg-config --list-all
    gdk-pixbuf-xlib-2.0 GdkPixbuf Xlib - GdkPixbuf rendering for Xlib
    gdk-x11-2.0 GDK - GTK+ Drawing Kit (x11 target)
    gail Gail - GNOME Accessibility Implementation Library
    gtk+-x11-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
    gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling
    gtk+-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
    pygobject-2.0 PyGObject - Python bindings for GObject
    shared-mime-info shared-mime-info - Freedesktop common
    MIME database
    gtk+-unix-print-2.0 GTK+ - GTK+ Unix print support
    gdk-2.0 GDK - GTK+ Drawing Kit (x11 target)
  • chompachompa December 2009
    is there a method for pointing it to pygobject as there is no 'gobject' pkg in repository or am i on the wrong track?
  • chompachompa December 2009
    Updated receipt file

    # http://surfnet.dl.sourceforge.net/project/tilda/tilda/tilda-0.9.6/tilda-0.9.6.tar.gz
    # SliTaz package receipt.

    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    SHORT_DESC="X terminal emulator with tabs styled like FPS game terminals"
    MAINTAINER="pankso@slitaz.org"
    BUILD_DEPENDS="gtk+-dev flex"
    DEPENDS="gLib glade vte libconfuse"
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WEB_SITE="http://tilda.sourceforge.net/"
    WGET_URL="http://surfnet.dl.sourceforge.net/project/$PACKAGE/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"


    # Rules to configure and make the package.
    compile_rules()
    {
    cd $src
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    strip -s $fs/usr/bin/*
    }
  • jozeejozee December 2009
    Try this receipt. It should compile nicely on your computer.

    # SliTaz package receipt.

    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    MAINTAINER="jozee@slitaz.org"
    SHORT_DESC="Linux terminal based on classic terminals from first person shooter games."
    WEB_SITE="http://tilda.sourceforge.net"
    DEPENDS="vte libconfuse libglade"
    BUILD_DEPENDS="gawk vte vte-dev libglade-dev libconfuse "
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WGET_URL="$SF_MIRROR/tilda/$TARBALL"
    TAGS="terminal"

    # Rules to configure and make the package.

    compile_rules() {
    cd $src
    ./configure --prefix=/usr &&
    make &&
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr/share/$PACKAGE
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    cp -a $_pkg/usr/share/tilda.glade $fs/usr/share/$PACKAGE/
    }

  • chompachompa December 2009
    unfortunately the error is still the same, any ideas? or is it possable to compile gobject?
  • chompachompa December 2009
    gobject seems to be a part of glib but i have it installed do you know of a method to point pkg-config to it?
  • chompachompa December 2009
    The directory /usr/lib/pkgconfig contains all the other .pc files exept gobject, i have installed pygobject wich is present but the package requires the gtk one.

    I just found libgobject.so in /usr/lib but there is no .pc file for pkg-config.

    im going to attempt to create the .pc file manually

    ill let you know the results
  • chompachompa December 2009
    OK. glib-dev solved the issue, pango-dev solved the next but not its asking for cario.so but there is no cario package available? any thoughts?

    EDIT: typo i fount it :D
  • chompachompa December 2009
    SUCSESS!!!! WOHO... that was not simple but i got there easy enough.

    Here is a copy of the recipy for all to enjoy

    # SliTaz package receipt.
    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    MAINTAINER="jozee@slitaz.org"
    SHORT_DESC="Linux terminal based on classic terminals from first person shooter games."
    WEB_SITE="http://tilda.sourceforge.net"
    DEPENDS="vte libconfuse libglade"
    BUILD_DEPENDS="gawk vte vte-dev libglade-dev libconfuse pkg-config glib glib-dev gtk+-dev pango-dev cairo-dev freetype-dev fontconfig-dev libpng-dev atk-dev libgio-dev libxml2-dev xorg-libXrandr-dev xorg-xrandr xorg-randrproto"
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    TAGS="terminal"


    # Rules to configure and make the package.
    compile_rules()
    {
    cd $src
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    strip -s $fs/usr/bin/*
    }
  • chompachompa December 2009
    sorry still needs some work, the preferences configuration page is throwing an glade error.
  • chompachompa December 2009
    OK error fixed, sorry about that one. The only error remaining is that the .desktop file points to /usr/applications but the icon image is placed in /usr/pixmap

    # SliTaz package receipt.
    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    MAINTAINER="jozee@slitaz.org"
    SHORT_DESC="Linux terminal based on classic terminals from first person shooter games."
    WEB_SITE="http://tilda.sourceforge.net"
    DEPENDS="vte libconfuse libglade"
    BUILD_DEPENDS="gawk vte vte-dev libglade-dev libconfuse pkg-config glib glib-dev gtk+-dev pango-dev cairo-dev freetype-dev fontconfig-dev libpng-dev atk-dev libgio-dev libxml2-dev xorg-libXrandr-dev xorg-xrandr xorg-randrproto"
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    TAGS="terminal"


    # Rules to configure and make the package.
    compile_rules()
    {
    cd $src
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/share $fs/usr
    strip -s $fs/usr/bin/*
    }
  • jozeejozee December 2009
    improve genpkg_rules ; see my receipt above; no need to add "strip" : tazwok does it automatically.
  • chompachompa December 2009
    Ah i see your changes there, i will give it a go when i get home from work, thanks.
  • chompachompa December 2009
    ok, i can get the .glade and .png file in the right place but the "make DESTDIR=$PWD/_pkg install" from the recipt generates the .desktop file witl al imge location of "/usr/share/application/tilda.png" insted of "/usr/share/pixmaps/tilda.png" or "tilda (which the package manger and others have)"
  • chompachompa December 2009
    the tilda.desktop.in file included in the source is below

    [Desktop Entry]
    Encoding=UTF-8
    Name=Tilda
    Exec=@BINDIR@/tilda
    Icon=@PIXMAPSDIR@/tilda.png
    Terminal=false
    Type=Application
    Categories=GNOME;GTK;Application;Utility;TerminalEmulator;


    The tilda.desktop generated in _pkg when compiling is below

    [Desktop Entry]
    Encoding=UTF-8
    Name=Tilda
    Exec=/usr/bin/tilda
    Icon=/usr/share/applications/tilda.png
    Terminal=false
    Type=Application
    Categories=GNOME;GTK;Application;Utility;TerminalEmulator;
  • jozeejozee December 2009
    Right, make a folder name "stuff" (e.g., refer to mplayer/smplayer receipt). Correct icon location manually in.desktop file and then just copy the .desktop file to correct location.
  • chompachompa December 2009
    It works :D, thank you for all your assitance jozee.

    i really enjoyed making that work and would like to continue to create packages for SliTaz. if you could let me know how to have this included in the os? i would love to work at having it in there and creating more packages for users to enjoy.

    recipt is below
    # SliTaz package receipt.
    PACKAGE="tilda"
    VERSION="0.9.6"
    CATEGORY="utilities"
    MAINTAINER="jozee@slitaz.org"
    SHORT_DESC="Linux terminal based on classic terminals from first person shooter games."
    WEB_SITE="http://tilda.sourceforge.net"
    DEPENDS="vte libconfuse libglade"
    BUILD_DEPENDS="gawk vte vte-dev libglade-dev libconfuse pkg-config \
    glib glib-dev gtk+-dev pango-dev cairo-dev freetype-dev fontconfig-dev \
    libpng-dev atk-dev libgio-dev libxml2-dev xorg-libXrandr-dev \
    xorg-xrandr xorg-randrproto"
    TARBALL="$PACKAGE-$VERSION.tar.gz"
    WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    TAGS="terminal"


    # Rules to configure and make the package.
    compile_rules()
    {
    cd $src
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$PWD/_pkg install
    }

    # Rules to gen a SliTaz package suitable for Tazpkg.
    genpkg_rules()
    {
    mkdir -p $fs/usr
    mkdir -p $fs/usr/share/$PACKAGE/
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    cp -a $_pkg/usr/share/tilda.glade $fs/usr/share
    # Apply modified .desktop file to suit SliTaz.
    cp stuff/tilda.desktop $fs/usr/share/applications/tilda.desktop
    strip -s $fs/usr/bin/*
    }


    tilda.desktop from stuff dir below
    [Desktop Entry]
    Encoding=UTF-8
    Name=Tilda
    Exec=tilda
    Icon=tilda
    Terminal=false
    Type=Application
    Categories=GNOME;GTK;Application;Utility;TerminalEmulator;
  • jozeejozee December 2009
    Thanks chompa, I will push this to repos as I have already tested this receipt. If you would like to help in creating more pkgs and want to get access to push your pkgs to repos directly, send a private message to pankso. Also join the mailing list.
  • chompachompa December 2009
    Thanks again jozee for putting this up in the repos, i recently removed tilda and installed from the repo's and i had the tilda.glade file missing error again.

    after pulling down the wok i saw thw recipt that was uploaded included this line

    p -a $_pkg/usr/share/tilda.glade $fs/usr/share/$PACKAGE

    i know you included it this way to keep the fs clean but tilda dosent look for it in the $PACKAGE subdir, it looks it share.

    if there is a way to change this in the applications source code from the recipt i will bw happy to try it out otherwise it needs to be placed in '/usr/share'

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social