WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] I would like to build fbxkb Keyboard Applet.  (Read 11183 times)

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
[SOLVED] I would like to build fbxkb Keyboard Applet.
« on: December 12, 2008, 07:33:22 AM »
fbxkb 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
« Last Edit: December 13, 2008, 02:20:59 AM by kagashe »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14800
Re: I would like to build fbxkb Keyboard Applet.
« Reply #1 on: December 12, 2008, 07:44:30 AM »
do you have the -dev extensions loaded - gtk+-2-dev, Xorg-7.4-dev, etc?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: I would like to build fbxkb Keyboard Applet.
« Reply #2 on: December 12, 2008, 07:48:46 AM »
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.




Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: I would like to build fbxkb Keyboard Applet.
« Reply #3 on: December 12, 2008, 08:00:26 AM »
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

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: I would like to build fbxkb Keyboard Applet.
« Reply #4 on: December 12, 2008, 08:10:11 AM »
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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14800
Re: I would like to build fbxkb Keyboard Applet.
« Reply #5 on: December 12, 2008, 08:13:18 AM »
NB: some of the smaller extensions have the -dev part of things included in the one extension.
« Last Edit: December 12, 2008, 08:15:16 AM by Juanito »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: I would like to build fbxkb Keyboard Applet.
« Reply #6 on: December 12, 2008, 08:26:51 AM »
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.
« Last Edit: December 12, 2008, 08:29:07 AM by Jason W »

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: I would like to build fbxkb Keyboard Applet.
« Reply #7 on: December 12, 2008, 11:36:57 AM »
I got error 1 on make. I am appending below what is mounted on /tmp/tcloop:
Quote
/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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14800
Re: I would like to build fbxkb Keyboard Applet.
« Reply #8 on: December 12, 2008, 12:17:14 PM »
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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: I would like to build fbxkb Keyboard Applet.
« Reply #9 on: December 12, 2008, 12:23:42 PM »
Also, don't forget graphics-libs-1-devs. 

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: I would like to build fbxkb Keyboard Applet.
« Reply #10 on: December 12, 2008, 10:31:02 PM »
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:
Quote
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
« Last Edit: December 13, 2008, 06:13:35 AM by kagashe »

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: [SOLVED] I would like to build fbxkb Keyboard Applet.
« Reply #11 on: April 09, 2009, 06:35:59 AM »
fbxkb 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. ;-)

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: [SOLVED] I would like to build fbxkb Keyboard Applet.
« Reply #12 on: April 09, 2009, 07:10:20 AM »
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

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: [SOLVED] I would like to build fbxkb Keyboard Applet.
« Reply #13 on: April 09, 2009, 05:00:59 PM »
install all libs (tces) from kagashe's list and fail!

ls /usr/share/kmap
us

;-(  :'(

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: [SOLVED] I would like to build fbxkb Keyboard Applet.
« Reply #14 on: April 10, 2009, 02:36:19 AM »
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.
The only barriers that can stop you are the ones you create yourself.