Quote:
Originally Posted by frostschutz
to clone the repository you only need the first command, if you add --recurse option (or was it --recursive)
it compiles for me, but I compile it directly on the Kobo (Debian Jessie chroot, gcc 4.9.2) so it may be different to using a cross-compiler.
actually I do have to add a cflag (-std=c11) to make it work at all and then it warns about unknown pragma.
Code:
fbink.c:65:10: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas]
# pragma GCC diagnostic ignored "-Wduplicated-branches"
^
but the result seems to work fine then
|
Hey man, thanks that did the trick.
Quote:
Originally Posted by NiLuJe
What @frostschutz said, plus the triplet variable should be called CROSS_TC, not CROSS_COMPILE, and should *not* contain the trailing dash (because this is tailored for my own TCs).
You'll probably indeed need to enforce -std=gnu11 with GCC 4.9, as that's the minimum requirement  .
I'll try to silence those pragma warnings, since disabling an option that doesn't exist yet is pretty harmless  .
I do have a 4.9 TC laying around, I'll take a look later tonight.
|
I set the flag and the TC option, now everything compiles just dandy
Code:
git clone --recurse-submodules https://github.com/NiLuJe/FBInk
export CFLAGS="$CFLAGS -std=gnu11"
make CROSS_TC=arm-linux-gnueabihf ARCH=arm
And poof, a working binary