|
|
#1 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
Compiling program for terminal
Hi! I found C++ Tetris and want to port it to my PW3.
1) I downloaded gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf toolchain 2) I added making variant to Makefile 3) Compile Code:
make pw3 5) I got Code:
line 1: syntax error: unexpected "("
Sources. FW - 5.12.2 |
|
|
|
|
|
#2 |
|
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Show the code or keycode(s) you used for step 4 please.
|
|
|
|
|
|
#3 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
|
|
|
|
|
|
#4 |
|
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
|
|
|
|
|
#5 | |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
Quote:
I go to 'extensions' folder (cd ..), wrote Code:
./blocks Code:
./blocks: not found |
|
|
|
|
|
|
#6 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Double-check that it's actually built for ARM and you're not simply trying to run an x86_64 binary
.(Or, I guess, worse, a PE binary, since your host appears to be Windows?) |
|
|
|
|
|
#7 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Oh, also: that's a hard-float TC, which wouldn't produce viable binaries for the Kindle anyway.
Drop your Windows host (somehow, don't care), and join the dark side. |
|
|
|
|
|
#8 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
|
|
|
|
|
|
#9 | |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
Quote:
|
|
|
|
|
|
|
#10 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
|
|
|
|
|
#11 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
So, I used compiling command for not arm
![]() So, I changed command and got Code:
/home/dmitry/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabi/arm-linux-gnueabi/include/c++/7.5.0/arm-linux-gnueabi/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory #include <features.h> Last edited by Roker2; 12-31-2019 at 06:31 AM. |
|
|
|
|
|
#12 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
I can't vouch for the binary releases, because I've never used them, but that should *definitely* be shipped somewhere by the cross TC.
It certainly is when building from source: Code:
find ~/x-tools/arm-kindlepw2-linux-gnueabi -name features.h /home/niluje/x-tools/arm-kindlepw2-linux-gnueabi/arm-kindlepw2-linux-gnueabi/include/c++/7.5.0/parallel/features.h /home/niluje/x-tools/arm-kindlepw2-linux-gnueabi/arm-kindlepw2-linux-gnueabi/sysroot/usr/include/features.h |
|
|
|
|
|
#13 | |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
Quote:
|
|
|
|
|
|
|
#14 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
So, I built KOReader toolchain, remake makefile, but I have the same error.
Code:
/home/dmitry/x-tools/arm-kindlepw2-linux-gnueabi/arm-kindlepw2-linux-gnueabi/include/c++/7.4.1/arm-kindlepw2-linux-gnueabi/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory #include <features.h> |
|
|
|
|
|
#15 |
|
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
But if I remove LPATH, I get
Code:
src/main.cpp:3:10: fatal error: ncurses.h: No such file or directory #include <ncurses.h> |
|
|
|
![]() |
| Tags |
| c++ |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Terminal program for PB622/623 | jtt | PocketBook Developer's Corner | 94 | 10-31-2025 11:19 AM |
| Aura HD Serial terminal program for use on Kobo? | Ken Maltby | Kobo Developer's Corner | 22 | 12-25-2016 06:26 AM |
| Compiling 0.9.5 with Qt 5.6.0 | CJMiller | Sigil | 20 | 03-27-2016 04:21 PM |
| Terminal program for PB622/PB623 | jtt | PocketBook | 3 | 09-03-2013 09:41 PM |
| Compiling for Lubuntu (regarding compiling instructions) | jgratero | Sigil | 5 | 07-15-2012 08:54 PM |