Hello Guys i am trying to add a lua module into my nginx by yocto recipe.

for this i added one bbappend file to add module to nginx recipe
and secondly i added a bb file fetch sources and placingĀ  it to nginx sysroot 
directory

*nginx_%.bbappend*

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

DEPENDS += "ngx-lua-module"

EXTRA_OECONF += " --add-module=${STAGING_DIR_ TARGET}/ngx-lua-module "

*and ngx-lua-module.bb ( http://ngx-lua-module.bb )*

SUMMARY = "lua module for nginx"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/ MIT;md5= 
0835ade698e0bcf8506ecda2f7b4f3 02"

SRC_URI = "git:// github.com/openresty/ lua-nginx-module.git;protocol= https ( 
http://github.com/openresty/lua-nginx-module.git;protocol=https ) "

PV = "1.5+git${SRCPV}"
SRCREV = " c06793c3e1431b24332b8b0239cc43 df43361941"

S = "${WORKDIR}/git"
SYSROOT_DIRS += "/${PN}"

DEPENDS += "luajit"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install () {
cd ${S}
git checkout-index -a --prefix=${D}/${PN}/
cd -
}
FILES_${PN} = "${PN}/* ${S}/*.*"

So when i build nginx it tries to add the module but it complains that

> 
> ./configure: error: unsupported LuaJIT version; ngx_http_lua_module
> requires LuaJIT 2.x.
> 

i checked the configuration file of nginx and it tries to look for header file 
for luajit and it can not find it hence complains.
but when i checked the recipe-sysroot of nginx the the header files are present 
at location
recipe-sysroot/usr/include/ luajit-2.0

and i think recipe does not include this location automatically and only looks 
in recipe-sysroot/usr/include

*so my question is how can i include this directory so that recipe looks into 
above mentioned folder also..*
*and similar question is for library also*

Any inputs would be highly appriciated
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48295): https://lists.yoctoproject.org/g/yocto/message/48295
Mute This Topic: https://lists.yoctoproject.org/mt/71049729/21656
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to