ubuntu9 10配置編譯xawtv 3 95

2021-10-01 06:31:00 字數 2234 閱讀 9978

2.解壓,配置

tar -xzf xawtv-3.95.tar.gz

cd xawtv-3.95/

./configure --prefix=$pwd/tmp

make

make install

3.出現的錯誤

1)console/fs.h找不到

console/fs.h:2:20: error: fslib.h: no such file or directory

解決:sudo apt-get install libfs-dev

sudo apt-get install libxaw7-dev

安裝完成後make依然出錯

接著查詢fslib.h在**

直接修改console/fs.h第二行為: #include 即可

或者在配置階段使用./configure --prefix=$pwd/tmp --x-includes=/usr/include/x11/fonts/

2)asm/page.h找不到

console/fbtools.c:24:22: error: asm/page.h: no such file or directory

console/matrox.c:12:38: error: asm/page.h: no such file or directory

把asm/page.h修改為sys/user.h即可。

3)console/fs.o: in function `fs_open':

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:226: undefined reference to `fslistfonts'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:235: undefined reference to `fsopenbitmapfont'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:236: undefined reference to `fsfreefontnames'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:240: undefined reference to `fsqueryxinfo'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:243: undefined reference to `fsqueryxextents16'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:244: undefined reference to `fsqueryxbitmaps16'

console/fs.o: in function `fs_connect':

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:196: undefined reference to `fsopenserver'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:198: undefined reference to `fsservername'

/work/ming/disanqi/2_camera_wifi_3g_alsa_video/xawtv-3.95/console/fs.c:201: undefined reference to `fsservername'

collect2: ld returned 1 exit status

make: *** [console/fbtv] error 1

在makefile裡面新增 -lfs

接著make成功,最後make install

在tmp目錄下看到編譯出來的xawtv以及一些庫,文件

參考:

Ubuntu9 10 中核心編譯過程

linux 下增加新的系統功能呼叫在 linux 環境下為 os增加乙個新的系統功能呼叫。功能是 把使用者輸入的整數乘以 2後回。這份實驗報告是在第乙個程式設計作業時,一邊在 ubuntu9.10 上做實驗,一邊整理的。在這裡只是將我在 ubuntu9.10 下的整個操作過程描述一下 1.linux...

ubuntu 9 10 下配置 tftp 教程

1 安裝tftp的server和client,還有xinetd sudo apt get install xinetd tftpd hpa tftp hpa 2 xinetd會建立目錄 etc xinetd.d 在這個目錄下建立新檔案 tftpd sudo touch tftpd 3 編輯 sudo...

Ubuntu9 10 中核心編譯過程(二)

8.編譯核心 sudo make 使用時間大約是80 分鐘左右,下面是 乙個截圖 9.安裝模組輸入命令 sudo make modules install 10.安裝核心,直接輸入命令 sudo make install 11.生成映象檔案 輸入命令 sudo mkinitramfs o initr...