Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2015, 02:47 AM   #1
Leo365
Member
Leo365 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2014
Device: Kindle
Question GLIBCXX Version Compatible Help

I'm compiling some app for KPW1 on Debian Jessie, the default TC has a GLIBCXX version 3.4.20, as show:
Code:
Leo@Leo:~$ strings /usr/lib/arm-linux-gnueabi/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_DEBUG_MESSAGE_LENGTH
But KPW1 only support up to GLIBCXX_3.4.14, when I run the app in KPW1, it throws exceptions like 'GLIBCXX_3.4.20 not found'.

How can I solve this problem? It has troubled me for a long time.
Leo365 is offline   Reply With Quote
Old 03-27-2015, 03:15 AM   #2
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by Leo365 View Post
I'm compiling some app for KPW1 on Debian Jessie, the default TC has a GLIBCXX version 3.4.20, as show:
Code:
Leo@Leo:~$ strings /usr/lib/arm-linux-gnueabi/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_DEBUG_MESSAGE_LENGTH
But KPW1 only support up to GLIBCXX_3.4.14, when I run the app in KPW1, it throws exceptions like 'GLIBCXX_3.4.20 not found'.

How can I solve this problem? It has troubled me for a long time.
why not try a wheezy chroot?
brianinmaine is offline   Reply With Quote
Advert
Old 03-27-2015, 04:31 AM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
And if that is not an exact match -
build the appropriate toolchain/glibc combination yourself (using any one of the many tools for the build process);
or
use the toolchain Niluje supplies in this forum (see his "snapshots" thread).

- - - -

Or, see my thread on using a completely different set of system libraries (hard float in the example case) for applications, **concurrently** with the Amazon installed libraries.
(my ARMHF on Kindle thread).
Yes, Linux (or any OS that uses elf format libraries) can do that - use more than one set of system libraries **concurrently**.


That example used Buildroot(.org) to build the toolchain and applications.
Since then, the BR people have even added the building of patchelf for your host machine to the BR system.

Last edited by knc1; 03-27-2015 at 04:56 AM.
knc1 is offline   Reply With Quote
Old 03-27-2015, 11:39 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
See also my answer on GH .

As knc1 said, I'd strongly opt for a custom TC, since you're likely to eat dirt on myriad other weird and interesting ABI mismatches otherwise. There's already a whole section dedicated to that in the KOReader Makefile, as well as in my buildscript .

As I mentioned on GH, I'm a ct-ng fan, and as knc1 mentioned, my configs are up; but BR probably does the job perfectly well too, if you can get it to use the required fairly ancient glibc version (not as well versed in the panel of choices available on BR).

Last edited by NiLuJe; 03-27-2015 at 11:42 AM.
NiLuJe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest version of iOS5/iPad-only version temporarily available on App Store kguil Marvin 0 01-05-2014 05:31 AM
Apple Offering 'Last Compatible Version' of iOS Apps for Older Hardware tubemonkey News 34 09-22-2013 04:45 PM
How to install prior version of Calibre when newer version installed? SilentSeven Calibre 3 04-13-2011 12:46 PM
Updated Christian Bible Launches eBook Version Before Print Version tubemonkey News 21 12-30-2010 03:53 PM
Compatible with PRS600? jedavis1 Calibre 4 10-01-2009 01:38 AM


All times are GMT -4. The time now is 09:06 PM.


MobileRead.com is a privately owned, operated and funded community.