最近在研究 dbus
Gentoo 安裝是很簡單啦,就是下一個
#emerge dbus
就可以了
我在寫第一隻小程式的時候,竟然少一個 『dbus-arch-deps.h』
我本來將 dbus 的 tar 解開,然後丟進去 /usr/include/dbus-1.0/dbus 下就可以 compile
因為以為是 Gentoo 有問題,就在那邊的 Bugs 開了一個dbus 0.23.4 lost include file 『dbus-arch-deps.h』
結果人家說 duplicate 就算了.
而且我的用法還是錯的
要用 bug 80314 的一段話
errr.. I’m both wright and wrong. Everything is installed fine so long as you use pkg-config as said by foser. Don’t spank me, I’m an ex WIN32 developer.. I was not aware that pkg-config existed. Anyways g++ test.cpp -o test `pkg-config dbus-1 –libs –cflags` works correctly.
我因為是用 kdevelop 在寫程式,所以在
Project Optoon -> Compile Options -> C -> Cflags 內 加上 `pkg-config dbus-1 –libs –cflags`
link 的時候記得加上 -ldbus-1 就可以了….
這個故事告訴我們,亂玩是會丟臉的 Orz
On this day..
- 台鐵又出事了.... - 2006
- 大陸可以收看的 Live Stream.... - 2006
- Linux Nvidia Linux Driver - 2005





1 response so far ↓
Shyng // 十一月 13, 2006 at 2:16 下午
Mozilla Firefox 2.0 on
Windows XP
Using
大大,我最近也在研究Dbus,但看了他的文件,也試了一些sample code,卻總是出現
Name Error (Connection 『:1.7″ is not allowed to own the service 『test.method.server』 due to security policies in the configuration file)
但我看D-Bus Tutorial這裡並沒有提到 security policies的相關資訊,不知大大有沒有相關的資訊可供我參考呢??
謝謝
[回應]
Leave a Comment