Newbie Comile/Link error

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
targosky
Posts: 1
Joined: 28 May 2014 15:39

Newbie Comile/Link error

Post by targosky »

Trying to compile my first app that uses the Z-WAY API. Problem is linker fails to libarchive...

command line to link is as follows:
g++ -L/opt/z-way-server/libs -L/usr/lib/arm-linux-gnueabihf -larchive -lxml -lzway -pthread main.o -o target_bin

The error is
/usr/bin/ld: cannot find -larchive

Even though the so is there:
lrwxrwxrwx 1 root root 20 Apr 25 2013 /usr/lib/arm-linux-gnueabihf/libarchive.so.12 -> libarchive.so.12.0.4


It's being natively compiled on a RPI running latest Raspbian distro

Presently the app just calls zway_init

What am I doing wrong?
Post Reply