09-01-2011, 02:51 AM | #31 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
|
09-01-2011, 02:54 AM | #32 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Nov 2009
Device: none
|
I have installed and used the poky cross-build environment and emulator, and have been building kernel modules. So I think I probably only need the specifics for your code.
|
09-01-2011, 12:42 PM | #33 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
Code:
source /usr/local/poky/eabi-glibc/arm/environment-setup Next go to the component you want to build and do: Code:
export MACHINE_NAME=dr1000s autoreconf --install intltoolize ./configure --host=arm-poky-linux-gnueabi --sysconfdir=/etc --prefix=/usr make install-strip DESTDIR=~/Development/4.0/Install/ Depending on what I have build I copy it to the emulator: scp ../../Install/usr/bin/erkeybd root@qemu:/usr/bin/ or: scp ../../Install/usr/lib/liberkeyb.so.0.0.1 root@qemu:/usr/lib/ Note that this does not work for programs that are executing, first copy them to another location on the qemu and then from the qemu to the correct location. (You can log into the qemu using ssh qemu) When changing library interfaces, you also need to install the changed header files in the development environment: Code:
make install-strip DESTDIR=/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi I hope that I got everything correct and that it is enough to get you up and running. |
|
03-19-2012, 07:33 AM | #34 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
An update, I modified the code so that XK_Left/Right/Up/Down are also recognised. Note that the erkeybd-library is changed, so you need to run the 'Install KeyBoard Hack' again (1)Cancel Uninstall, 2)OK for Install, 3)leads to reset of device). The install also copies the bitmaps, so if you do not like them change them and run the install again.
Source code will be updated in the dr1000-hackx BitBucket archive. |
04-11-2012, 06:12 PM | #35 |
Zealot
Posts: 133
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
|
Extending the keyboard - Uppercase accented letters!?!?
I've been thinking of extending the keyboard layout for a while to include a few characters I want to type in my future stuff, so I gave yours a try and found a bump
In the attachment you'll find your normal keyboard plus upper-case accented letters, cent and yen signs, Icelandic thorns, etc. Pretty straightforward to add in theory. Now for the strange part: When the keyboard appears, you can type the cent sign "¢", and also "¶", "§", "µ", "þ", letters with diacritics, etc. without problems. Then, pressing shift or CapsLock brings up the "upper case" labels on the keys, but only "¥" (I put this as Shift + ¢) can be typed correctly -- the letters with diacritics are all converted to lower case (i.e. you push "Æ" or "Á" but get "æ" or "á" instead, etc.)! Why? On a different note, I tried to use text labels for the arrows but the font used to draw the keyboard lacks those glyphs. I've tried to edit your PNG files to make the up and down arrows fit in the "keys" but all I get are black blobs. Any comments on this? Thank you for another impressive piece of work BTW. Last edited by MrWarper; 04-12-2012 at 08:37 AM. Reason: Forgot the attachment |
04-12-2012, 01:49 PM | #36 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Hi MrWarper,
I took a first look at the code, I had some code commented out, that solves the Shift-problem. I do not know any more why I commented the code out, so I do not know if it will cause problems... I attached a zip file with a new version of liberkeyb, copy it to Programs\_keyboardhack\lib on your SD-card and run the 'Install KeyBoard Hack' (not the Change-Layout-script). (Keep a copy of the other one to restore when needed.) Can you tell me if this solves your problem and does not cause any problems with other keys (I only did a quick test on the emulator). I did not have a look at the bitmaps, did you use Gimp to edit them or a different program, maybe something is wrong with the transparency? Regards, Marcel. |
04-12-2012, 08:12 PM | #37 |
Zealot
Posts: 133
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
|
Hey Marcel,
just a quick test -- everything seems to be right, even upper case letters with diacritics. Thank you!! Will report if I find any problems in the future, of course. I'm not a Linux guy so I don't feel like installing the GIMP here. PMView Pro and good ol' Display (DOS) show black blobs. No biggy, though -- I'll play with this a bit on my own. I also like the idea of making an extended keyboard so I can have latin + cyrillic and maybe a bunch of other stuff. With the current logic as it is, should it be possible to add dead keys? (I'm not asking you to do any extra coding -- I just want to know) Best regards. |
04-13-2012, 09:04 AM | #38 | ||
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
Quote:
Can you explain what a dead-key is? |
||
04-13-2012, 09:53 PM | #39 | ||
Zealot
Posts: 133
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
|
Quote:
Not a Windows guy either, btw Quote:
|
||
04-14-2012, 05:59 AM | #40 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
|
|
04-15-2012, 08:32 PM | #41 | ||
Zealot
Posts: 133
Karma: 2142
Join Date: Oct 2011
Location: Spain
Device: I'm an iRex man: 8x DR1000S, 4x DR800SG, 4x DR800S
|
Resized arrows + extended layout, repackaged
Quote:
OK, I'm not asking you what keyboard layout you use, but a dead key is not necessarily a whole key as such, it may be just one of the characters that can be typed with a key. For example, if I remember correctly, the double quote in the UX or USX (US international) keyboard layout is a normal key, but if you press shift+quote, and then a vowel, you get ä, ë, etc. so in that layout the double quote is a dead key only in combination with Shift (or maybe Alt, I'm not sure). Quote:
Anyway, I've resized the arrow bitmaps so they're not clipped by the keys edges, and I've repackaged them along with your keyboard hack v3, the v3a path to get lower and upper case fancy characters and my 'extended' keyboard layout where these are present. If you are against that, I'll take it back and post the resized arrows only, but I thought this would be more convenient for anyone interested to get everything in one pass. Last edited by MrWarper; 04-16-2012 at 07:02 AM. |
||
04-16-2012, 06:30 AM | #42 | |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Oops... send too early
Quote:
|
|
04-25-2012, 08:56 AM | #43 |
Addict
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
|
Just installed the new keyboard with the arrow keys, quite useful indeed, thanks !
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic text with onclick & innerHTML? | Doitsu | ePub | 3 | 01-07-2011 06:33 PM |