I'm trying to build dynagraph (a graph layout engine) but the linker can't find one of the libraries and I can't figure out why.
Code:
g++ -static -g main.o IncrCalledBack.o DuplicateStream.o createConfiguration.o -Lincrface -lincrface -Ldynadag -ldynadag -Lpathplot -lpathplot -Lfdp -lfdp -Lshortspline -lshortspline -Lvoronoi -lvoronoi -Lcommon -ldynagraph -L/usr/lib/graphviz -lagraph -lpathplan -lcdt -lagraph -lboost_thread -pthread -o dynagraph-whole
/usr/bin/ld: cannot find -lagraph
collect2: ld returned 1 exit status
make: *** [dynagraph-whole] Error 1
The libraries seem to be present:
Code:
$ ls -l /usr/lib/libagraph*
-rw-r--r-- 1 root root 808 2008-02-08 13:57 /usr/lib/libagraph.la
lrwxrwxrwx 1 root root 18 2008-05-27 16:56 /usr/lib/libagraph.so -> libagraph.so.4.0.0
lrwxrwxrwx 1 root root 18 2008-04-24 17:38 /usr/lib/libagraph.so.4 -> libagraph.so.4.0.0
-rw-r--r-- 1 root root 61336 2008-02-08 13:57 /usr/lib/libagraph.so.4.0.0
The directory /usr/lib should be in ld's search path (I even tried adding -L/usr/lib just in case). So why is ld complaining? Any pointers or hints on troubleshooting would be much appreciated!
Cheers,
Z.