?? readme.zh
字號:
2) 改變到新目錄, 然后運(yùn)行 "./configure": $ ./configure 3) 運(yùn)行下面的命令編譯并安裝 MiniGUI: $ make; su -c 'make install'; 4) 默認(rèn)情況下, MiniGUI 的函數(shù)庫將安裝在 `/usr/local/lib' 目錄中. 您應(yīng)該確保該目錄已經(jīng)列在 "/etc/ld.so.conf" 文件中. 并且在安裝之后, 要運(yùn)行下面的命令更新共享函數(shù)庫系統(tǒng)的緩存: $ su -c ldconfig 5) 如果要控制您的 MiniGUI 提供那些功能, 則可以運(yùn)行: $ ./configure --help 查看完整的配置選項(xiàng)清單, 然后通過命令行開關(guān)打開或者關(guān)閉某些功能. 例如, 如果您不希望 MiniGUI 使用 LoadBitmap 函數(shù)裝載 JPEG 圖片, 則可以使用: $ ./configure --disable-jpgsupport 6) 注意, 某些 MiniGUI 特色依賴于其它函數(shù)庫, 請確保已安裝了這些函數(shù)庫. 4.4 運(yùn)行 MiniGUI 的演示程序 "mde-1.3.x.tar.gz" 中包含了 MiniGUI 的綜合演示程序. 運(yùn)行之前, 應(yīng)該解開并編譯 mde-1.3.x.tar.gz 包: 1) 使用 "tar" 命令將軟件包解開到新的目錄. 2) 依次運(yùn)行 "./configure" 和 "make" 編譯演示程序. 4) 如果配置并安裝了 MiniGUI-Lite, 則應(yīng)該首先運(yùn)行服務(wù)器, 然后從服務(wù)器當(dāng)中 運(yùn)行其它演示程序. 編譯 MDE 將生成一個(gè) "mginit" 程序, 該程序?qū)⑻峁┮粋€(gè) 運(yùn)行于 MiniGUI-Lite 的虛擬控制臺: $ cd mginit $ ./mginit 5) 如果將 MiniGUI 配置為 MiniGUI-Threads, 則可以直接進(jìn)入某個(gè) 演示程序目錄直接運(yùn)行其中的程序, 比如: $ cd same $ ./same5. Linux 上的安裝及配置示例 本示例假定用戶使用的系統(tǒng)是 RedHat Linux 6.x 或以上發(fā)行版, 使用 Linux 內(nèi)核 2.2.xx 或者 2.4.xx, 用戶的目標(biāo)是運(yùn)行 MiniGUI-Threads (使用 MiniGUI Version 1.3.x). 步驟如下: 1) 確保您的 PC 機(jī)顯示卡是 VESA 兼容的. 大多數(shù)顯示卡是 VESA 兼容的, 然而某些 內(nèi)嵌在主板上的顯示卡可能不是 VESA 兼容的, 比如 Intel i810 系列. 如果顯示 卡是 VESA 兼容的, 就可以使用 Linux 內(nèi)核中的 VESA FrameBuffer 驅(qū)動程序了. 2) 確保您的 Linux 內(nèi)核包含了 FrameBuffer 支持, 并包含了 VESA FrameBuffer 驅(qū)動程序. RedHat Linux 6.x 發(fā)行版自帶的內(nèi)核中已經(jīng)包含了該驅(qū)動程序. 如果 使用自己編譯的內(nèi)核, 請檢查您的內(nèi)核配置. 3) 修改 /etc/lilo.conf 文件, 在您所使用的內(nèi)核選項(xiàng)段中, 添加如下一行: vga=0x0317 這樣, Linux 內(nèi)核在啟動時(shí)將把顯示模式設(shè)置為 1024x768x16bpp 模式. 如果您的 顯示器無法達(dá)到這種顯示分辨率, 可考慮設(shè)置 vga=0x0314, 對應(yīng) 800x600x16bpp 模式. 修改后的 /etc/lilo.conf 文件類似: boot=/dev/hda map=/boot/map install=/boot/boot.b prompt timeout=50 linear default=linux image=/boot/vmlinuz-2.4.2 vga=0x0317 ; 這一行設(shè)置顯示模式. label=linux read-only root=/dev/hda6 other=/dev/hda1 label=dos 4) 運(yùn)行 lilo 命令, 使所作的修改生效, 并重新啟動系統(tǒng). 5) 如果一切正常, 將在 Linux 內(nèi)核的引導(dǎo)過程中看到屏幕左上角出現(xiàn)可愛的 Linux 吉祥物 -- 企鵝, 并發(fā)現(xiàn)系統(tǒng)的顯示模式發(fā)生變化. 6) 按照第 4 節(jié)所講, 下載 libminigui-1.3.x.tar.gz, minigui-res-1.0.02.tar.gz, 以及 mde-1.3.x.tar.gz 等軟件包, 注意要安裝正確的版本. 7) 以 root 用戶身份安裝 minigui-res-1.3.x.tar.gz. 8) 在某個(gè)目錄下解開 libminigui-1.3.x.tar.gz, 并進(jìn)入新建的 libminigui-1.3.x 目錄. $ tar zxf libminigui-1.3.x.tar.gz $ cd libminigui-1.3.x 9) 依次運(yùn)行如下命令: $ ./configure $ make 10) 以 root 身份運(yùn)行 make install 命令: $ su - # make install 11) 修改 /etc/ld.so.conf 文件, 將 /usr/local/lib 目錄添加到該文件最后一行. 修改后類似: /usr/lib /usr/X11R6/lib /usr/i486-linux-libc5/lib /usr/local/lib 12) 以 root 身份執(zhí)行 ldconfig 命令: # ldconfig 13) 在新目錄中解開 mde-1.3.x.tar.gz, 并進(jìn)入新建目錄: $ tar zxf mde-1.3.x.tar.gz $ cd mde-1.3.x 14) 依次運(yùn)行如下命令: $ ./configure $ make 15) 進(jìn)入 same 目錄, 并執(zhí)行 same 程序: $ cd same $ ./same 16) 如果一切正常, 這時(shí)可以看到一個(gè)虛擬控制臺出現(xiàn)在屏幕上. 17) 如何關(guān)閉這個(gè)窗口, 不需要在這里贅述了吧. :)6. 開發(fā)歷史 見 README.7. 有關(guān)作者 見 README.9. 如果遇到問題 我們已經(jīng)在 lists.minigui.net 上建立了有關(guān) MiniGUI 開發(fā)和編程的三個(gè) 郵件列表。如果 你在使用 MiniGUI 的過程中遇到任何問題,或者有任何建議或 評論,可以向這些郵件列表發(fā)送郵件。這樣你將得到更多人的幫助。需要注意的是, 只有訂閱了郵件列表,才能向郵件列表發(fā)送消息。 * minigui-devel: MiniGUI 應(yīng)用軟件開發(fā)人員的郵件列表 訪問如下 Web 頁訂閱: http://lists.minigui.net/cgi-bin/mailman/listinfo/minigui-devel * minigui-users: MiniGUI 用戶的郵件列表 訪問如下 Web 頁訂閱: http://lists.minigui.net/cgi-bin/mailman/listinfo/minigui-users * minigui-ecos: eCos + MiniGUI 用戶的郵件列表 訪問如下 Web 頁訂閱: http://lists.minigui.net/cgi-bin/mailman/listinfo/minigui-ecos9. 版權(quán)信息 Copyright (C) 2002~2004, Beijing Feynman Software Technology Co., Ltd. Copyright (C) 1998~2002, Wei Yongming Portion copyright (C) 2000~2001, Zheng Xiang and others. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA10. 在商業(yè)或?qū)S邢到y(tǒng)中的使用 MiniGUI The edition you downloaded freely from our site may only be used to develop GPL (non-proprietary) Software. The COPYING file explains what you may or may not do with the free edition. If you are using MiniGUI for developing commercial, proprietary, or other software not covered by the terms listed in the COPYING file, you must have a commercial license for MiniGUI. Please see http://www.minigui.com/product/index.html for how to obtain this. If you are interested in the commercial MiniGUI licensing, please write to sales@minigui.com. Other mail can be sent to info@minigui.com.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -