歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> 錯誤:Relocations in generic ELF (EM: 40)

錯誤:Relocations in generic ELF (EM: 40)

日期:2017/3/1 10:12:08   编辑:Linux編程

操作系統:RHEL5.1-Server

編譯器:arm-linux-gcc 4.3.2

工程:x264-snapshot-20120817-2245

問題:在做 x264 編碼的arm移植時,出現如下問題

/usr/bin/ld: x264.o: Relocations in generic ELF (EM: 40)

原因:x264工程中編譯鏈接工具不一致

解決方案:打開config.mak文件,將其中編譯鏈接工具( CC )修改為移植

PS :引起此問題的原因,也有可能為多次編譯鏈接的工具不一致,此時make clean或make distclean,重新編譯即可。

make clean、make distclean等相關命令的用法,請查看相關資料

Copyright © Linux教程網 All Rights Reserved