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 07-13-2017, 09:24 AM   #31
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by encol View Post
In your environment, what's the
Code:
gcc --version
output?
4.6.3
nasser is offline   Reply With Quote
Old 07-13-2017, 10:01 AM   #32
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
Quote:
Originally Posted by nasser View Post
4.6.3
I don't recall if that is one of them, but there are some compiler version early in the 4.x series that are to be avoided due to mis-compilations on ARM.

Your best bet is to use Linaro (sp?) ARM compilers -
They are the leading maintainer of the GCC/ARM compiler(s).

Current:
https://releases.linaro.org/componen...naries/latest/

A little digging will get you earlier GCC series releases (back to early 4.x IIRC - nobody in their right mind keeps any 3.y stuff around).

Edit:
Back to 4.9:
http://releases.linaro.org/component...hain/binaries/

And the fog clears a bit - it was the versions upto 4.8 that had problems.
So to avoid those, and be most likely to compile the very old sources used in the Kindle system, pick from here:
http://releases.linaro.org/component...linux-gnueabi/

Last edited by knc1; 07-13-2017 at 10:07 AM.
knc1 is offline   Reply With Quote
Advert
Old 07-13-2017, 11:37 AM   #33
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
knc1,
I used gcc 4.6.3 under the debian-wheezy-armel qemu image running under Ubuntu 14.04.
Was able to compile the popeye chess application.
The compiled executable runs OK both on the qemu VM as well as on PW1 and PW3.

The latest version of this thread's application, however requires a C++11 compliant gcc( at least 4.7), which the debian-wheezy-armel repository doesn't seem to have.
nasser is offline   Reply With Quote
Old 07-13-2017, 11:56 AM   #34
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
check here
encol is offline   Reply With Quote
Old 07-13-2017, 12:04 PM   #35
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Thanks, encol!
Will try it.
Don't know why they can't make it accessible through apt-get?
nasser is offline   Reply With Quote
Advert
Old 07-13-2017, 01:11 PM   #36
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
Quote:
Originally Posted by nasser View Post
knc1,
I used gcc 4.6.3 under the debian-wheezy-armel qemu image running under Ubuntu 14.04.
Was able to compile the popeye chess application.
The compiled executable runs OK both on the qemu VM as well as on PW1 and PW3.

The latest version of this thread's application, however requires a C++11 compliant gcc( at least 4.7), which the debian-wheezy-armel repository doesn't seem to have.
"Works for me" doesn't cover all use cases.
You would have to check either the bug reports and/or the changelog of the following versions to find out what feature of the source code causes the problem.
And then test that on your specific compiler.
Unless you built it yourself, you don't know what all patches had, or had not, been applied.

My recounting known history is not a directive - people can still make up their own mind.
knc1 is offline   Reply With Quote
Old 07-14-2017, 09:54 AM   #37
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by nasser View Post
Thanks, encol!
Will try it.
Don't know why they can't make it accessible through apt-get?
Downloaded and installed gcc-4.7 & g++-4.7.
Since they installed into the non-standard /usr/bin, also entered EXPORT CC= and CXX= the actual paths in /usr/bin
But the cmake script still says no C++11 support and advises to upgrade compiler, though it is able to recognise both the versions and locations.
The install help file in the package clearly states v 4.7 is sufficient.
nasser is offline   Reply With Quote
Old 07-14-2017, 11:28 AM   #38
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
Quote:
Originally Posted by nasser View Post
Downloaded and installed gcc-4.7 & g++-4.7.
Since they installed into the non-standard /usr/bin, also entered EXPORT CC= and CXX= the actual paths in /usr/bin
But the cmake script still says no C++11 support and advises to upgrade compiler, though it is able to recognise both the versions and locations.
The install help file in the package clearly states v 4.7 is sufficient.
Check if it automagically pulled in libstdc++ for that version of the compiler.
Having that missing will break C++
It is possible that the direction writer had a system where the installation of libstdc++ was automated (they did it, but didn't know about it).

{You just gotta love these puzzles to be a software developer. Some people even do this for a living.}

Last edited by knc1; 07-14-2017 at 11:31 AM.
knc1 is offline   Reply With Quote
Old 07-14-2017, 11:46 AM   #39
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
I installed libstdc++ manually, after(I think) the GCC or G++ installs mentioned it as a dependency.
Have raised a bug on the taskwarrior forum. Let me see...
nasser is offline   Reply With Quote
Old 07-15-2017, 04:01 AM   #40
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
post
Code:
dpkg-query -l 'libstdc++*' | grep ii
encol is offline   Reply With Quote
Old 07-15-2017, 11:00 AM   #41
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by encol View Post
post
Code:
dpkg-query -l 'libstdc++*' | grep ii
Code:
root@debian-armel:~# dpkg-query -l 'libstdc++*' | grep ii
ii  libstdc++6:armel     4.7.2-5    armel     GNU Standard C++ Library v3 
ii  libstdc++6:armel     4.7.2-5    armel     GNU Standard C++ Library v3 (development files)
nasser is offline   Reply With Quote
Old 07-15-2017, 11:16 AM   #42
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
can not say.
you only posted: "4.7" not the specific version (4.7.?.?-?)
so use the same command (changing the target name of course) to see if the compiler's full version matches the library's full version.
knc1 is offline   Reply With Quote
Old 07-15-2017, 11:47 AM   #43
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Quote:
Originally Posted by knc1 View Post
can not say.
you only posted: "4.7" not the specific version (4.7.?.?-?)
so use the same command (changing the target name of course) to see if the compiler's full version matches the library's full version.
Code:
GNU C compiler  4.7.2-5
GNU C++ compiler 4.7.2-5
GCC, the GNU Compiler Collection (base package)   4.7.2-5

Last edited by nasser; 07-15-2017 at 11:49 AM.
nasser is offline   Reply With Quote
Old 07-15-2017, 12:00 PM   #44
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
Quote:
Originally Posted by nasser View Post
Code:
GNU C compiler  4.7.2-5
GNU C++ compiler 4.7.2-5
GCC, the GNU Compiler Collection (base package)   4.7.2-5
That looks like it should work.
Have c++ report where it is looking for externals -
as in (for gcc):
gcc -v -o junk junk.c

Hmm...
I think that will also give you the information you might need if you try compiling /dev/null as the source code.
Compiling /dev/null does have its uses.
knc1 is offline   Reply With Quote
Old 07-15-2017, 02:43 PM   #45
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Got a pile of messages:
COMPILER_PATH= ....
.......
LIBRARY_PATH= .....
.....
COLLECT_GCC_OPTIONS= .....
nasser is offline   Reply With Quote
Reply

Tags
extensions, kterm, kual, launcher add-ons, launcher extension, task, taskwarrior


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kual: kterm -e myapp.sh peepo Kindle Developer's Corner 7 02-25-2013 10:00 AM
Sigil requires OpenCL? gassville Sigil 13 02-07-2013 07:42 PM
PRS-T1 PRS-T1 Requires OS 10.7 on Mac ?! Jane12 Sony Reader 17 10-05-2011 08:11 PM
why ebook-convert requires x11? jose1711 Recipes 2 06-12-2011 05:12 AM
Does epub on 505 requires formatting? lovemov Sony Reader 11 04-02-2009 10:44 AM


All times are GMT -4. The time now is 03:48 PM.


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