時(shí)間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)
1、下載skyeye-1.3.0_rc1.tar.gz
2、解壓縮:tar xzvf skyeye-1.3.0_rc1.tar.gz
3、cd? skyeye-1.3.0_rc1
4、./configure
在./configure的過程中出現(xiàn)了問題
錯(cuò)誤提示是缺少c++編譯器,于是乎apt-get intall g++,解決之
5、make lib 此處沒有出錯(cuò),但是時(shí)間很長
6、make?? 時(shí)間依舊很長,出了些問題
gui/x.cc:89: error: expected constructor, destructor, or type conversion before ‘*’ token
gui/x.cc:91: error: expected initializer before ‘*’ token
gui/x.cc:92: error: ‘Colormap’ does not name a type
gui/x.cc:101: error: ‘Window’ does not name a type
gui/x.cc:102: error: ‘GC’ does not name a type
gui/x.cc:107: error: expected initializer before ‘*’ token
gui/x.cc:134: error: ‘Pixmap’ does not name a type
gui/x.cc:137: error: ‘Pixmap’ does not name a type
gui/x.cc:144: error: ‘Pixmap’ does not name a type
gui/x.cc:301: error: variable or field ‘xkeypress’ declared void
gui/x.cc:301: error: ‘KeySym’ was not declared in this scope
gui/x.cc:301: error: expected primary-expression before ‘int’
gui/x.cc:325: error: ‘Colormap’ was not declared in this scope
gui/x.cc:325: error: expected primary-expression before ‘n_tries’
gui/x.cc:325: error: initializer expression list treated as compound expression
gui/x.cc:325: error: expected ‘,’ or ‘;’ before ‘{’ token
安裝apt-get install libxpm-dev之后又出現(xiàn)了
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `PC'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetflag'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetent'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `UP'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tputs'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgoto'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetnum'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `BC'
/home/andy/skyeye-1.3.0_rc1/common/.libs/libcommon.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[2]: *** [skyeye] 錯(cuò)誤 1
make[2]:正在離開目錄 `/home/andy/skyeye-1.3.0_rc1'
make[1]: *** [all-recursive] 錯(cuò)誤 1
make[1]:正在離開目錄 `/home/andy/skyeye-1.3.0_rc1'
make: *** [all] 錯(cuò)誤 2
根據(jù)http://hi.baidu.com/tihu1111/blog/item/9f3a0fa716348f98d1435857.html的建議,
主要是缺少termcap庫文件,在終端里執(zhí)行sudo apt-get install libncurses5-dev安裝
7、sudo make install
此處加sudo是因?yàn)樾枰蚰硞€(gè)目錄底下寫文件,所以需要管理員帳戶
8、sudo make install_lib
OK
這時(shí)候在目錄/opt/skyeye/下存在下面的目錄
bin conf include info lib testsuite
bin目錄下存放的是skyeye的二進(jìn)制的程序。
mknandflashdump : 用來制作nandflash的鏡像文件
skyeye :skyeye的命令行應(yīng)用程序
Skyeye-gui: skyeye的圖形應(yīng)用程序
uart_instance : 被skyeye調(diào)用的應(yīng)用程序,功能為通過一個(gè)xterm終端來顯示串口的輸出
conf目錄存放了針對已經(jīng)支持的目標(biāo)板的一些配置文件
include目錄存放了skyeye開發(fā)插件時(shí)所用到的頭文件
info目錄存放了info格式的文檔
Lib目錄存放了skyeye的核心庫libcommon.so和其他一些以動(dòng)態(tài)庫存在的插件
testsuite目錄存放了一個(gè)簡單的測試用例
9、skyeye
在/opt/skyeye/testsuite下有個(gè)目錄arm_hello
skyeye –e vmlinux –c skyeye.conf 啟動(dòng)arm-linux
還可以把bin下的skyeye拷到/usr/bin中,這樣就可以不進(jìn)目錄了
9,start,這個(gè)命令啟動(dòng),但是有問題,提示配置文件skyeye.conf沒有配置
這樣在/opt/skyeye/testsuite/arm_hello下,執(zhí)行skyeye->start->skyeye -e arm_hello
這時(shí)出現(xiàn)uart-instance窗體,
根據(jù)skyeye的使用手冊,輸入run測試,此處的run是在ubuntu的終端輸入的,不是uart-instance
此時(shí)會(huì)在uart-instance中出現(xiàn)一堆helloworld
成功了!!!!!!!!
關(guān)鍵詞標(biāo)簽:ubuntu,skyeye
相關(guān)閱讀
熱門文章 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 Tomcat9.0如何安裝_Tomcat9.0環(huán)境變量配置方法 多種操作系統(tǒng)NTP客戶端配置 Linux操作系統(tǒng)修改IP
人氣排行 Linux下獲取CPUID、硬盤序列號(hào)與MAC地址 dmidecode命令查看內(nèi)存型號(hào) linux tc實(shí)現(xiàn)ip流量限制 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 linux下解壓rar文件 lcx.exe、nc.exe、sc.exe入侵中的使用方法 Ubuntu linux 關(guān)機(jī)、重啟、注銷 命令 查看linux服務(wù)器硬盤IO讀寫負(fù)載