All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto SDK generated - unable to compile application
@ 2018-09-20  8:08 Evan O'Loughlin
  2018-09-20  9:11 ` Bas Mevissen
  0 siblings, 1 reply; 10+ messages in thread
From: Evan O'Loughlin @ 2018-09-20  8:08 UTC (permalink / raw)
  To: yocto

Hello,

I’m having an issue when I try to use the SDK generated by my yocto instance.
Currently I have yocto set-up to correctly build my image – this all works well.

I've built the SDK in the following ways:
   * bitbake {image} –c populate_sdk
   * bitbake meta-toolchain-qt5
   * bitbake {image-sdk} using a separate recipe with the options:
       - require {image}.bb
       - IMAGE_FEATURES += " dev-pkgs tools-sdk tools-debug eclipse-debug debug-tweaks"
       - IMAGE_INSTALL += "kernel-devsrc"
       - inherit populate_sdk populate_sdk_qt5


When I try to use the generated SDKs I get the error below:
Simple helloworld app:
   #include <stdio.h>
   #include <stdlib.h>
   #include <stddef.h>
   #include <cstddef>
   
   int main (int argc, char** argv)
   {
      printf("Hello World\n");
      return 0;
   }

Compile error:
   ${CC} helloworld.c 
   helloworld.c:4:19: fatal error: cstddef: No such file or directory
   #include <cstddef>
                    ^
   compilation terminated


Have I missed a step in generating the SDK?


Regards,
vitalEol

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-09-21 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-20  8:08 Yocto SDK generated - unable to compile application Evan O'Loughlin
2018-09-20  9:11 ` Bas Mevissen
2018-09-20  9:40   ` Evan O'Loughlin
2018-09-20  9:50     ` Bas Mevissen
2018-09-20 10:28       ` Evan O'Loughlin
2018-09-20 12:23         ` Bas Mevissen
2018-09-20 13:32           ` Evan O'Loughlin
2018-09-20 22:21             ` Bas Mevissen
2018-09-21 12:34               ` Evan O'Loughlin
2018-09-21 13:43                 ` Bas Mevissen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.