![]() |
#16 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If not otherwise specified, then the compiler (gcc) will default to /usr/include - which is where your HOST system files exist not necessarily where your TARGET system files exist. Note: "not necessarily" means that in some cases, the file contents are identical on HOST and TARGET systems, some are not, so just use the ones that are supplied for your TARGET system. Your favorite web search utility can lead you to zillions of cross-compiling "how to" articles. It is not something usually handled by this forum. |
|
![]() |
![]() |
![]() |
#17 |
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
|
Not true in this instance, ct-ng setups the default sysroot/include dirs properly without needing any hoop-jumping.
(You *DO* need to update include dirs for non-sysroot stuff, obviously, but that's not (yet) the issue here ![]() I have no idea what's going wonky in your setup, but something is obviously off *somewhere*. I'd try again from scratch in a Debian VM. (EDIT: Oh, wait, see next answer: what you're doing wrong is obvious: don't pass --sysroot ;p). Last edited by NiLuJe; 01-07-2020 at 12:04 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
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, I was referring to the features.h failure, while @knc1 was talking about the curses failure
![]() So, to recap: * As you've found out, and as my previous message explained: DO NOT pass --sysroot to the compiler. You're more likely to get it wrong than anything, and it isn't needed with a ct-ng TC anyway. * As @knc1 mentioned, you need to cross-build the full dependency tree, install it in a common staging location (which you can see as another "sysroot"), and update your *FLAGS to pass include/lib locations to the compiler & linker (i.e, something along the lines of -I/blah/blah/include in CPPFLAGS (or CFLAGS for broken buildsystems) and -L/blah/blah/lib in LDFLAGS). Or help build-systems do that themselves (that may include, in the generally easiest of cases, just pointing pkg-config to your staging sysroot; or, in the worst cases, dealing with inane hoop-jumping for "next-generation" buildsystems like CMake & Meson). Do follow @knc1's suggestion and try to find sane information about all this, because it is generally NOT trivial (it ought to, and seems to in theory, but is often not in practice). You can see my various rants about all of this all over the place in the x-compile.sh script... Last edited by NiLuJe; 01-07-2020 at 12:04 PM. |
![]() |
![]() |
![]() |
#19 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,806
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
![]() |
![]() |
![]() |
#20 |
PW->PW3
![]() Posts: 25
Karma: 10
Join Date: Nov 2017
Location: Belarus, Minsk
Device: Kindle PaperWhite 1/3
|
Yeeees, I understanded it.
I need to build ncurses for arm. |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
c++ |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Terminal program for PB622/623 | jtt | PocketBook Developer's Corner | 92 | 12-22-2024 05:39 PM |
Aura HD Serial terminal program for use on Kobo? | Ken Maltby | Kobo Developer's Corner | 22 | 12-25-2016 05:26 AM |
Compiling 0.9.5 with Qt 5.6.0 | CJMiller | Sigil | 20 | 03-27-2016 03:21 PM |
Terminal program for PB622/PB623 | jtt | PocketBook | 3 | 09-03-2013 08:41 PM |
Compiling for Lubuntu (regarding compiling instructions) | jgratero | Sigil | 5 | 07-15-2012 07:54 PM |