# Building SDK using yocto and compile package in .ipk format

**URL:** <https://mangoh.discourse.group/t/building-sdk-using-yocto-and-compile-package-in-ipk-format/484>\
**Category:** Tutorials\
**Created:** [April 14, 2017, 5:48am UTC](https://mangoh.discourse.group/t/building-sdk-using-yocto-and-compile-package-in-ipk-format/484 "2017-04-14T05:48:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1390](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@abhishek1390](https://mangoh.discourse.group/u/abhishek1390)\
**Post date:** [April 14, 2017, 5:48am UTC](https://mangoh.discourse.group/t/building-sdk-using-yocto-and-compile-package-in-ipk-format/484/1 "2017-04-14T05:48:59Z")

</div>

Hi All,

I’am trying build SDK using yocto, which will include all the external packages i have  
addded e.g libconfig, mosquitto etc.  
After building sdk, i want to compile my application software in “ipk” format, which will  
be handled by opkg manager, as in ‘openwrt’ environment.

For that i have followed below steps to compile sdk

> $ cd yocto/build\_bin

> $ source …/poky/oe-init-build-env .

> $ bitbake mdm9x15-image-minimal -c populate\_sdk

I am getting below error:

> START:==================================================================================================================  
> /yocto/build\_bin$ bitbake mdm9x15-image-minimal -c populate\_sdk  
> Loading cache: 100% |##########################################################################################################| ETA: 00:00:00  
> Loaded 2148 entries from dependency cache.  
> Parsing recipes: 100% |########################################################################################################| Time: 00:00:02  
> Parsing of 1654 .bb files complete (1652 cached, 2 parsed). 2148 targets, 200 skipped, 0 masked, 0 errors.  
> NOTE: Resolving any missing task queue dependencies

> Build Configuration:  
> BB\_VERSION = “1.24.0”  
> BUILD\_SYS = “x86\_64-linux”  
> NATIVELSBSTRING = “Ubuntu-12.04”  
> TARGET\_SYS = “arm-poky-linux-gnueabi”  
> MACHINE = “swi-mdm9x15”  
> DISTRO = “poky-swi-ext”  
> DISTRO\_VERSION = “1.7.3”  
> TUNE\_FEATURES = “arm armv7a vfp neon”  
> TARGET\_FPU = “vfp-neon”  
> meta  
> meta-yocto  
> meta-yocto-bsp = “(nobranch):c282df8993828bd7b1d50cfcf637a477eaf481a1”  
> meta-swiflu = “:”  
> meta-nodejs = “master:3c2d7b61ba45436c6c62d60555cd91370a7ad1a2”  
> meta-nodejs-contrib = “master:be99cba0c6fcfb1ba7e85d3446f2a806ae7c3da2”  
> meta-mangoh = “(nobranch):b58ad3c6a4e4d0f2d563e8af86c46f96f8ba3bb6”  
> meta-python  
> meta-networking  
> meta-oe = “(nobranch):70beecb2716bca1b9dfbc7d6a264233e1f05e82b”  
> meta-swi  
> meta-swi-mdm9xxx  
> meta-swi-mdm9x15 = “master:0f1bf8d6d24d7389168eafead6c2f2bede345d18”  
> meta-swi-extras  
> meta-swi-bin = “master:6f65f78f6e8a1801ae7cd424191f3513457e4bbe”  
> meta-openwrt-master = “:”

> NOTE: Preparing runqueue  
> NOTE: Executing SetScene Tasks  
> NOTE: Executing RunQueue Tasks  
> ERROR: Function failed: do\_configure (log file is located at /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do\_configure.15266)  
> ERROR: Logfile of failure stored in: /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do\_configure.15266  
> Log data follows:  
> | DEBUG: Executing python function sysroot\_cleansstate  
> | DEBUG: Python function sysroot\_cleansstate finished  
> | DEBUG: SITE files [‘endian-little’, ‘common-linux’, ‘common-glibc’, ‘bit-64’, ‘x86\_64-linux’, ‘common’]  
> | DEBUG: Executing shell function autotools\_preconfigure  
> | DEBUG: Shell function autotools\_preconfigure finished  
> | DEBUG: Executing python function autotools\_copy\_aclocals  
> | DEBUG: Python function autotools\_copy\_aclocals finished  
> | DEBUG: Executing shell function do\_configure  
> | ERROR: no configure script found at /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/autoconf-2.69/configure  
> | WARNING: /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/run.do\_configure.15266:1 exit 1 from  
> | exit 1  
> | ERROR: Function failed: do\_configure (log file is located at /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do\_configure.15266)  
> ERROR: Task 1700 (virtual:nativesdk:/home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/poky/meta/recipes-devtools/autoconf/autoconf\_2.69.bb, do\_configure) failed with exit code ‘1’  
> ERROR: Function failed: do\_configure (log file is located at /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do\_configure.15265)  
> ERROR: Logfile of failure stored in: /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do\_configure.15265  
> Log data follows:  
> | DEBUG: Executing python function sysroot\_cleansstate  
> | DEBUG: Python function sysroot\_cleansstate finished  
> | DEBUG: SITE files [‘endian-little’, ‘common-linux’, ‘common-glibc’, ‘bit-64’, ‘x86\_64-linux’, ‘common’]  
> | DEBUG: Executing shell function autotools\_preconfigure  
> | DEBUG: Shell function autotools\_preconfigure finished  
> | DEBUG: Executing python function autotools\_copy\_aclocals  
> | DEBUG: Python function autotools\_copy\_aclocals finished  
> | DEBUG: Executing shell function do\_configure  
> | sed: can’t read Makefile.target: No such file or directory  
> | WARNING: /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/run.do\_configure.15265:1 exit 2 from  
> | sed -i ‘s/-lX11//g’ Makefile.target  
> | ERROR: Function failed: do\_configure (log file is located at /home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin/tmp/work/x86\_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do\_configure.15265)  
> ERROR: Task 1756 (virtual:nativesdk:/home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/poky/meta/recipes-devtools/qemu/qemu\_2.1.0.bb, do\_configure) failed with exit code ‘1’  
> NOTE: Tasks Summary: Attempted 1822 tasks of which 1820 didn’t need to be rerun and 2 failed.  
> Waiting for 0 running tasks to finish:

> Summary: 2 tasks failed:  
> virtual:nativesdk:/home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/poky/meta/recipes-devtools/autoconf/autoconf\_2.69.bb, do\_configure  
> virtual:nativesdk:/home/onerelysys/Bharath\_WorkSpace/legato/build3\_yocto/yocto/poky/meta/recipes-devtools/qemu/qemu\_2.1.0.bb, do\_configure  
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.  
> onerelysys@onerelysys:~/Bharath\_WorkSpace/legato/build3\_yocto/yocto/build\_bin$

> ==================================================================================================================END:

so, anybody please help me to solve this problem  
and to create ipk using sdk.

Thank you  
🙂
