All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't found the zip.h during bitbake #yocto #devtool
@ 2020-09-21  7:40 Jaymin Dabhi
  2020-09-21 21:21 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Jaymin Dabhi @ 2020-09-21  7:40 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

Team,

I need to include zip.h header file in one of my C code (#include <zip.h>).
I have created a .bb file and added following command for compilation:

> 
> ${CC} -Wall -I/usr/include/libxml2 -o my_code my_code.c -lxml2 -lzip -lz

But, during bitbake it says:

> 
> | In file included from fota_update.c:1:0:
> | fota_update.h:5:17: fatal error: zip.h: No such file or directory
> |  #include <zip.h>
> |                  ^
> | compilation terminated.
> 

Using the same compilation command, I am able to compile the code on my PC. But, can't compile with Yocto.

I have tried with lzip and zip packages by adding into local.conf, but didn't work.

Which zip package I need to use for including the zip.h header file?

[-- Attachment #2: Type: text/html, Size: 940 bytes --]

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

* Re: [yocto] Can't found the zip.h during bitbake #yocto #devtool
  2020-09-21  7:40 Can't found the zip.h during bitbake #yocto #devtool Jaymin Dabhi
@ 2020-09-21 21:21 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2020-09-21 21:21 UTC (permalink / raw)
  To: jaymin.dabhi; +Cc: yocto

Add

DEPENDS += "libzip"

in failing recipe ( .bb) file.

On Mon, Sep 21, 2020 at 12:40 AM Jaymin Dabhi via
lists.yoctoproject.org
<jaymin.dabhi=vivaldi.net@lists.yoctoproject.org> wrote:
>
> Team,
>
> I need to include zip.h header file in one of my C code (#include <zip.h>).
> I have created a .bb file and added following command for compilation:
>
> ${CC} -Wall -I/usr/include/libxml2 -o my_code my_code.c -lxml2 -lzip -lz
>
> But, during bitbake it says:
>
> | In file included from fota_update.c:1:0:
> | fota_update.h:5:17: fatal error: zip.h: No such file or directory
> |  #include <zip.h>
> |                  ^
> | compilation terminated.
>
> Using the same compilation command, I am able to compile the code on my PC. But, can't compile with Yocto.
>
> I have tried with lzip and zip packages by adding into local.conf, but didn't work.
>
> Which zip package I need to use for including the zip.h header file?
>
> 
>

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21  7:40 Can't found the zip.h during bitbake #yocto #devtool Jaymin Dabhi
2020-09-21 21:21 ` [yocto] " Khem Raj

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.