Hello,
I get owfs-3.1p0 on my rpi with GCC compiled including libusb.
(Installed libusb-1.0-.dev)
Only PHP is disabled.
Current configuration:
Deployment location: /opt/owfs
Compile-time options:
USB is enabled
AVAHI is DISABLED
I2C is enabled
W1 is enabled
Parallel port DS1410E is enabled
Zeroconf/Bonjour is enabled
Debug-output is enabled
Mutexdebug is enabled
Profiling is DISABLED
Tracing memory allocation is DISABLED
Module configuration:
owlib is enabled
owshell is enabled
owfs is enabled
owhttpd is enabled
owftpd is enabled
owserver is enabled
owexternal is enabled
ownet is enabled
ownetlib is enabled
owtap is enabled
owmon is enabled
owcapi is enabled
swig is enabled
owperl is enabled
owphp is DISABLED
owpython is enabled
owtcl is enabled
BUT, I use the following changes in the makefiles:
(Shown as patch between the original and my modificated
version)
diff -urN owfs-3.1p0_org/module/owlib/src/c/Makefile.am
owfs-3.1p0_rpi/module/owlib/src/c/Makefile.am
--- owfs-3.1p0_org/module/owlib/src/c/Makefile.am 2015-02-23
03:46:11.000000000 +0000
+++ owfs-3.1p0_rpi/module/owlib/src/c/Makefile.am 2015-04-04
20:34:14.000000000 +0000
@@ -253,6 +253,7 @@
${LIBUSB_CFLAGS} \
${PIC_FLAGS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
#if HAVE_CYGWIN
#NOWINE=1
diff -urN owfs-3.1p0_org/module/owlib/src/c/Makefile.in
owfs-3.1p0_rpi/module/owlib/src/c/Makefile.in
--- owfs-3.1p0_org/module/owlib/src/c/Makefile.in 2015-03-15
01:38:31.000000000 +0000
+++ owfs-3.1p0_rpi/module/owlib/src/c/Makefile.in 2015-04-04
20:34:41.000000000 +0000
@@ -760,6 +760,7 @@
${LIBUSB_CFLAGS} \
${PIC_FLAGS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
all: all-am
.SUFFIXES:
diff -urN owfs-3.1p0_org/module/owshell/src/c/Makefile.am
owfs-3.1p0_rpi/module/owshell/src/c/Makefile.am
--- owfs-3.1p0_org/module/owshell/src/c/Makefile.am 2015-01-11
01:31:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/owshell/src/c/Makefile.am 2015-04-04
18:11:47.000000000 +0000
@@ -41,7 +41,9 @@
-Wcast-align \
-Wstrict-prototypes \
-Wredundant-decls \
- ${EXTRACFLAGS}
+ ${EXTRACFLAGS} \
+ ${LIBUSB_CFLAGS} \
+ ${PTHREAD_CFLAGS}
-LDADD = ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
diff -urN owfs-3.1p0_org/module/owshell/src/c/Makefile.in
owfs-3.1p0_rpi/module/owshell/src/c/Makefile.in
--- owfs-3.1p0_org/module/owshell/src/c/Makefile.in 2015-03-15
01:38:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/owshell/src/c/Makefile.in 2015-04-04
18:12:34.000000000 +0000
@@ -498,9 +498,11 @@
-Wcast-align \
-Wstrict-prototypes \
-Wredundant-decls \
- ${EXTRACFLAGS}
+ ${EXTRACFLAGS} \
+ ${LIBUSB_CFLAGS} \
+ ${PTHREAD_CFLAGS}
-LDADD = ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = ${LIBUSB_LIBS} ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
all: all-am
.SUFFIXES:
diff -urN owfs-3.1p0_org/module/owtcl/Makefile.am
owfs-3.1p0_rpi/module/owtcl/Makefile.am
--- owfs-3.1p0_org/module/owtcl/Makefile.am 2015-01-11 01:31:32.000000000
+0000
+++ owfs-3.1p0_rpi/module/owtcl/Makefile.am 2015-04-04 21:50:28.000000000
+0000
@@ -40,6 +40,7 @@
-Wstrict-prototypes \
-Wredundant-decls \
${EXTRACFLAGS} \
+ ${LIBUSB_CLFAGS} \
${PTHREAD_CFLAGS} \
$(TCL_DEFS) \
$(TCL_SHLIB_CFLAGS) \
diff -urN owfs-3.1p0_org/module/owtcl/Makefile.in
owfs-3.1p0_rpi/module/owtcl/Makefile.in
--- owfs-3.1p0_org/module/owtcl/Makefile.in 2015-03-15 01:38:32.000000000
+0000
+++ owfs-3.1p0_rpi/module/owtcl/Makefile.in 2015-04-04 21:51:04.000000000
+0000
@@ -491,6 +491,7 @@
-Wstrict-prototypes \
-Wredundant-decls \
${EXTRACFLAGS} \
+ ${LIBUSB_CFLAGS} \
${PTHREAD_CFLAGS} \
$(TCL_DEFS) \
$(TCL_SHLIB_CFLAGS) \
diff -urN owfs-3.1p0_org/module/swig/perl5/OW/Makefile.linux.in
owfs-3.1p0_rpi/module/swig/perl5/OW/Makefile.linux.in
--- owfs-3.1p0_org/module/swig/perl5/OW/Makefile.linux.in 2015-01-11
01:31:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/swig/perl5/OW/Makefile.linux.in 2015-04-05
12:19:11.000000000 +0000
@@ -9,7 +9,7 @@
'VERSION' => q[@VERSION@],
# Avoid compilation problem for Fedora Core 1 and Slackware 10.2
'DEFINE' =>
q[@PTHREAD_CFLAGS@ -D_FILE_OFFSET_BITS=64 -DSKIP_SEARCH_H @DEFS@],
- 'INC' =>
q[-I../../../../src/include -I../../../owlib/src/include @CPPFLAGS@],
+ 'INC' =>
q[-I../../../../src/include -I../../../owlib/src/include
-I/usr/include/libusb-1.0
@CPPFLAGS@],
# Default value for LDDLFLAGS is
$Config{lddlflags}="-shared -L/usr/local/lib"
# but we want rpath to be @libdir@ or @exec_prefix@/lib
'LDDLFLAGS' =>
q[-shared -L../../../owlib/src/c/.libs -Wl,-rpath=@prefix@/lib],
diff -urN owfs-3.1p0_org/module/swig/perl5/OW/Makefile.osx.in
owfs-3.1p0_rpi/module/swig/perl5/OW/Makefile.osx.in
--- owfs-3.1p0_org/module/swig/perl5/OW/Makefile.osx.in 2015-01-11
01:31:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/swig/perl5/OW/Makefile.osx.in 2015-04-05
12:18:59.000000000 +0000
@@ -9,7 +9,7 @@
'VERSION' => q[@VERSION@],
# Avoid compilation problem for Fedora Core 1 and Slackware 10.2
'DEFINE' =>
q[@PTHREAD_CFLAGS@ -D_FILE_OFFSET_BITS=64 -DSKIP_SEARCH_H @DEFS@],
- 'INC' =>
q[-I../../../../src/include -I../../../owlib/src/include @CPPFLAGS@],
+ 'INC' =>
q[-I../../../../src/include -I../../../owlib/src/include
-I/usr/include/libusb-1.0
@CPPFLAGS@],
# Default value for LDDLFLAGS is
$Config{lddlflags}="-shared -L/usr/local/lib"
# but we want rpath to be @libdir@ or @exec_prefix@/lib
'LDDLFLAGS' => q[-bundle -flat_namespace -undefined
suppress -Wl,-L../../../owlib/src/c/.libs],
diff -urN owfs-3.1p0_org/module/swig/php/Makefile.am
owfs-3.1p0_rpi/module/swig/php/Makefile.am
--- owfs-3.1p0_org/module/swig/php/Makefile.am 2015-01-11
01:31:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/swig/php/Makefile.am 2015-04-04
21:36:44.000000000 +0000
@@ -22,10 +22,11 @@
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/module/owlib/src/include \
${EXTRACFLAGS} \
+ ${LIBUSB_CFLAGS} \
${PTHREAD_CFLAGS} \
@PHPINC@
-LDADD = -L../../owlib/src/c -low ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = -L../../owlib/src/c -low ${LIBUSB_LIBS} ${PTHREAD_LIBS}
${LD_EXTRALIBS} ${OSLIBS}
nodist_libowphp_la_SOURCES = ow_wrap.c php_OW.h
diff -urN owfs-3.1p0_org/module/swig/php/Makefile.in
owfs-3.1p0_rpi/module/swig/php/Makefile.in
--- owfs-3.1p0_org/module/swig/php/Makefile.in 2015-03-15
01:38:32.000000000 +0000
+++ owfs-3.1p0_rpi/module/swig/php/Makefile.in 2015-04-04
21:37:34.000000000 +0000
@@ -474,10 +474,11 @@
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/module/owlib/src/include \
${EXTRACFLAGS} \
+ ${LIBUSB_CFLAGS} \
${PTHREAD_CFLAGS} \
@PHPINC@
-LDADD = -L../../owlib/src/c -low ${PTHREAD_LIBS} ${LD_EXTRALIBS} ${OSLIBS}
+LDADD = -L../../owlib/src/c -low ${PTHREAD_LIBS} §{LIBUSB_LIBS}
${LD_EXTRALIBS} ${OSLIBS}
nodist_libowphp_la_SOURCES = ow_wrap.c php_OW.h
all: all-am
Best regards,
Roland
-----Ursprüngliche Nachricht-----
From: Roland Franke
Sent: Saturday, May 23, 2015 11:01 AM
To: OWFS (One-wire file system) discussion and help
Subject: Re: [Owfs-developers] Installing newest owfs on Raspberry
Hello,
have you add the modification from your first mail here now also?
Can you build the system with an "./configure --disable-swig"?
Best regards,
Roland
-----Ursprüngliche Nachricht-----
From: [email protected]
Sent: Saturday, May 23, 2015 9:51 AM
To: OWFS (One-wire file system) discussion and help
Subject: Re: [Owfs-developers] Installing newest owfs on Raspberry
> gcc -c -I../../../../src/include -I../../../owlib/src/include
> -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector
> -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -DPERL_POLLUTE -O2 -g -DVERSION=\"3.1p0\"
> -DXS_VERSION=\"3.1p0\" -fPIC "-I/usr/lib/perl/5.14/CORE" -pthread
> -D_FILE_OFFSET_BITS=64 -DSKIP_SEARCH_H -DHAVE_CONFIG_H ow_wrap.c
> In file included from ow_wrap.c:1525:0:
> ../../../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such
> file or directory
> compilation terminated.
And when I disable owperl, make bails out here:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src/include
-I../owlib/src/include -I../owcapi/src/include -fexceptions -Wall -W
-Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -pthread -DPACKAGE_NAME=\"tcl\"
-DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\"
"-DPACKAGE_STRING=\"tcl 8.5\"" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1
-D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1
-DHAVE_PTHREAD_GETATTR_NP=1 -DGETATTRNP_NOT_DECLARED=1 -DTCL_THREADS=1
-DTCL_CFGVAL_ENCODING=\"iso8859-1\" "-DMODULE_SCOPE=extern
__attribute__((__visibility__(\"hidden\")))" -DTCL_SHLIB_EXT=\".so\"
-DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4
-D_LARGEFILE64_SOURCE=1 "-DTCL_WIDE_INT_TYPE=long long"
-DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1
-DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1
-DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1
-DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1
-DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1
-DHAVE_GETGRNAM_R=1 -DHAVE_GETHOSTBYNAME_R_6=1 -DHAVE_GETHOSTBYNAME_R=1
-DHAVE_GETHOSTBYADDR_R_8=1 -DHAVE_GETHOSTBYADDR_R=1 -DUSE_TERMIOS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1
-DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1
-DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1
-DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1
-DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 -fPIC -I/usr/include/tcl8.5
"-DTCL_PACKAGE_PATH=\"/usr/local/lib/tcltk /usr/local/share/tcltk
/usr/lib/tcltk /usr/share/tcltk /usr/lib\""
-DOWTCL_PACKAGE_PATH=\"/usr/local/lib/tcltk/owtcl-1.0\" -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1 -D_ISOC99_SOURCE=1
-D_POSIX_C_SOURCE=200112L -MT ow.lo -MD -MP -MF .deps/ow.Tpo -c ow.c
-fPIC -DPIC -o .libs/ow.o
In file included from ow.c:35:0:
../owlib/src/include/ow.h:302:20: fatal error: libusb.h: No such file or
directory
compilation terminated.
Makefile:599: recipe for target 'ow.lo' failed
Again, libusb.h is found by make for other modules.
But I have no clue what to tweak to get it working everywhere.
Cheers, Chris
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers