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?