我在debian4上交叉编译dbus-1.0.2出错 config.log在附件. 将.tar删掉. 在./configure时的错误信息是: ........ checking abstract socket namespace... (cached) yes checking for XML_ParserCreate_MM in -lexpat... no checking for pkg-config... /usr/bin/pkg-config checking for libxml-2.0 >= 2.6.0... configure: error: No XML library found, check config.log for failed attempts 我安装了libxml.tar.bz2 啊, 解压出...
by klutercoco - 嵌入式开发 - 2009-06-20 13:33:47 阅读(2217) 回复(1)
这篇主要是写dbus应用程序的测试过程遇到的各种问题及解决方法 ####15th,Apr 自己写好makefile,编译通过,生成test_dbus 然后把test_dbus拷到板上/bin,启动,运行 显示找不到libdbus-1.so.3 从/opt/eldk/ppc_4xxFP/usr/lib/libdbus-1.so.3拷贝到板上的rootfs (这样不行,因为那是一个链接文件,应该把三个动态链接库都拷过去) 再次运行test_dbus,出错: process 795: D-Bus library appears to be incorrectly set up; failed to...
上个礼拜六将dbus交叉编译成功, 这个礼拜主要是将测试程序在开发板上跑起来. 1. 交叉编译源文件, 例如test.c 编译过程中主要有2个问题, 1个是header file, 1个是dbus动态库的引用. 写一个Makefile解决 例如: #Makefile CC=arm-unknown-linux-gnu-gcc CFLAGS=-Wall -g -shared #compiler args #include header file CFLAGS += -I/home/songys/dbus/lib/include \ -I/home/songys/dbus/lib/include/glib-2.0 \ -I/home/songys/db...
我前2天交叉编译dbus成功了 现在编译一个简单的测试程序, 好不容易把dbus动态链接库的问题解决了, 现在又报个莫名其妙的错误: /home/songys/gcc-4.0.2-glibc-2.3.5/arm-unknown-linux-gnu/bin/../lib/gcc/arm-unknown-linux-gnu/4.0.2/../../../../arm-unknown-linux-gnu/lib/crt1.o: In function `_start': init.c:(.text+0x30): undefined reference to `main' collect2: ld returned 1 exit status /gcc-4.0.2-glibc-2.3.5/ar...
交叉编译dbus,出现这样的错误 /gcc-4.1.1-glibc-2.3.2/arm-9tdmi-linux-gnu/lib/gcc/arm-9tdmi-linux-gnu/4.1.1/../../../../arm-9tdmi-linux-gnu/bin/ld: Scrt1.o: No such file: No such file or directory collect2: ld returned 1 exit status make[2]: *** [dbus-daemon] 错误 1 不知道如何解决,哪位知道呢?请指导下
预安装vmware6.0, debian4.0 linux OS 配置IP, samba, telnet等网络服务 安装包命令: ./configure CC=arm-unknown-linux-gnu-gcc --prefix=/home/qudc/nfs --host=arm-linux --cache-file=arm-linux.cache 指定交叉编译工具 指定安装路径 指定目标平台 make make install 1. 把"export PATH=$PATH:/home/qudc/gcc-4.0.2-glibc-2.3.5/arm-unknown-linux-gnu/bin (不要加/)" 加入/home/qudc/...
我看了网上有些朋友在编译dbus-example.c 的时候有各种各样的错误,也有一些朋友给出了解决方式,但写的很冗余。现给出一种简单的解决方式: gcc -I/usr/include/dbus-1.0/ -I/usr/lib/dbus-1.0/include/ -ldbus-1 dbus-example.c -o dbus-example.o 错误的原因通常有2: 少了第二个头文件,少了跟动态库 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43206/showart_1800319.html
这是以前学习dbus时候写的使用dbus API来接收消息的一个比较全的例子,目的是熟悉dbus的c api的功能。今天又温习了一下,贴出来永久保留:), 有时间把原理写下,kde4都用它了,应该很重要。 /** * the demo is to demonstrate the whole process of setting up * a dbus message loop manually. for simplicity, we connect to * session bus instead of coding a server from the grand up. * the best of dbus is that w...
[code]LIBPGSQL = -L../../lib/linux_32/ -L/usr/local/pgsql/lib/ INCPGSQL = -I../../include/ -I/usr/local/pgsql/include/ LNKPGSQL = -lhcnetsdk -lpq VPATH = $(subst : ,:,$(SUBDIR))./ MDETECT_SOURCE=hkvs_mdetect.cpp CFLAGS = -Wall -g -O2 LIBPATH = ../../lib/linux_32/ LIBS = -lhcnetsdk MDETECT_EXE =hkvs_mdetect all:$(MDETECT_EXE) .c: $(CCX) $(CFLAGS) $< -o $@ hkvs_mdetect: hkvs_m...
运行时告我如下错误: alloc.h:29:error:conflicting types for 'malloc' alloc.h:30:error:conflicting types for 'calloc' 小弟我不知道怎么修改,请大家帮帮忙! alloc.h 的代码如下: /* * alloc.h -- memory allocation defines for cluster * * $Header: /usr/src/local/conn/cluster/RCS/alloc.h,v 1.8 1993/01/20 19:00:40 stolcke Exp $ * $Log: alloc.h,v $ * Revision 1.8 1993/01/20 ...