1. 程式人生 > >gconf-dbus-2.6移植筆記

gconf-dbus-2.6移植筆記

1.設定環境變數
export LC_ALL=en_US
export TOP_DIR=$PWD/work/source
export BUILD_ROOT=/work      #安裝的工作目標
export DEFAULT_DIST_DIR=$BUILD_ROOT/usr
export PATH=$PATH:/usr/bin/arm/iwmmxt_le/bin/:/usr/bin/cee/host/bin/:$BUILD_ROOT/usr/bin   #交叉編譯工具路徑

2.生成Makefile檔案
CC=iwmmxt_le-gcc CFLAGS="-g -O2 -I/work/usr/include -I/work/usr/lib/glib-2.0/include " LDFLAGS="-L/work/usr/lib -lintl" ./configure --prefix=$BUILD_ROOT/usr --host=arm-linux
出錯:config.status: error: cannot find input file: examples/Makefile.in
由於example內原始檔不存在,所以touch Makefile.in 以便編譯過
再生成Makefile檔案

3.make
出錯:
make[2]: Entering directory `/opt/work-app/source/gconf-dbus-2.6.4.15/examples'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/opt/work-app/source/gconf-dbus-2.6.4.15/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/work-app/source/gconf-dbus-2.6.4.15'
make: *** [all] Error 2
不理會,ls gconf/.libs/ 檢視需要的檔案都已經生成。

make install

出錯:
Making install in examples
make[1]: Entering directory `/opt/work-app/source/gconf-dbus-2.6.4.15/examples'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory `/opt/work-app/source/gconf-dbus-2.6.4.15/examples'
make: *** [install-recursive] Error 1
不用理。需要的檔案已經安裝成功。


4.把工作區安裝的目標檔案copy到要rootfs裡
1). 後端庫檔案
[

[email protected] lib]#cp gconf-dbus/ -fr /rootfs/work/usr/lib -fr 
/lib/gconf-dbus/2/
libgconfbackend-oldxml.a   libgconfbackend-oldxml.so  libgconfbackend-xml.la
libgconfbackend-oldxml.la  libgconfbackend-xml.a      libgconfbackend-xml.so

2). gconf庫檔案
[[email protected] lib]#cp libgconf* /rootfs/work/usr/lib -fr

 libgconf-2.la
 libgconf-2.so -> libgconf-2.so.4.1.0
 libgconf-2.so.4 -> libgconf-2.so.4.1.0
 libgconf-2.so.4.1.0
 libgdk-1.2.so.0 -> libgdk-1.2.so.0.9.1
 libgdk-1.2.so.0.9.1
3). 複製生成的服務例程檔案
[[email protected] libexec]# cp gconfd-2 /rootfs/work/usr/bin/ -fr 
4).複製etc檔案
[[email protected] etc]# cp gconf/ /rootfs/work/usr/etc/ -fr
進入安裝區:usr/share/dbus-1/services 複製dbus 服務配置檔案 (很重要)
[[email protected] services]# cp gconf.service /rootfs/work/usr/share/dbus-1/services/ -fr


5.修改配置檔案 修改可寫區域
vi /rootfs/work/usr/etc/gconf/2/path
# Now see where users want us to look - basically the user can stick arbitrary
# sources in a ~/.gconf.path file and they're inserted here
include "${HOME}/.gconf.path"    =====>"/jffs2/.gconf.path"
# Give users a default storage location, ~/.gconf
xml:readwrite:${HOME}/.gconf     =====>"/jffs2/.gconf.path"
6.建立只讀區域的資料夾  gconf.xml.mandatory 和  gconf.xml.defaults  (很重要)
根據配置可以看出
# Look first in systemwide mandatory settings directory
xml:readonly:/work/usr/etc/gconf/gconf.xml.mandatory
...
# Finally, look at the systemwide defaults
xml:readonly:/work/usr/etc/gconf/gconf.xml.defaults
必須建立只讀區域的資料夾  gconf.xml.mandatory 和  gconf.xml.defaults 以免後面出錯 gconfd-2無法啟動
[[email protected] gconf]# mkdir gconf.xml.mandatory
[[email protected] gconf]# mkdir gconf.xml.defaults

7.進入原始檔安裝目錄下tests目錄,執行make 生成可執行測試程式
[[email protected] gconf-dbus-2.6.4.15]# cd tests/
[[email protected] tests]# make
[[email protected] .libs]# ls
testaddress  testchangeset  testencode  testlisteners    testschemas
testbackend  testdirlist    testgconf   testpersistence  testunique
[[email protected] .libs]# cp testgconf /rootfs/work/usr/bin/ -fr

8.製作映象
/opt/montavista/cee/host/bin/mkcramfs rootfs/ rootfs.img

9.啟動 進入終端
bash-2.05a# gconfd & 後臺啟動服務例程
bash-2.05a# testgconf 啟動測試
正常,大功告成!

相關推薦

gconf-dbus-2.6移植筆記

1.設定環境變數export LC_ALL=en_USexport TOP_DIR=$PWD/work/sourceexport BUILD_ROOT=/work      #安裝的工作目標export DEFAULT_DIST_DIR=$BUILD_ROOT/usrexpo

hi3531A tslib,qt4.6.2移植筆記(二)

重新總結下: 1.交叉編譯tslib記得新增海思編譯選項: -mcpu=cortex-a9 -mfloat-abi=softfp -mfpu=neon -mno-unaligned-access -fno-aggressive-loop-optimizations 去掉ts

筆記 猿課2.6-2.7

linux2.6 linux環境變量which ls 查看ls位置/bin/ls --color=auto /var/ == ls /var/ 可以理解為ls的小名alias s=‘ls -alt /var/’啟小名vi .bashrc讓別的終端也可以用自定義快捷鍵echo $PATH 看which找哪裏 P

易學筆記-第2章:spring中的Bean/2.6 環境引數和佔位符

第2章:spring中的Bean/2.6 環境引數和佔位符/2.6.1 環境引數/2.6.1.1 概念 概念與設定 指的是為了區分不同的環境而設定的引數,比如開發環境和生產環境   第2章:spring中的Bean/2.6 環境引數和佔

imx6的qt5.6.2移植

一 準備工作: 1.主機環境:ubuntu14.04 2.交叉編譯器:arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 (www.veryarm.com/arm-none-linux-gnueabi-gcc) 3.

2.uboot和系統移植-第6部分-2.6.uboot原始碼分析2-啟動第二階段》

《2.uboot和系統移植-第6部分-2.6.uboot原始碼分析2-啟動第二階段》 第一部分、章節目錄 2.6.1.start_armboot函式簡介 2.6.2.start_armboot解析1 2.6.3.記憶體使用排布 2.6.4.start_armboot解析2 2.6.5.s

11月23日python筆記(python基礎2.6-3.0)

2.6 使用for迴圈遍歷檔案開啟檔案: 需要藉助內建函式open()open(...)open(name[, mode[, buffering]]) -> file object name:檔名 mode 開啟方式(讀寫、二進位制等) Open a file using the file() typ

linux-2.6.32移植到qq2440開發板手冊

虛 擬 機: RedHat 9.0交叉編譯器: arm-linux-gcc-4.3.2開 發 板: QQ2440V3本次移植用到的核心原始碼包為: linux-2.6.32.2-mini2440-20110413.tar.gz。1.修改頂層的 Makefile:ARCH ?= armCROS

為知筆記 for Mac 2.6.5 破解版下載 — 雲服務筆記軟體

軟體介紹 為知筆記 for Mac是一款雲服務的筆記軟體,同時也是一款基於筆記的團隊協作工具。 使用者能夠隨時隨地的記錄下有價值的資訊,也可以隨時隨地檢視筆記資訊。 所有資料在電腦、手機、平板、網頁都會同步更新,保持一致。利用為知筆記的企業服務,團隊之間可以通過@別人、評論、編輯等功能實現高效溝通和協作。

2018-12-3python筆記(2.5-2.6模塊使用)

python2.7 roo int 字符 str bashrc python筆記 library nes python的強大之處在於它有很多的模塊和方法比如 string os sys 模塊 模塊是Python組織代碼的基本方式。一個Python腳本可以單獨運行,也可以導入

學習筆記2.6——P2P應用

P2P應用 P2P結構的特點      沒有伺服器 任意端系統間直接通訊 有很大的動態性和隨機性            *節點階段性接入Internet            *節點可能更換IP地址 檔案分發 C/S架構與P2P架構在檔案分發上的效能對

Python爬蟲(入門+進階)學習筆記 2-6 Scrapy的Request和Response詳解

上節課我們學習了中介軟體,知道了怎麼通過中介軟體執行反反爬策略。本節課主要介紹Scrapy框架的request物件和response物件 通常,Request物件在爬蟲程式中生成並傳遞到系統,直到它們到達下載程式,後者執行請求並返回一個Response物件,

hfrk2410_a1.1開發板移植linux-2.6.32.27--網絡卡篇(cs8900)

硬體:恆豐銳科開發板hfrk2410_A1.1 軟體:linux-2.6.32.27 cs8900網絡卡移植: 將cs8900驅動原始碼檔案拷貝至drivers/net/,修改drivers/net/Kconfig檔案 config ARM_CS8900

《Linux核心設計與實現》讀書筆記(十五)- 程序地址空間(kernel 2.6.32.60)

程序地址空間也就是每個程序所使用的記憶體,核心對程序地址空間的管理,也就是對使用者態程式的記憶體管理。 主要內容: 地址空間(mm_struct) 虛擬記憶體區域(VMA) 地址空間和頁表 1. 地址空間(mm_struct) 地址空間就是每個程序所能訪問的記憶體地址範圍。 這個地址

(crm筆記2-6)使用者登入問題之cookie記住密碼

使用者登入問題之cookie記住密碼 1、需求       這個功能其實隨處可見,任何一個網站都需要在使用者登入後為使用者記住密碼,哪怕使用者不用記住,你也要提供這個功能,而且需求很簡單,只要在使用者登入成功後,根據

linux 2.6.24.4在S3C2410上的移植(核心配置)(基於GEC2410)

移植完u-boot後,接下來就是linux核心了.以下記錄我移植的步驟,如有問題,歡迎指正.1.下載linux kernel原始碼到http://www.kernel.org/下載linux核心原始碼,這裡我們使用2.6.24.4的核心.解壓linux-2.6.24.4.ta

[cocos2dx筆記017]cocos2dx 2.2.6 lua的型別轉換

安裝了vs2012再配置上BabeLua外掛(對於vs2015,vs2013有對應的版本),就可以斷點除錯了,應該算是我見過的最牛的lua除錯環境,再加上vs,就可以哈哈了。 在使用cocos2dx 2.2.6,用的是cocostudio 1.6編輯UI(雖然還有很多不足,但已經可以勝任很多工作了)。 l

Linux-2.6.32.2核心在mini2440上的移植(四)---根檔案系統製作(1)

ROMFS MTD (C) 2007 Red Hat, Inc.msgmni has been set to 109 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered

友善之臂最新版mini2440學習筆記——u-boot 1.1.6移植(一)

從本文開始,將記錄博主在進行u-boot 1.1.6移植過程中遇到的問題。本文將涉及兩個問題: 1. u-boot中新增開發板 2. u-boot第一階段啟動程式碼 1. u-boot中新增開發板 1.1. Makefile更改 1.1.1. 增加反彙編檔案輸出 Makef

[2.6]Spark SQL 操作各種資料來源筆記

參考 spark sql操作各種資料來源的資料流轉 : 各種資料來源的輸入 => RDD(lines) =>RDD(Rows) => DataFrame(註冊臨時表) => 分析與過濾(各種sql操作、機器學習等)=