LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1026|回复: 2

DirectFB使用求救!!!

[复制链接]
发表于 2006-4-4 15:16:32 | 显示全部楼层 |阅读模式
我从DFB网站上下载0.9.24版本安装文件安装,编译运行tutorials的例子程序.但是总是有下面的错误信息:
/tmp/ccIx9sTf.o(.text+0x58): In function `main':
/home/dang/prog/dfb/ttt.c:29: undefined reference to `DirectFBInit'
/tmp/ccIx9sTf.o(.text+0x74):/home/dang/prog/dfb/ttt.c:32: undefined reference to `DirectFBCreate'
collect2: ld 返回 1
不知道为什么,请大侠们指导.
我的编译语句: gcc -g ttt.c -I/usr/local/include/directfb -L/usr/local/lib -o ttt
发表于 2006-4-4 16:22:31 | 显示全部楼层
这样使用gcc -g `pkg-config --cflags --libs` ttt.c -o ttt
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-4 16:48:44 | 显示全部楼层
好了,我现在能生成ttt可执行文件了. 但是运行程序,打开framebuffer设备时没找到设备. 我的是PC机,赛扬cpu ,nNIDIA GeForce显卡. 怎样添加framebuffer设备呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表