WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: kbd project (has loadkeys) for Corepure 64 extension request  (Read 1708 times)

Offline Rudock1

  • Jr. Member
  • **
  • Posts: 62
kbd project (has loadkeys) for Corepure 64 extension request
« on: January 06, 2020, 05:02:35 PM »
Hi All,

I am trying to convert a text kmap file (https://github.com/zyedidia/micro/wiki/Linux-Console-Keybindings) to the binary format favored by busybox 'loadkmap'.  The tool that converts text kmap to binary I believe is called 'loadkeys' and is part of the 'kbd' project.  (Actually, I think loadkeys can use the text kmap version, also.)

https://github.com/legionus/kbd

I cloned the git and attempted to compile it myself in TC but I was eventually defeated by a 'configure: error: Can't find required header files.' which I could not resolve. Dang... still learning the compiler ropes.

May I put in an extension request for a kbd project TC extension for Corepure 64?

I found many 10-year old posts discussing loadkeys, however, a more recent reference I found here: http://forum.tinycorelinux.net/index.php/topic,20532.msg128085.html#msg128085

If it matters, I am still using TC 10.0.

many thanks in advance,
Billy

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: kbd project (has loadkeys) for Corepure 64 extension request
« Reply #1 on: January 06, 2020, 09:06:12 PM »
Hi Rudock1
... If it matters, I am still using TC 10.0. ...
It does matter. The GitHub site states that  "the sources depend on the kernel version".  The other thing that matters which you have
not specified is the architecture:
 x86, x86_64, ARMv6, ARMv7 ?

If you provide the exact error messages, someone may be able to help you. You probably need:
Code: [Select]
tce-load -i compiletc perl5 bash ncursesw-dev bc glibc_apps elfutils-dev
You may also need  linux-headers.

Offline Rudock1

  • Jr. Member
  • **
  • Posts: 62
Re: kbd project (has loadkeys) for Corepure 64 extension request
« Reply #2 on: January 07, 2020, 02:03:16 AM »
Hi Rich,

Thanks for the follow up and the reminders I should remember.  doh!
I am on a couple of Dell laptops so my architecture is x86_64.
The compile experience is that I started with './autogen.sh' which ends successfully with 'Now type './configure' and 'make' to compile.'

running ./configure goes pretty far along but ultimately ends with ...
Quote
checking for pam_start in -lpam... yes
checking security/pam_appl.h usability... no
checking security/pam_appl.h presence... no
checking for security/pam_appl.h... no
configure: error: Can't find required header files.
I have linux-pam-dev.tcz and linux-pam.tcz loaded. (pluggable authentication modules).  The .h file in my system is actually located here: /usr/local/include/pam_appl.h so I thought maybe that was it... In the ./configure file I see
Code: [Select]
if test "x$ac_cv_lib_pam_pam_start" = xyes; then :

      ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h"
I tried using my directory for the .h file but it didn't change the outcome... just shooting in the dark on that.

I added the additional extensions: bc glibc_apps elfutils-dev  Regarding the linux-headers I loaded linux-4.19_api_headers.tcz

Re-ran './autogen.sh' and './configure' but I am ending at the same spot.

thanks so much!
Billy

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: kbd project (has loadkeys) for Corepure 64 extension request
« Reply #3 on: January 07, 2020, 02:34:13 AM »
Try this:
Code: [Select]
$ sudo mkdir /usr/local/include/security
$ sudo ln -s /tmp/tcloop/linux-pam-dev/usr/local/include/* /usr/local/include/security

Offline Rudock1

  • Jr. Member
  • **
  • Posts: 62
Re: kbd project (has loadkeys) for Corepure 64 extension request
« Reply #4 on: January 07, 2020, 02:49:12 AM »
Hi Juanito and Rich,

Bingo!  The symbolic link got me over the hump and compiled.  Thanks again for sage advice.  You guys are great and fast!!

thx
Billy