From: Kristian K. <kri...@gm...> - 2007-03-08 18:46:19
|
On 3/8/07, Darrick Hartman <dha...@dj...> wrote: > Manuel wrote: > > Hi all, > > > > I am making my first package but I have a problem. The attached package it's > > not already finished but compile without problems. I have found a problem. > > When the package test for the configuration, not found usb.h (see picoLCD in > > config.log). I need usb support. To resolve the problem I can manually copy > > the files from staging_dir/usr/include to staging_dir/include and all libusb > > from staging_dir/usr/lib to staging_dir/lib. With these changes works and I > > can make an image with lcd4linux with usb support. With my picoLCD works ok. > > > > Someone can tell me how to compile without coping these files manually? > > > You may need to patch the configure script and possibly the Makefile for > it to find the include. You can see how this is done in other > packages. Look at the patch in the 0.4 branch for > asterisk-makefile-cdr.patch. > > Darrick > > -- > Darrick Hartman > DJH Solutions, LLC > http://www.djhsolutions.com Usually you can just pass CFLAGS="-I $(STAGING_DIR)/include -L $(STAGING_DIR)/lib" (and whatever else) before configure and make. -- Kristian Kielhofner |