luigifcruz / CyberEther

Multi-platform GPU-accelerated interface for compute-intensive pipelines. Radio, the final frontier.
MIT License
407 stars 14 forks source link

ninja install problem about libjetstream.so #56

Closed HIT-zhangrun closed 8 months ago

HIT-zhangrun commented 8 months ago

ubuntu 22 Linking target libjetstream.so FAILED: libjetstream.so /usr/bin/ld: /usr/local/lib/libfmt.a(format.cc.o): warning: relocation against stdout@@GLIBC_2.2.5' in read-only section.text' /usr/bin/ld: /usr/local/lib/libfmt.a(format.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC ninja: build stopped: subcommand failed.

HIT-zhangrun commented 8 months ago

I found the problem is about "libfmt" I install libfmt with source code and the version is 10.2.1(the version is not the problem). I add "add_compile_options(-fPIC)" in CMakeLists of fmt's source code. ps. to be added in front of the file recompile fmtlib. it works! Thanks! image image