06-23-2022, 07:36 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
|
Cross compiling issues.
Hello everyone!
I'm Dennis from Sweden. I'm trying to add Swedish keylayout to Qtfrotz, A text adventure engine. https://www.mobileread.com/forums/sh....php?p=2711142 Said and done. It works on my X11 desktop. Then I tried the cross compiling... I found the docker image for cross compiling: https://github.com/pgaskin/NickelTC And pulling it: docker pull ghcr.io/pgaskin/nickeltc:1 Running: docker run --rm -w /mnt -v "$(pwd):/mnt" -it 671eeb8d3594 and then run qmake, and then make. Seems to work. But I get a error when running it on the Kobo: ./QtFrotz This application failed to start because it could not find or load the Qt platform plugin "xcb". Reinstalling the application may fix this problem. Aborted Do you have any hints what this means? I guess this lib is not available on the kobo libra 2. Can I add some flag to exclude to depend on this lib? Thanks for any hints. Allt the best, |
06-23-2022, 04:34 PM | #2 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You need a QPA to build a standard Qt application. The stock one is *not* usable as such.
The sanest choice right now is probably the one from UMR, but I have no idea how solid the Libra 2 support is. TL;DR: Don't expect a plug'n play experience, you'll need a solid Qt5/embedded/x-compilation background in order not to run around in circles like a headless chicken. |
06-26-2022, 07:30 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jun 2022
Device: Kobo Libra 2
|
Hello buddy! Thanks for the reply.
Yeah, I've been working as a embedded Linux guy for a while, so I'm not new to the concept, but I have not worked with QT before. I will check it out, thanks! |
06-26-2022, 06:20 PM | #4 |
Guru
Posts: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Out of interest, I tried seeing what I could do with the Kobo QPA this weekend. Answer: not a lot...
Couple of problems, first, it seems the QPA doesn't automatically load the fonts, so by default you get lots of squares instead of characters. Looking at what libnickel does, this might not be too difficult to resolve. The bigger issue (and always has been) is the way touch is (not) handled. Touch is handled via a separate plugin (libkevdevtouch.so), and while it should be setup in the QPA, it's not. It appears that libnickel is in charge of setting it up as well. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help cross-compiling jq lib for kobo | jtgrenz | Kobo Developer's Corner | 4 | 02-24-2021 12:17 PM |
Help with cross-compiling tools? | brianinmaine | Kindle Developer's Corner | 50 | 10-02-2013 09:42 AM |
Cross compiling for the Kindle - wrong glibc version | ninjageckoattack | Kindle Developer's Corner | 14 | 02-25-2012 04:44 PM |
cross compiling links | dent | Kindle Developer's Corner | 1 | 02-07-2011 08:42 AM |
cross-compiling gstreamer for the kindle3 | dent | Kindle Developer's Corner | 9 | 02-04-2011 08:39 AM |