toniodp
Posts: 9
Joined: Wed Aug 07, 2013 5:06 am

Difference between kernel compile environments

Wed Aug 07, 2013 6:51 am

Hello,

I've been trying to compile the kernel for my Pi (on Xbian 1.0 beta 1.1) to add fbtft to it.
I followed the instructions here : https://github.com/notro/fbtft/wiki/FBT ... ld-process
and here : http://elinux.org/RPi_Kernel_Compilation
It works when I cross compile on a Ubuntu 64bit it works fine, but when I try on the Pi, I have this:

Code: Select all

drivers/video/fbtft/fbtft-core.c: In function âfbtft_free_gpiosâ:
drivers/video/fbtft/fbtft-core.c:172:20: error: dereferencing pointer to incomplete type
drivers/video/fbtft/fbtft-core.c: In function âfbtft_register_framebufferâ:
drivers/video/fbtft/fbtft-core.c:838:3: error: implicit declaration of function âplatform_set_drvdataâ [-Werror=implicit-function-declaration]
drivers/video/fbtft/fbtft-core.c: In function âfbtft_probe_commonâ:
drivers/video/fbtft/fbtft-core.c:1103:14: error: dereferencing pointer to incomplete type
cc1: some warnings being treated as errors
make[3]: *** [drivers/video/fbtft/fbtft-core.o] Error 1
I tried kernel sources 3.6, 3.9 and 3.10, it's all the same.
Anything I could change to make it work on the Pi? it worked on my first try but not since then.

toniodp
Posts: 9
Joined: Wed Aug 07, 2013 5:06 am

Re: Difference between kernel compile environments

Thu Aug 08, 2013 7:18 am

I was going for an environment variable, but it seems everything else compiles ok.

The two functions described in the error are in a file called fbtft.h and is included in the file giving errors.
The only thing I can see is that it is included as "fbtft.h" whereas all the other included file are like <file>
I know the syntax difference is about the path to look for the file, but could it be related to this?

Return to “Troubleshooting”