Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: kagashe on December 12, 2008, 07:33:22 AM
-
fbxkb (http://fbxkb.sourceforge.net/) is a nice Keyboard Indicator/Switcher Applet for Xorg which I am trying to compile on Tinycorelinux..
fbxkb requires GTK +-2.4.
I have GTK +-2 and its dependencies and compiletc in TCZ packages installed and running but I get make Error 1.
What is wrong?
kagashe
-
do you have the -dev extensions loaded - gtk+-2-dev, Xorg-7.4-dev, etc?
-
First make sure you have the gtk+-2-devs (as I see Juanito just posted while I was writing this), expat-devs, fontconfig-devs, libxml2-devs, and glib2-devs ( I may be missing one ) as well as the Xorg-devs. Gtk2 apps will not compile without X development libraries. Look in the .dep file of gtk+-2 and make sure you have the -dev versions of each of those dependencies listed. That should be enough to get started compiling basic gtk2 apps if there are no other dependencies.
-
Ok. So I should have all those dev packages running.
Can I run dev packages when the normal ones are running or there will be some conflict? In other words should I remove normal ones temporarily and install and run the dev packages just to compile?
I am using minefield and leafpad which require the normal gtk2, therefore, I can use opera instead to communicate with you if only dev packages are required to run.
kagashe
-
The dev packages are a supplement to the runtime files that you get with the non-dev packages. There should be no conflicts. Basically the original application is distributed in source form. The packager compiles it and separates the runtime from the development files in order to make in convenient (smaller) for the majority of users, who never compile software themselves.
-
NB: some of the smaller extensions have the -dev part of things included in the one extension.
-
I will add a dependency file for gtk+-2-devs that will install all the gtk dependencies as well as their -devs as well as Xorg-devs. That way on a clean boot with no tce directory you can just select gtk+-2-devs and all the gtk2 runtime and dev files will get installed. I have noticed what a headache it is manually fetching all those packages on a clean boot when I want to compile a gtk2 app.
Also you may need to use this command in the shell before compiling:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
I don't remember if that has been added to compiletc, but it can't hurt to use the command.
Mikshaw and Juanito are right, the development files are seperated from packages to save space since TC normally runs in RAM and you want to keep packages as small as possible for normal use. But if the dev files are tiny, like 10k total in tcl_tk, then they are just left in the main package.
-
I got error 1 on make. I am appending below what is mounted on /tmp/tcloop:
/dev/loop0 on /tmp/tcloop/OSS type iso9660 (ro)
/dev/loop1 on /tmp/tcloop/Xorg-7.4 type cramfs (ro)
/dev/loop2 on /tmp/tcloop/graphics-2.6.26 type iso9660 (ro)
/dev/loop3 on /tmp/tcloop/openssl-0.9.8h type iso9660 (ro)
/dev/loop4 on /tmp/tcloop/gtk+-2-devs type iso9660 (ro)
/dev/loop5 on /tmp/tcloop/opera type iso9660 (ro)
/dev/loop6 on /tmp/tcloop/expat2 type cramfs (ro)
/dev/loop7 on /tmp/tcloop/expat2-devs type cramfs (ro)
/dev/loop8 on /tmp/tcloop/glib2 type cramfs (ro)
/dev/loop9 on /tmp/tcloop/glib2-devs type cramfs (ro)
/dev/loop10 on /tmp/tcloop/graphics-libs-1 type cramfs (ro)
/dev/loop11 on /tmp/tcloop/libxml2 type cramfs (ro)
/dev/loop12 on /tmp/tcloop/libxml2-devs type cramfs (ro)
/dev/loop13 on /tmp/tcloop/fontconfig type iso9660 (ro)
/dev/loop14 on /tmp/tcloop/fontconfig-devs type iso9660 (ro)
/dev/loop15 on /tmp/tcloop/ttf-bitstream-vera type iso9660 (ro)
/dev/loop16 on /tmp/tcloop/dejavu-fonts-ttf type iso9660 (ro)
/dev/loop17 on /tmp/tcloop/compiletc type cramfs (ro)
/dev/loop18 on /tmp/tcloop/leafpad-0.8.15 type cramfs (ro)
/dev/loop19 on /tmp/tcloop/Xorg-7.4-dev type iso9660 (ro)
Please tell me if I am missing anything.
kagashe
-
What ./configure switches did you use?
To help figure out the problem, it would be good to cut & paste the last 30-40 lines of output after the make command
-
Also, don't forget graphics-libs-1-devs.
-
Also, don't forget graphics-libs-1-devs.
That is it! I could compile. Now only problem is it is not accepting "make DESTDIR=/tmp/package install" and installing directly to /usr/local
As per instruction on wiki I made a filelist and created fbxkb.tce and fbxkb.tcz (using tce2tcz.sh)
I edited /etc/X11/xorg.conf, added the "in" keyboard layout.and restarted X.
fbxkb command gives the tray icon with country flag and Keyboard switching works.
I have tested both ..tce and .tcz and it works.
fbxkb.tce attached with this message.
/etc/X11/xorg.conf InputDevice section is to be modified before trying:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,in"
EndSection
"in" layout is for India replace it with your country code for switching your keyboard from us to your country. Change pc105 to your Keyboard Model or omit the line.
Load fbxkb.tce and command is fbxkb and the applet appears in the tray.
kagashe
-
fbxkb (http://fbxkb.sourceforge.net/) is a nice Keyboard Indicator/Switcher Applet for Xorg which I am trying to compile on Tinycorelinux..
kagashe
Kagashe!
Please, give me step-by-step instructions for installing fbxkb. I have only tiny.iso and big interest to add keyboard in my TCL. ;-)
-
Please, give me step-by-step instructions for installing fbxkb. I have only tiny.iso and big interest to add keyboard in my TCL. ;-)
to install kagashe's .tce, save it and open appbrowser, then select file > install local
-
install all libs (tces) from kagashe's list and fail!
ls /usr/share/kmap
us
;-( :'(
-
nickispeaki:
There are two kinds of keymaps in TC - console ones in /usr/share/kmap, which are in the kmaps.tce extension, and Xorg ones, which are in /usr/local/share/X11/xkb. There are much more Xorg keymaps than console ones, but to use them one needs to also configure Xorg.
Kagashe's keyboard switcher is designed for the Xorg keymaps.
-
nickispeaki:
There are two kinds of keymaps in TC - console ones in /usr/share/kmap, which are in the kmaps.tce extension, and Xorg ones, which are in /usr/local/share/X11/xkb. There are much more Xorg keymaps than console ones, but to use them one needs to also configure Xorg.
Kagashe's keyboard switcher is designed for the Xorg keymaps.
i don't undestand! one upon a time... I saw (!) some keymap in usr/share/kmap.
today i was going to /usr/local/share/X11/xkb and what do i see there? a lot of folders, files....
I think problem is (shick!) not enough place in my local! 1k! I can't install even unistall.tce! ;-)
I'll kill tcllocal file and i'll begin with empty local!
ooo is to big to my local (ooo 100mb, my local is 2xx mb.)
enen Wbar is disappered! ???
-
TRY to install fbxkb again. Again fail. what can i do? :'(
-
nickispeaki:
There are two kinds of keymaps in TC - console ones in /usr/share/kmap, which are in the kmaps.tce extension, and Xorg ones, which are in /usr/local/share/X11/xkb. There are much more Xorg keymaps than console ones, but to use them one needs to also configure Xorg.
Kagashe's keyboard switcher is designed for the Xorg keymaps.
curaga!
what about /usr/local/share/X11/locale/microsoft-cp1251 ?
-
It's a part of the Xorg keymaps. To use them, you need to be running the Xorg X server.
-
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,in"
EndSection
but fbxkb from console write:
>fbxkb (4658)
can't init. exiting
can't get Xkb controls
no kbd groups defined. adding default 'us' group
and only usa flag is appered!
any propositions?