abhinavkhandka / openzwave-control-panel

Automatically exported from code.google.com/p/openzwave-control-panel
0 stars 0 forks source link

Will not compile #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to compile on a Raspberry Pi against the open-zwave library, 
revision 887.  I get the following compile error:

 make
g++ -o ozwcp -g ozwcp.o webserver.o zwavelib.o ../open-zwave/libopenzwave.a 
-lgnutls ../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a -pthread -ludev
/usr/bin/ld: ../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a(daemon.o): 
undefined reference to symbol 'gcry_control@@GCRYPT_1.2'
//lib/arm-linux-gnueabihf/libgcrypt.so.11: error adding symbols: DSO missing 
from command line
collect2: ld returned 1 exit status
Makefile:71: recipe for target 'ozwcp' failed
make: *** [ozwcp] Error 1

hopefully this is a simple fix.

Original issue reported on code.google.com by mhfr...@gmail.com on 30 Aug 2014 at 4:41

GoogleCodeExporter commented 9 years ago
* Same as on the open-zwave issue list

It is a fault in the Pi image i believe, but easy to fix. Modify the Makefile 
of the ozwcp as follows:

Replace
# Remove comment below for gnutls support
GNUTLS := #-lgnutls

with:
# Remove comment below for gnutls support
GNUTLS := -lgnutls -lgcrypt

Then it will compile fine ;-)

Original comment by uAle...@gmail.com on 20 Nov 2014 at 9:53

GoogleCodeExporter commented 9 years ago
Thank you for the fix, it fixed part of the problem.  The make then returned an 
additional undefined reference to symbol 'clock_gettime@@GLIBC_2.4'.  

This required changing:
   DEBUG_LDFLAGS   := -g
to:
   DEBUG_LDFLAGS   := -g -lrt

Original comment by mhfr...@gmail.com on 21 Nov 2014 at 2:55