我正在尝试从这里运行一个OpenGL示例:运行Debian Wheezy的Hummingboard上的https://github.com/robclark/kmscube。
我有除libgbm之外的所有必需的库。安装aptitude上的libgbm-dev给我留下了一些错误,例如"对`gbm_surface_release_buffer'的未定义引用"
在这里查看libgbm源:https://github.com/robclark/libgbm我注意到最新版本中添加了函数,所以我知道我需要从源代码重建这个库。
该库使用autoconfig工具
所以我运行了以下
libtoolize
aclocal
autoconf
autoheader
automake --force-missing --add-missing
libtoolize返回以下内容:
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add `LT_INIT' to configure.ac.
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Automake返回以下内容
Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
Makefile.am:1: The usual way to define `LIBTOOL' is to add `LT_INIT'
Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am:1: If `LT_INIT' is in `configure.ac', make sure
Makefile.am:1: its definition is in aclocal's search path.
libtoollize的输出不是很具描述性,为了使它成为那些文件的内容,我需要做些什么?
此外,我还必须对configure.ac文件进行更改 同 AC_INIT(gbm,2.69,test @ gmail.com) AM_INIT_AUTOMAKE(gbm,2.69)
添加文件NEWS,AUTHORS和ChangeLog
这似乎是一个不正确的过程,是不是有一种自动化的方法呢?
有人可以指导我建立这个图书馆吗?
答案 0 :(得分:1)
因此,在尝试构建项目时,我遇到了类似的错误 - 虽然我没有构建完整的OpenGL项目。以下是我为消除这些错误所采取的措施:
libtoolize: You should add the contents of the following files to aclocal.m4 ...
Makefile.am:1:Libtool库使用但是`LIBTOOL'未定义,这是一篇可以帮助您的帖子:
如果错误消失,请告诉我。祝你好运。