On 4/14/2015 1:41 PM, Roland Franke wrote:
> Hello,
>
>>>> In file included from ow_dnssd.c:17:
>>>> ../../../owlib/src/include/ow.h:302:20: error: libusb.h No such file or
>>>> directory
>>> Can you look for the following changes:
>>> module/owshell/src/c/Makefile.am
>>> In line 41 (And followed) you have to add at the end an \
>>> and add the lines:
>>> ${LIBUSB_CFLAGS} \
>>> ${PTHREAD_CFLAGS}
>>>
>>> Also exchange the line:
>>> LDADD = ${LD_EXTRALIBS} ${OSLIBS}
>>> with
>>> LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
>>>
>>> Then modify the file
>>> module/owshell/src/c/Makefile.in
>>> There the same as first be line 498 and following.
>>>
>> Got a little farther!
>> /home/addons/owfs-3.1p0/module/owlib/src/c/.libs/libow.so: undefined
>> reference to 'libusb_error_name'
> Can you please confirm, that at the file:
> /home/addons/owfs-3.1p0/module/owlib/src/c/Makefile.am
> is been set (Line 239 and followed):
> AM_CFLAGS = -I../include \
> -fexceptions \
> -Wall \
> -W \
> -Wundef \
> -Wshadow \
> -Wpointer-arith \
> -Wcast-qual \
> -Wcast-align \
> -Wstrict-prototypes \
> -Wredundant-decls \
> -D__EXTENSIONS__ \
> ${EXTRACFLAGS} \
> ${PTHREAD_CFLAGS} \
> ${LIBUSB_CFLAGS} \
> ${PIC_FLAGS}
>
> LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
>
> and in /home/addons/owfs-3.1p0/module/owlib/src/c/Makefile.in
> is set (line 746 and followed):
> AM_CFLAGS = -I../include \
> -fexceptions \
> -Wall \
> -W \
> -Wundef \
> -Wshadow \
> -Wpointer-arith \
> -Wcast-qual \
> -Wcast-align \
> -Wstrict-prototypes \
> -Wredundant-decls \
> -D__EXTENSIONS__ \
> ${EXTRACFLAGS} \
> ${PTHREAD_CFLAGS} \
> ${LIBUSB_CFLAGS} \
> ${PIC_FLAGS}
>
> LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
> all: all-am
>
> Best regards,
> Roland
>
The LDADD lines are not there. The extra fields from AM_CFLAGS are there.
Just now, I went to the root of the archive(/home/addons/owfs-3.1p0) and
ran make clean. Then ./configure
I went back and changed module/owshell/src/c/Makefile.am as instructed.
module/owshell/src/c/Makefile.in - those changes started at line 398,
not 498(I assumed a typo) and ran make again. Same error.
Again the LDADD lines are not in the two files you indicated.
Just for grins, I manually add the LDADD lines to those two files and
make gave me the exact same error.
Lyle Giese
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers