NuTyX official Forum
Help => Tips and Tricks => Topic started by: ghostdawg 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.
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.
-
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.
-
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?
-
ofcourse theres is no package gtk+.. gtk+ package in most linux distribustion called gtk2 and gtk3.. in this case you need package gtk3.. ;)
-
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 !!!
-
The documentation is badly written, very bad !!!
I will try to improve it because:
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
-
I want to show by example how I created the tilde (http://os.ghalkes.nl/tilde/index.html) 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:
(http://os.ghalkes.nl/t3/dependencies.png)
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 (http://nutyx.org/en/?type=pkg&branch=stable&arch=x86_64&searchpkg=pcre).
I find:
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.
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:
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:
sudo -i
install-nutyx -ec
I compile the files:
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:
exit
As a simple user in the console window:
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