#420

target_link_libraries(xx Zydis::Zydis) fails to find libZycore.so

Openyurivictopened 3y ago

The failing looks like this:

/usr/bin/c++ -g "CMakeFiles/elf2llvm.dir/asm-code.cpp.o" CMakeFiles/elf2llvm.dir/main.cpp.o "CMakeFiles/elf2llvm.dir/zydis-utils.cpp.o" -o elf2llvm  -Wl,-rpath,/usr/local/lib /usr/local/lib/libZydis.so.4.0.0.0 -lZycore 
ld: error: unable to find library -lZycore
c++: error: linker command failed with exit code 1 (use -v to see invocation)

Zydis was configured to use system Zycore.

It finds libZydis.so but it fails to find libZycore.so

On FreeBSD packages are installed into /usr/local/lib but only /usr/lib is in default library path. Once Zycore is installed into /usr/local/lib cmake scripts need to add it to the library path, which they don't.

Version: 4.0.0 FreeBSD 13.1

Activity

0

No activity yet.