StupidBeauty
Read times:1004Posted at:Sat Mar 3 22:04:41 2012
- no title specified

编译tracker:undefined reference to `dbus_connection_setup_with_g_main'

今天编译tracker0.12.10时,configure脚本运行之后正常退出,但是在编译时出现咯以下的错误:

……

CXXLD tracker-miner-fs

tracker_miner_fs-tracker-power-hal.o: In function `tracker_power_init':

/Data/Main/Temp/tracker-0.12.10/src/miners/fs/tracker-power-hal.c:141: undefined reference to `dbus_connection_setup_with_g_main'

collect2: ld returned 1 exit status

make[5]: *** [tracker-miner-fs] 错误 1

根据经验来看,应当是链接器找不到某個链接庫咯,于是一查,知道咯,是缺少dbus-glib-1。于是就运行pkg-config找到dbus-glib-1的链接器参数,再在执行make的时候加到参数中去就行咯。

pkg-config:

bash-4.0# pkg-config --libs dbus-glib-1

-L/lib -ldbus-glib-1 -ldbus-1 -lpthread -lrt -lgobject-2.0 -lglib-2.0

bash-4.0#

make:

make CXXFLAGS+="-L/lib -ldbus-glib-1 -ldbus-1 -lpthread -lrt -lgobject-2.0 -lglib-2.0"

终于成功编译咯。

这個问题,应当是tracker自己的配置脚本㝍得不完善导致的吧。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4