medusa
medusa copied to clipboard
Error when linking libmedusa to libOGDF
I am trying to build the dev branch of medusa(15ce1d7) and I get the following error:
Linking CXX shared library ../../lib/libmedusa.so
/usr/bin/ld: $HOME/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Install/lib/libOGDF.a(Graph.cpp.o): relocation R_X86_64_32S against `_ZN4ogdf13AdjEntryArrayIbE10resetIndexEii' can not be used when making a shared object; recompile with -fPIC
$HOME/.hunter/_Base/8c538a0/a1b471c/15fdb4a/Install/lib/libOGDF.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/core/CMakeFiles/medusa.dir/build.make:1607: recipe for target 'lib/libmedusa.so' failed
make[2]: *** [lib/libmedusa.so] Error 1
CMakeFiles/Makefile2:200: recipe for target 'src/core/CMakeFiles/medusa.dir/all' failed
make[1]: *** [src/core/CMakeFiles/medusa.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Seems like there's an issue when building OGDF.
I'm using a fully updated Ubuntu 16.04.2 running cmake 3.8.0. Steps to reproduce:
- Clone the repository.
- Run
cmake -DCMAKE_BUILD_TYPE=Release ..
from a build directory in source tree. - Run
make
.
Hi dnivra,
OGDF dependency will be handled by vcpkg. Normally, this issue will be fixed soon.