I don't know why that won't work.
Note, if you don't set the PREFIX, they will add /usr/local anyway. Perhaps that's the problem. Here's the relevant Makefile bits for the others to look at: # Installation related variables and target PREFIX?=/usr/local INCLUDE_PATH?=include/hiredis LIBRARY_PATH?=lib PKGCONF_PATH?=pkgconfig INSTALL_INCLUDE_PATH= $(DESTDIR)$(PREFIX)/$(INCLUDE_PATH) INSTALL_LIBRARY_PATH= $(DESTDIR)$(PREFIX)/$(LIBRARY_PATH) INSTALL_PKGCONF_PATH= $(INSTALL_LIBRARY_PATH)/$(PKGCONF_PATH) install: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME) mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) $(INSTALL) hiredis.h async.h read.h sds.h adapters $(INSTALL_INCLUDE_PATH) $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME) cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIBNAME) $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) mkdir -p $(INSTALL_PKGCONF_PATH) $(INSTALL) $(PKGCONFNAME) $(INSTALL_PKGCONF_PATH) ________________________________ From: s.jar...@esa-grimma.de <s.jar...@esa-grimma.de> Sent: Thursday, April 28, 2016 9:09 AM To: Burton, Ross Cc: Fred Ollinger; yocto@yoctoproject.org Subject: Antwort: Re: [yocto] how to configure the build packages of a makefile based libary Hej sorry - that does not work. Maybe you can show me some working/common code. Do I have to create the FILE_${PV} or/and FILE_${PV}-dev, FILE_${PV}-static? The builded files go into the Git dir & the autotools-brokensep is generating the package dir. I repeat my question: What are the commands in the bb file to build the packages (release, static, dev, whatever ...)? Sorry - I do not understand at all the steps and theire parameters to build a libary. Is there somewhere an example given? Below my bb file and the console error print. #### libhiredis #### SUMMARY = "libhiredis" SECTION = "sek4" LICENSE = "COPYING" LIC_FILES_CHKSUM = "file://$<file://$/>{WORKDIR}/git/COPYING;md5=d84d659a35c666d23233e54503aaea51" # 0.13.3 # SRCREV = "010756025e8cefd1bc66c6d4ed3b1648ef6f1f95" SRC_URI = "git://github.com/redis/hiredis.git;rev=v0.13.3" S = "${WORKDIR}/git/" # we need to pass the Cxx parameter extra to the make call EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include' 'BUILDDIR=${S}' 'DESTDIR=${D}'" inherit autotools-brokensep do_compile() { oe_runmake all 'CC=${CC}' } do_install() { oe_runmake install 'DESTDIR=${D}' } FILES_${PN} += "/user/local" ######## ### consol error ### ERROR: QA Issue: libhiredis: Files/directories were installed but not shipped in any package: /usr/local /usr/local/lib /usr/local/include /usr/local/lib/libhiredis.so /usr/local/lib/libhiredis.so.0.13 /usr/local/lib/libhiredis.a /usr/local/lib/.debug /usr/local/lib/pkgconfig /usr/local/lib/.debug/libhiredis.so.0.13 /usr/local/lib/pkgconfig/hiredis.pc /usr/local/include/hiredis /usr/local/include/hiredis/sds.h /usr/local/include/hiredis/read.h /usr/local/include/hiredis/async.h /usr/local/include/hiredis/hiredis.h /usr/local/include/hiredis/adapters /usr/local/include/hiredis/adapters/glib.h /usr/local/include/hiredis/adapters/macosx.h /usr/local/include/hiredis/adapters/libev.h /usr/local/include/hiredis/adapters/libevent.h /usr/local/include/hiredis/adapters/qt.h /usr/local/include/hiredis/adapters/libuv.h /usr/local/include/hiredis/adapters/ae.h /usr/local/include/hiredis/adapters/ivykis.h Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. libhiredis: 24 installed and not shipped files. [installed-vs-shipped] NOTE: Tasks Summary: Attempted 388 tasks of which 375 didn't need to be rerun and all succeeded. ######## Mit freundlichen Grüßen Stefan Jaritz Entwickler ------------------------------------------------------------ ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30 04668 Grimma Telefon: +49 3437 9211 176 Telefax: +49 3437 9211 26 E-Mail: s.jar...@esa-grimma.de Internet: www.esa-grimma.de Geschäftsführer: Dipl.-Ing. Jörg Gaitzsch Jörg Reinker Sitz der Gesellschaft: Grimma Ust.-ID: DE 141784437 Amtsgericht: Leipzig, HRB 5159 Steuernummer: 238/108/00755 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto