linux下Qt编译报错:syntax error collect2:error:ld returned 1 exit status
报错:
syntax error
未找到文件:/uer/bin/ld:/home/tingtaishou/Documents/QtProject/test/bin/libcrypto.so
collect2:error:ld returned 1 exit status
编译输出中报错:
file format not recognized;treating as linker script
无法识别文件格式;作为链接器脚本处理
原因:因为项目从windows下经过压缩处理,然后放到linux下,文件系统不一样,libcrypto.so文件结构被改变了。
解决方法:windows下不能将linux下的特定文件(如:.so文件)压缩。