歡迎您光臨本站 註冊首頁

skyeye在ubuntu上配置全過程

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply: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的過程中出現了問題

  錯誤提示是缺少c 編譯器,於是乎apt-get intall g ,解決之

  5、make lib 此處沒有出錯,但是時間很長

  6、make 時間依舊很長,出了些問題

  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之後又出現了

  /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] 錯誤 1

  make[2]:正在離開目錄 `/home/andy/skyeye-1.3.0_rc1'

  make[1]: *** [all-recursive] 錯誤 1

  make[1]:正在離開目錄 `/home/andy/skyeye-1.3.0_rc1'

  make: *** [all] 錯誤 2

  根據http://hi.baidu.com/tihu1111/blog/item/9f3a0fa716348f98d1435857.html的建議,

  主要是缺少termcap庫文件,在終端里執行sudo apt-get install libncurses5-dev安裝

  7、sudo make install

  此處加sudo是因為需要向某個目錄底下寫文件,需要管理員帳戶

  8、sudo make install_lib

  OK

  這時候在目錄/opt/skyeye/下存在下面的目錄

  bin conf include info lib testsuite

  bin目錄下存放的是skyeye的二進位的程序.

  mknandflashdump : 用來製作nandflash的鏡像文件

  skyeye :skyeye的命令行應用程序

  Skyeye-gui: skyeye的圖形應用程序

  uart_instance : 被skyeye調用的應用程序,功能為通過一個xterm終端來顯示串口的輸出

  conf目錄存放了針對已經支持的目標板的一些配置文件

  include目錄存放了skyeye開發插件時所用到的頭文件

  info目錄存放了info格式的文檔

  Lib目錄存放了skyeye的核心庫libcommon.so和其他一些以動態庫存在的插件

  testsuite目錄存放了一個簡單的測試用例

  9、skyeye

  在/opt/skyeye/testsuite下有個目錄arm_hello

  skyeye –e vmlinux –c skyeye.conf 啟動arm-linux

  還可以把bin下的skyeye拷到/usr/bin中,這樣就可以不進目錄了

  9,start,這個命令啟動,但是有問題,提示配置文件skyeye.conf沒有配置

  這樣在/opt/skyeye/testsuite/arm_hello下,執行skyeye->start->skyeye -e arm_hello

  這時出現uart-instance窗體,

  根據skyeye的使用手冊,輸入run測試,此處的run是在ubuntu的終端輸入的,不是uart-instance

  此時會在uart-instance中出現一堆helloworld

  成功了!!!!!!!!


[火星人 ] skyeye在ubuntu上配置全過程已經有608次圍觀

http://coctec.com/docs/linux/show-post-50708.html