Author Topic: How to install gtk+  (Read 4325 times)

ghostdawg

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
How to install gtk+
« on: Thu Oct 12 17:01:50 2017 »
How do I install gtk+? I can't seem to find it with cards command. I'm having problems trying to compile volumeicon.
Code: [Select]
configure: error: Package requirements (gtk+-3.0 >= 3.0) were not met:

No package 'gtk+-3.0' found

$ get gtk+
cards 2.3.3.0 install: The package gtk+ does not exist

Thanks.

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: How to install gtk+
« Reply #1 on: Fri Oct 13 08:23:21 2017 »
Hmmm, I have some lecture for you:

http://nutyx.org/en/bash-basics

Please take your time to read the documentation, it will be a great help for your experience.

ghostdawg

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: How to install gtk+
« Reply #2 on: Fri Oct 13 14:51:23 2017 »
I do not understand. It looks like I'm missing gtk+ and can't find it in repositories. Do I need to make a package for it?
« Last Edit: Mon Oct 16 09:11:33 2017 by tnut »

emmett1

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: How to install gtk+
« Reply #3 on: Sun Oct 15 16:05:51 2017 »
ofcourse theres is no package gtk+.. gtk+ package in most linux distribustion called gtk2 and gtk3.. in this case you need package gtk3.. ;)
« Last Edit: Mon Oct 16 09:11:28 2017 by tnut »

cdrw

  • Newbie
  • *
  • Posts: 44
  • Karma: +0/-0
Re: How to install gtk+
« Reply #4 on: Sun Oct 15 19:18:07 2017 »
I do not understand. It looks like I'm missing gtk+ and can't find it in repositories. Do I need to make a package for it?

You are trying to compile a simple user from the session.
The dependencies only work from the chroot environment!
Release the "create package" and immediately go to the chroot environment.
And do not edit
/etc/cards.conf,
edit
/mnt/hd/etc/cards.conf
The documentation is badly written, very bad !!!
« Last Edit: Mon Oct 16 09:11:22 2017 by tnut »

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: How to install gtk+
« Reply #5 on: Mon Oct 16 09:11:04 2017 »
Quote
The documentation is badly written, very bad !!!
I will try to improve it because:
Quote
And do not edit
/etc/cards.conf,
edit
/mnt/hd/etc/cards.conf
Obviously you didnt get it at all

Feel very sorry for that

Thierry

cdrw

  • Newbie
  • *
  • Posts: 44
  • Karma: +0/-0
Re: How to install gtk+
« Reply #6 on: Mon Oct 16 15:14:51 2017 »
I want to show by example how I created the tilde text editor package for the console.I read very good documentation on the home page tilde.There are several libraries attached to the tilde.See the diagram in the picture:



I find out the sequence of dependencies:

libtranscript
libt3config
libt3window
libt3key
libt3highlight
libt3widget
tilde

Gray indicates the dependencies that you need to look for in the system or set yourself:

libpcre
libsigc++
XCB/Xlib
(n)curces
libunistring
libtranscript

I'm trying to find them in Nutyx.
I find:

Code: [Select]
libpcre      = pcr          (yes, name does not match)
libsigc++    = libsigc++    (yes, name matches)
XCB/Xli      = libxcb       (yes, name does not match)
(n)curces    = ncurses      (yes, name does not match)
libunistring = libunistring (yes, name matches)

Now I build a dependency tree.

Code: [Select]
libtranscript    - without dependencies
libt3config      - without dependencies
libt3window      <= ncurses libunistring libtranscript
libt3key         <= libt3config libxcb ncurses
libt3highlight   <= pcre libt3config
libt3widget      <= pcre libsigc++ libt3key libxcb libunistring libt3window libtranscript
tilde            <= libt3config libt3highlight libt3widget libt3window libunistring libtranscript

Further I write as root, for each package Pkgfile already with dependencies.

Tilde for one example:

Code: [Select]
mkdir -p /mnt/hd/usr/ports/perso/tilde
echo '#!/bin/bash

#Depends on: libt3config libt3highlight libt3widget libt3window libunistring libtranscript
description="tilde (text editor for the console/terminal)"
packager="cdrw"
url="http://os.ghalkes.nl/tilde/index.html"

name=tilde
version=0.3.7
release=1
source=(http://os.ghalkes.nl/dist/$name-$version.tar.bz2)

build() {
   cd $name-$version
   ./configure                                    \
           --prefix=/usr                          \
           --libdir=/usr/lib                      \
           --mandir=/usr/share/man                \
           --docdir=/usr/share/doc/$name-$version
   make
   make DESTDIR=$PKG install
}' > /mnt/hd/usr/ports/perso/tilde/Pkgfile

Full list Pkgfile:

libtranscript
libt3config
libt3window
libt3key
libt3highlight
libt3widget
tilde

Then I enter the chroot environment:
Code: [Select]
sudo -i
install-nutyx -ec

I compile the files:

Code: [Select]
cards create -r libtranscript
cards create -r libt3config
cards create -r libt3window
cards create -r libt3key
cards create -r libt3highlight
cards create -r libt3widget
cards create -r tilde

I come out of the chroot:

Code: [Select]
exit
As a simple user in the console window:

Code: [Select]
cdrw [ ~ ]$ get tilde
[sudo] password for cdrw:
Retrieve info about the 520 packages: 100 %
   ADD: (perso) libtranscript 0.3.2-1, 255 files: 100 %
   ADD: (perso) libt3config 0.2.10-1, 139 files: 100 %
   ADD: (perso) libt3window 0.2.3-1, 129 files: 100 %
   ADD: (perso) libt3key 0.2.6-1, 136 files: 100 %
   ADD: (perso) libt3widget 0.5.2-1, 743 files: 100 %
   ADD: (perso) libt3highlight 0.4.2-1, 164 files: 100 %
   ADD: (perso) tilde 0.3.7-1, 14 files: 100 %

cdrw [ ~ ]$ tilde
« Last Edit: Mon Oct 16 15:17:31 2017 by cdrw »