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文件)压缩。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM