I have followed below steps provide to Build yocto image boot from SD card and able to successfully run sample iotivity from artik board.
https://blogs.s-osg.org/run-iotivity-artik-yocto/
http://git.yoctoproject.org/cgit/cgit.cgi/meta-oic/about/
I have few query here, check if you can help on this.
The yocto –project mention to include Iotivity packages in
meta-oic
layer . All the packages are include from github path. I included all packages and verify as they had mentioned to check at specific path. After booting image I tried to compile my wrapper cpp file from artik-board with yocto-image hopping it will compile since i have header and lib present in my yocto-image. But they failed. I didn’t understand the usage of iotivity packages included in yocto-image. How can a developer use them directly on atrik board ?I have iotivity code in my ubuntu machine and I can compile a my .cpp wrapper file with the Scons. How can i add my only cpp file with this yocto image?
Below is a description provide in yocto-project to follow.
Building IoTivity applications for a Yocto target
Develop and test your application on a Linux development machine.
You can now use the Yocto toolchain for your target to cross-compile the application. As such, there is no standard procedure for this.
You may examine your toolchain’s environment setup script and accordingly modify your application’s build script to point to said tools.If you further want to package up your application in a Yocto software layer, you will have to write a BitBake recipe for it. Look inside
meta-oic/recipes-apps/iotivity-simple-client
for a precise example of doing this.
meta-oic/recipes-apps/iotivity-simple-client
when I check is also actually using source code/libs path from github directly . This example have contain .dat file, makefile, .tar, .bb file and .jason file . I checked on internet everyone explained how to create new meat-layer and add new bitkake recipe but all use build source code from github.
However my code is on local host and is totally linked with my iotivity source code folder.
Can any one suggest clear steps on this.