我想編譯一個簡單的PJSIP程序與Yocto/Openembedded。我有這樣的錯誤:fatal error: pjsua-lib/pjsua.h: No such file or directory
這是我的Makefile:
.h:沒有這樣的文件或目錄YOCTO/Openembedded
all: simple_pjsua
simple_pjsua: simple_pjsua.c
$(CC) -o [email protected] $< `pkg-config --cflags --libs libpjproject`
clean:
rm -f simple_pjsua.o simple_pjsua
這裏是我的simplepjsua_2.6.bb:
DESCRIPTION = "Open source SIP stack and media stack for presence, im/instant \
messaging, and multimedia communication"
SECTION = "libs"
HOMEPAGE = "http://www.pjsip.org/"
# there are various 3rd party sources which may or may not be part of the
# build, there license term vary or are not explicitely specified.
LICENSE = "CLOSED"
PR = "r0"
SRC_URI = "file://simple_pjsua.c \
file://Makefile \
file://README.txt"
S = "${WORKDIR}/"
do_compile() {
cd ${S}
#to prevent libpjproject.PC not found error
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
oe_runmake
}
do_install() {
install -m 0755 -d ${D}${bindir} ${D}${docdir}/simple_pjsua
install -m 0755 ${S}/simple_pjsua ${D}${bindir}
install -m 0755 ${WORKDIR}/README.txt ${D}${docdir}/simple_pjsua
}
我試着在Makefile文件,但沒有改變增加INC=-I/usr/include/pjsua-lib/
。 。如果我想在我的電腦上編譯它make
它工作。
我該怎麼辦?
編輯:
我試着在do_compile加入export LD_LIBRARY_PATH=/usr/include
()的BB文件。同一問題
謝謝!你是我的男人!我已經有了一個PJSIP層,我只是添加了'DEPENDS =「pjproject」',現在我的程序在我的主板上工作。再次感謝你 ! – Tagadac