FreeRDP-CMAKE错误

FreeRDP-CMAKE错误,cmake,relocation,against,libcrypto,Cmake,Relocation,Against,Libcrypto,您好,我是linux的新手,正在尝试安装FreeRDP。我不断地发现这个错误: /usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(hmac.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/local/ssl/lib/libcrypto.a: error addin

您好,我是linux的新手,正在尝试安装FreeRDP。我不断地发现这个错误:

/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(hmac.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [winpr/libwinpr/utils/libwinpr-utils.so.1.1.0] Error 1
make[1]: *** [winpr/libwinpr/utils/CMakeFiles/winpr-utils.dir/all] Error 2
make: *** [all] Error 2
在我键入“make”命令之后。
很抱歉,如果这个问题已经被问到了,但我已经彻底搜索了堆栈溢出,还没有找到它。提前感谢:)

它希望您向ld:-fPIC添加一个参数
因此,如果有一行使用ld或gcc,只需添加它。
主要是gcc,参数共享已经存在,所以只需在其后面添加-fPIC即可