![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
Help with cross compile
Hello, i would like to compile Tucnak (ham radio contest logging sofware) for my kindle... This need standard library glib and gthread. I start with compile glib in scratchbox. I got error that glib need pkc-config:
checking for pkg-config... no configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/ Can anyone help me how to solve this problem ?? Or can anyone compile this sw for me ? (There are configure params: libzia: --without-gtk --without-sdl --without-png --without-ftdi --without-bfd tucnak: --without-gpm --without-sndfile --without-alsa --without-hamlib --without-fftw3 --without-portaudio) |
![]() |
![]() |
![]() |
#2 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Lots of ways you could reach your end result of Tucnak on K3.
Is this the only time you will ever, in your life, want to compile or cross-compile something? If no - this one sounds like it might be a good "starter project" - people here can probably help. If yes - well then you have a few options - You might be able to find pre-compiled binaries in Linux distributions that would "just work", such as: http://packages.debian.org/squeeze/tucnak2 From the looks of that screenshot in the upper right (and some of your configure args) I think you will also need a terminal emulator (so the k3 keyboard will work). I am assuming from your profile that your target is the K3 - if not, tell us which "Kindle". A good starting point would be a better description of what you want to achieve and how you want to reach that goal. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
Hi, this is my first try for K3, but i have some experiences with cross compiling and developing under linux..
I have already working terminal on my K3 (myts). The goal will be run tucnak from this terminal on K3... |
![]() |
![]() |
![]() |
#4 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
debian would be the least resistance (running Xephyr?) probably.
The CodeSourcery 2007q3 TC would be the native choice... newer ones can be coaxed into service also, with caveats... I checked and there is a private i386? repo as well as the older debian offering. Quote:
But there is an armel version in debian. I grabbed it down to have a look. seems simple enough two bins, a soundmanager and the app bin. You say a command line version.. however... if you don't want to do that. There is a pile of info on TC and resources on the KEK thread. There is additionally research now to show how to build (with support of) alsa and gtk or sdl and fftw3 already on this forum so perhaps a frankensteins monster buildroot setup could be your friend. I notate that on the BUILDING GTK thread Hope that helps Last edited by twobob; 01-02-2013 at 09:55 AM. Reason: options. details. links |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
Download for latest version is here:
http://tucnak.nagano.cz/download.php I successfully tested latest version from kindle terminal by ssh to another mashine.. All looking OK.. There is only 2 libraries (glib and gthread) needed to compile tucnak, functionality will be limited due hw limitation of kindle.. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
CQ, CQ, CQ
Would you care to attach your build for the Kindle to your post? The common routine here is to attach it to your lead (post #1) of the thread. |
![]() |
![]() |
![]() |
#7 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
I have't kindle build.. I tested app only from my terminal on kindle to another linux PC by ssh.. Keyboard and all working OK... Nex goal will be kindle build and run tucnak directly from kindle.. But i have still problem with pkg-config library in my toolchain..
|
![]() |
![]() |
![]() |
#8 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
twobob would probably be the best one to help you with that.
Also, I think he was going to take a look at building it for the community. Of course, I can't be making promises for him. ![]() |
![]() |
![]() |
![]() |
#9 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
I already did cover that... kinda... Quote:
That lists how I currently manage the pkg-config issue.... essentially I let buildroot do much of the "spade-work", run through a few helpful builds in the 2007q3 Toolchain - via buildroot. the reference the actual pkg-config and .pc includes of that instance... (I also hack in other stuff from later toolchains if I am desperate) Then I mangle that all into one big lump and throw it at the c. Hope that helps somewhat. Niluje also has an excellent x-tools config on his big thread that wont help directly with this issue but illustrates other approaches. Cheers. Last edited by twobob; 01-03-2013 at 04:11 PM. Reason: tone |
||
![]() |
![]() |
![]() |
#10 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
I have successfull build but program not working... I'm getting "Forcing core dump" when i'm trying run tucnak from kindle.. Where can i find dump ?? Does anyone have strace for kindle3 ??
|
![]() |
![]() |
![]() |
#11 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
There are lots more copies.. |
|
![]() |
![]() |
![]() |
#12 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
From the code...
Quote:
Quote:
Quote:
so the lines JUST PRECEDING the call to the dump dumper should give the ACTUALLY helpful error message content... In fact as a general rule just quoting a tiny part of some error without sharing the right parts of it is actually less than useless. It makes the job harder. as you probably know often one error message can be cascaded as a result of previous errors... http://tucnak2.sourcearchive.com/doc...8c-source.html (or similar - pick your right version) would appear to be good place to look for error handling methodologies within the application. Hope it helps... FWIW sharing your work "so far" is never a terrible idea if you get stuck. Last edited by twobob; 01-05-2013 at 07:53 AM. |
|||
![]() |
![]() |
![]() |
#13 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[root@kindle root]# filechecker /mnt/debian/usr/bin/tucnak
Quote:
Spoiler:
Quote:
EDIT: Meh no... too many higher GLIB calls.. I have it running WITHIN debian on the device no problem... but.. on export... [root@kindle bin]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./tucnak Quote:
Last edited by twobob; 01-05-2013 at 09:49 AM. |
|||
![]() |
![]() |
![]() |
#14 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I have added one for the TOUCH here...
as this is possible with the work done so far. This works no problem on the touch. I also dug around... http://tucnak.nagano.cz/wiki/Command_line -i - print informations about detected hardware -s - print build configuration (settings file) etc... http://tucnak.nagano.cz/wiki/Variables TUCNAK - directory to store tucnak informations. Normally $HOME/tucnak. Precedence over HOME TUCNAK_DEBUG - if this variable is set then debug information is written to stderr. If you can define file name to save debug information you must refill this variable. [root@kindle bin]# TUCNAK_DEBUG=1 HOME=/mnt/us/tucnak/ DISPLAY=:1 LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./tucnak -s Quote:
Last edited by twobob; 01-05-2013 at 10:38 AM. |
|
![]() |
![]() |
![]() |
#15 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12
Karma: 26916
Join Date: Jan 2013
Device: Kindle3
|
Tucnak working..
There is first working build on my K3. To install make directory tucnak in your kindle put content of attached zip inside. Run myts and go to tucnak directory and ./run
In Tucnak switch to bw mode - F10 menu and then Setup -> Terminal options. There is problem with colors, bw mode is not 100% ok and need some work to make it 100% compatible with kindle display.. But tucnak working on kindle... |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
hi. Pity on me. Cross compile request. Jnotify | twobob | Kindle Developer's Corner | 17 | 12-13-2012 08:30 AM |
Cross Compile c code for K3 on Win 7 or XP | jmseight | Kindle Developer's Corner | 1 | 04-18-2012 12:33 AM |
8.0.26 won't compile | iomari | Calibre | 1 | 11-16-2011 04:01 AM |
How to compile for Kindle DX? | cdisou | Kindle Developer's Corner | 5 | 10-22-2011 07:30 AM |
Compile from Source | krischik | Calibre | 8 | 06-04-2010 08:17 AM |