1. 程式人生 > >/usr/bin/ld: skipping incompatible錯誤

/usr/bin/ld: skipping incompatible錯誤

今天碰到的問題: /usr/bin/ld: skipping incompatible qt在連線a和so檔案時報錯 分析:編譯器給出的錯誤資訊已經很清楚了:相容性問題 分析方法:  file xxx.a  或  file xxx.so  看一下該庫的版本是32為還是64位的,或是ARM版還是..等等。 檢視so檔案的資訊:64位 [email protected]:~/Documents/CloudBox/VersionControlServer/code/bin$ file liblht_coreframeworkD.so.1.0.0
liblht_coreframeworkD.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x395ec03d717504939d7e6c93f6f1132ea7830ad2, not stripped
檢視系統資訊:未顯示是64位,基本是32位的 user
@ubuntu:~/Documents/CloudBox/VersionControlServer/code/bin$ uname -a
Linux ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
檢視GUI系統資訊:果然是32位的。 解決辦法: 1)重新編譯32位的so檔案 2)換臺64位的linux

相關推薦

/usr/bin/ld: skipping incompatible錯誤

今天碰到的問題: /usr/bin/ld: skipping incompatible qt在連線a和so檔案時報錯 分析:編譯器給出的錯誤資訊已經很清楚了:相容性問題 分析方法:  file xxx.a  或  file xxx.so  看一下該庫的版本是32為還是64位的,或是ARM版還是

/usr/bin/ld: skipping incompatible解決方案

今天在做專案的時候,用make命令後出現了/usr/bin/ld: skipping incompatible......問題。 這個問題實質是連結庫檔案時,庫檔案版本與平臺版本不對應的問題。 解決方

編譯出現:【/usr/bin/ld: skipping incompatible * when searching for *】的解決方法

[email protected]:~/6410/linuxcsqlite3$ make gcc sqlite.o -o sqlite -L /home/wzg/6410/sqlite-3.5.9/_install/lib -I/home/wzg/6410/sqlite-3.5.9/_install

error:/usr/bin/ld:skipping incompatible ./libxxxx.so when searching for -lxxxx

轉自: http://www.scalachina.com/home.php?mod=space&uid=1&do=blog&id=106 第一次在Redhat(64bit)下編譯時出現如標題的錯誤,之前在其他機器上編譯沒有問題,後來發現可能

【庫連線問題】makefile中如何連線庫以及解決/usr/bin/ld: skipping incompatible問題

關於如何連線庫,這裡只記錄自己碰到的一些問題 編寫Makefile 編譯時 -c 生成.o 檔案:後面要加-I (指明包含的標頭檔案) 連結時 -o 生成可執行檔案:-L(指明庫的位置) -l(指明庫的名字) 還有一個是在引用json庫的問題: lib

usr/bin/ld: cannot find 錯誤解決方法

   參考:http://blog.siyebocai.cn/20100324_5p424qs7.html    通常在軟體編譯時出現的usr/bin/ld: cannot find -lxxx的錯誤,主要的原因是庫檔案並沒有匯入的ld檢索目錄中。    解決方式:

vddk 編譯錯誤 /usr/bin/ld:cannot find -lthrift

問題描述 編譯 vddk 時報錯: /usr/bin/ld: cannot find -lthrift collect2: 錯誤:ld 返回 1 make: *** [vddk] 錯誤 1 或者報如下錯誤: In file included fr

caffe 錯誤總結 “/usr/bin/ld: 找不到 -lopencv_imgcodecs”

一、錯誤提示:/usr/bin/ld: 找不到 -lopencv_imgcodecs 或者 caffe cannot find lopencv_imgcodecs 二、原因: opencv_imgcodecs is needed and available in opencv 3

gcc連線靜態庫的時候的出現錯誤/usr/bin/ld: cannot find -lc

gcc連線靜態庫的時候出現錯誤提示:/usr/bin/ld: cannot find -lc 具體過程:gcc main.c -o test -Ladd -ladd -Lsub -lsub  -Iad

CentOS安裝Qt編譯錯誤以及無法除錯的問題解決( /usr/bin/ld:cannot find –lGL 和 Debugginghas failed)

CentOS安裝Qt編譯錯誤以及無法除錯的問題解決 1、前提 系統: CentOS-6.5-x86_64-minimal.iso 最小化linux. 手動安裝x-winodws介面。 Qt版本:qt-opensource-linux-x64-5.6.0.run。 安裝qt需

Linux環境下gcc靜態編譯/usr/bin/ld: cannot find -lc錯誤原因及解決方法 原因:

原因: 一般出現這個問題的時候,Makefile中肯定有-static選項。這其實是靜態連結時沒有找到libc.a。 解決方案: 需要安裝glibc-static.xxx.rpm,如glibc-static-2.12-1.107.el6_4.2.i686.rpm,或是yum install gli

解決usr/bin/ld: cannot find -lxxx的錯誤

轉載自 參考 通常在軟體編譯時出現的usr/bin/ld: cannot find -lxxx的錯誤或者…so undefine xxxx,主要的原因是庫檔案並沒有匯入的ld檢索目錄中。  解決方式: 1. 確認庫檔案是否存在,比如-l123, 在/usr/lib, /usr/local

/usr/bin/ld: cannot find -lcrypto 錯誤的解決方法

Linux下 build code 時,要做 -lssl, -lcrypto 的連結,出現類似下面的錯誤: /usr/bin/ld: cannot find -lcrypto /usr/bin/ld: cannot find -lssl 原因是沒有找到 libss

編譯hostapd時,出現錯誤:/usr/bin/ld: cannot find -lnl

[email protected]:/work/project/wifi/04.hostapd/hostapd-2.0/hostapd$ make /usr/bin/ld: cannot find -lnl collect2: ld returned 1 exit

關於/usr/bin/ld: cannot find -lcrypto 的錯誤

Linux下 build code 時,要做 -lssl, -lcrypto 的連結,出現類似下面的錯誤: /usr/bin/ld: cannot find -lcrypto /usr/bin/ld: cannot find -lssl 原因是沒有找到 libssl.so

編譯時遇到 /usr/bin/ld: cannot find -lxxx 錯誤的解決方法

本文介紹下,在編譯軟體時,提示usr/bin/ld: cannot find錯誤的解決方法,有需要的朋友參考下。 原因:庫檔案並沒有匯入的ld檢索目錄中。 解決方法:    1、確認庫檔案是否存在,比如-l123, 在/usr/lib, /usr/local/lib,

解決/usr/bin/ld: cannot find -lmysqlclient錯誤

類似/usr/bin/ld: cannot find -xxxx的錯誤有很多, 首先我們可以最簡單的判斷一下: 這類情況一般是由於缺乏某某庫檔案, 又或者可能是由於已存在的庫問題版本不對造成的 一般都是解決的辦法就是安裝缺乏的devel包就可以解決, 當然還有其他的未知因素, 我們看一個例項: 我在一臺裝c

/usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Err

usr 方法 pos track data- -m stat cgi error /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cg

安裝 sysbench的 報錯 /usr/bin/ld: cannot find -lmysqlclient_r 解決辦法

cli 既然 cannot ibm 這樣的 mysq 文件名 can 都是 首先你需要找到這個庫的位置 一般找的話需要將lib 給加上(註意:我這裏是 -lmysqlclient_r 的報錯,於是我找就找 libmysqlclient_r ) find / -name

/usr/bin/ld: cannot find -lxxx 的解決辦法

建立 html 解決方法 gcc bash 存在 cannot 重建 ext 在軟件編譯過程中,經常會碰到類似這樣的編譯錯誤: /usr/bin/ld: cannot find -lhdf5 這表示找不到庫文件 libhdf5.so,若是其它庫文件,則是 cannot