07-25-2016, 09:32 AM | #1 |
Connoisseur
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
xmahjongg for Kindle as Kual extension
With help of the good team here we found a solution. The final version, when writing this update, is 0.7 and can be found here in two versions:
https://www.mobileread.com/forums/sho...8&postcount=64 and a new version 08 from an other developer: https://www.mobileread.com/forums/sho...6&postcount=80 HaPe ------------------- Original Post for documentation ----------------- Hi, since a long time I'm searching for a Mahjong game for my PW1. I saw sguerrini97 was able to compile GTKSudoku for the Kindle PW I started searching for an open source GTK based Mahjong implementation.. I found the following source; https://github.com/passcod/mah-jong Could someone with a running cross compiler give it a try if it is possible to get it compiled ? Thanks in advance Hanspeter Last edited by Hanspeter; 11-24-2016 at 03:05 AM. Reason: Added final Solution |
07-25-2016, 12:14 PM | #2 |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You can set up a cross-compiler yourself, see NiLuJe's snapshots thread for his configs.
|
Advert | |
|
07-26-2016, 03:50 AM | #3 |
Connoisseur
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
Thanks eschwartz, found it: https://www.mobileread.com/forums/sho...d.php?t=276410
I will give it a try when I find the time. Hanspeter |
07-26-2016, 07:38 AM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Getting the server and connections to remote Mahjong players working may be a bit tricky on a Kindle.
Kindles have a very strict firewall that will probably require dealing with in some fashion. |
07-26-2016, 09:56 AM | #5 |
Just a Yellow Smiley.
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
4 handed Mahjongg or Mahjongg solitaire?
|
Advert | |
|
07-26-2016, 10:03 AM | #6 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
that program does 4 handed.
computer or a remote player for each of the three other hands. |
07-26-2016, 10:09 AM | #7 |
Just a Yellow Smiley.
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
I was wondering which the OP was looking for.
I only do the solitaire. |
07-29-2016, 04:17 AM | #8 | |
Connoisseur
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
Quote:
So I found a simple solitaire version for GTK, that I was able to compile on my Ubuntu box. Now I need to find the time to set-up the toolchain an try to compile it for the Kinde. https://sourceforge.net/projects/llk-linux/ Hanspeter |
|
07-29-2016, 10:55 AM | #9 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I am having some problems with the instructions:
http://llk-linux.sourceforge.net/ |
07-31-2016, 11:40 AM | #10 | |
Connoisseur
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
Quote:
After a lot of research I found the following candidates: 1) A python based collection of Solitaire games http://pysolfc.sourceforge.net/ Not sure if the python package is able to run it or all libs are there (e.g. https://code.google.com/archive/p/python-ttk/) Would be nice to get it working as it implements about 1000 Solitaire card and Mahjong based games. 2) xmahjongg Looks like a simple implementation in C with only basic requirements. No idea what lib is used for graphic output. For me it looks like it only uses direct X11 calls. http://www.lcdf.org/xmahjongg/ Compiles on Ubuntu without problems. Need to be started with parameter -B that points the the share directory (e.g. ./xmahjongg -B '/home/user/Dokumente/Kindle/Mahjongg/xmahjongg-3.7/sahre') 3) Lopan A simple SDL based Version. The homepage is gone, but archive.org has a copy of the latest src archive. http://web.archive.org/web/201603100....com/sdllopan/ So that’s my research results for today Hanspeter |
|
08-03-2016, 04:05 AM | #11 | |||
Connoisseur
Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
I need some help to compile xmahjongg. To complile it it fo ubuntu I need to do the following:
Quote:
../include/lcdfgif/gifx.h:22:22: fatal error: X11/Xlib.h: No such file or directory Now I set up the tool-chain as described here: https://www.mobileread.com/forums/sho...d.php?t=276410 worked without problems. Now to compile it for the kindle I used: Quote:
checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. config.log: Quote:
I expect that I need to add the header files or the libs from the kindle to the TC, but I was not able to find how to do that. Can someone point me to the right place? Hanspeter Last edited by Hanspeter; 08-03-2016 at 04:07 AM. |
|||
08-03-2016, 07:00 AM | #12 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Use -I flag to add the include path in the build command(s) to wherever you put them.
You didn't see that error during the native compile because your native install has them in the native compiler's default search path. It also reads as if you need to do something about that default output test in configure. It isn't compatible with your gcc version. So: Search if it has been fixed by someone (probably just using a recent auto-reconfigure to regenerate the configure file will do); Fix it yourself ; Skip it by forcing the correct answer ; Use an older compiler (for instance, the version used to build the Kindle firmware); I would suggest diving into Buildroot see how they fixed auto-configure for the newer compiler versions. It will be a rather old fix (2013?), because: Code:
$ gcc -V </dev/null gcc: error: unrecognized option ‘-V’ Last edited by knc1; 08-03-2016 at 07:54 AM. |
08-03-2016, 07:49 AM | #13 |
BLAM!
Posts: 13,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
That error message is fairly straightforward: your app depends on libX11.
You need to build libX11 . Which may or may not depend on a full XOrg install, can't recall, and not on a Linux box to check right now. Once it's installed, it should be in a standard path (provided you configured it with the right --prefix), and you won't have to tinker (more than usual) with CPPFLAGS/LDFLAGS. Did I mention that building GUI stuff risked getting hairy fairly rapidly? ^^. |
08-03-2016, 07:59 AM | #14 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
For SDL versions of Mahjong, twobob ported SDL awhile back:
https://github.com/twobob/buildroot-...ild/sdl-1.2.15 |
08-03-2016, 08:01 AM | #15 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CPU Governor Menu (KUAL extension) | knc1 | Kindle Developer's Corner | 41 | 09-16-2021 02:54 PM |
kual extension to open a book | shoelesshunter | Kindle Developer's Corner | 14 | 08-16-2016 12:30 PM |
Is there a Kual Extension/add-on for cloud | eduardomb | Kindle Developer's Corner | 19 | 07-08-2016 05:43 PM |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 10:11 AM |