[Gpephone-devel-ch] 求助:用ScratchBox 编译 GPE Phone Edition时遇到的问题
wile
wei_er_cn at 163.com
Wed Jul 18 03:17:56 CEST 2007
向 Zhao Shichang 前辈问好^v^
先用流水帐介绍一下我目前的进度,问题在后面列出:
流水帐:
在yijun的建议下,我从昨天上午开始用ScratchBox编译GPE Phone
我用的BSP厂商给我的工具链是:arm-linux-gcc-3.4.5-glibc-2.3.3(50M左右,我
没有好的方法上传)
1、看了好久的官方主页和好多牛人的blog,添加工具链到ScratchBox就花了一上
午。测试hello world——正确
2、安装build_extra_1中的libxml2、libxslt、zlib——很顺利
3、第一个问题出现在编tslib的时候
tslib需要用autogen.sh来生成configure.完整的出错信息如下:
/*-----------------------------------
-------*/
[sbox-wile-target-test1: /scratchbox/down/tslib-1.0] > ./autogen.sh
/scratchbox/tools/share/aclocal/pkg.m4:5: warning: underquoted
definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending%
20aclocal
configure.ac:26: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:27: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:28: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:29: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf2.50: /scratchbox/tools/autotools/autoconf2.59/bin/autoconf
failed with exit status: 1
/*-----------------------------------
-------*/
花了一下午,最后,我的解决办法:解不了就逃。
理由:管它是什么构架下的代码生成的configure文件,都是可以用来
作./configure的。所以,我跑到x86下面,用autogen.sh生成configure,然后在
sbox里面./configure。竟然侥幸过了。
4、接下来很顺利,编完了build_extra_1、build_x、build_gtk
我心里乐死了,嘴上不停地自言自语,神阿,这些人太NB拉
注:GTK+我选择了2.10而非2.6
5、严重的问题出现在 build_extra_2中的build extra gconf-dbus ""
"gconf-dbus.svn20061129.patch"
我从以前用过的open embedded中的down中找出了gconf-dbus,它
的名字居然有这么长
trunk_developer.imendio.com_.svn.gconf-dbus__20070512.tar.gz,解压后叫做
trunk。
打上补丁gconf-dbus.svn20061129.patch
又是一个需要用./autogen.sh编译的家伙,想都没有想就跑到
x86下面去编译。完整的错误信息如下:
/*-------------------------------------------------------------------------*/
wile at wile-desktop:/scratchbox/down/trunk$ ./autogen.sh
**Error**: You must have `glib' installed to compile
GConf D-Bus.//这个东西我安装了的
**Error**: You must have `gtk-doc' installed to compile
GConf D-Bus.//这个东西我主机当然也有
/*-------------------------------------------------------------------------*/
不知道怎么解,只好回到ScratchBox继续./autogen.sh,同样错
误一堆,完整的错误信息如下:
/*-----------------------------------
-----------------*/
I am going to run ./configure with no arguments - if you wish
to pass any to it, please specify them on the ./autogen.sh command line.
processing .
Creating ./aclocal.m4 ...
Running gettextize... Ignore non-fatal messages.
Copying file mkinstalldirs
Copying file po/Makefile.in.in
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
Making ./aclocal.m4 writable ...
Running libtoolize...
You should add the contents of `/usr/local/share/aclocal/libtool.m4' to
`aclocal.m4'.
Running gtkdocize...
Running intltoolize...
You should add the contents of
'/scratchbox/devkits/doctools/share/aclocal/intltool.m4' to
'aclocal.m4'.
Running aclocal-1.7 ...
aclocal: configure.in: 41: macro `AM_PROG_LIBTOOL' not found in library
aclocal: configure.in: 229: macro `AM_GLIB_GNU_GETTEXT' not found in
library
Running autoheader...
Running automake-1.7 --gnu ...
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes
AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using
aclocal).
Use of uninitialized value in pattern match (m//)
at /scratchbox/tools/autotools/automake-1.7/bin/automake-1.7 line 4364.
backends/Makefile.am:7: LDAP_SUPPORT does not appear in AM_CONDITIONAL
backends/Makefile.am:45: LDAP_SUPPORT does not appear in AM_CONDITIONAL
backends/Makefile.am:11: Libtool library used but `LIBTOOL' is undefined
backends/Makefile.am:11:
backends/Makefile.am:11: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
backends/Makefile.am:11: to `configure.in' and run `aclocal' and
`autoconf' again.
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
gtk-doc.make:43: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
gtk-doc.make:136: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
examples/Makefile.am:7: GTK does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
gconf/Makefile.am:27: GTK does not appear in AM_CONDITIONAL
gconf/Makefile.am:102: OS_WIN32 does not appear in AM_CONDITIONAL
gconf/Makefile.am:142: USE_SYSTEM_BUS does not appear in AM_CONDITIONAL
gconf/Makefile.am:33: Libtool library used but `LIBTOOL' is undefined
gconf/Makefile.am:33:
gconf/Makefile.am:33: The usual way to define `LIBTOOL' is to add
`AC_PROG_LIBTOOL'
gconf/Makefile.am:33: to `configure.in' and run `aclocal' and `autoconf'
again.
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/scratchbox/tools/autotools/automake-1.7/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
Running autoconf ...
autoconf: Undefined macros:
configure.in:100:AC_ARG_WITH(sysconfsubdir,
AC_HELP_STRING([--with-sysconfsubdir],
configure.in:40:AC_LIBTOOL_WIN32_DLL
Running ./configure --enable-maintainer-mode
--enable-compile-warnings ...
loading cache ./config.cache
./configure: line 536: syntax error near unexpected token `config.h'
./configure: line 536: `AM_CONFIG_HEADER(config.h)'
/*-----------------------------------
---------------------------*/
这么多的错误,看来手工调整是没有什么必要了,是哪里出错了?我查了一下我的
ScratchBox中的libtool相关版本信息如下:
autoconf 2.5.9
automake 1.8.5
libtool 1.5.24
aclocal 1.8.5
pkg-config 0.15.0
这个问题就查了我一天,无奈之下,我只有貼到我们的邮件列表上面来了,各位前
辈给点建议,应该从那方面着力解决?
问题:
1、无法在ScratchBox里面./autogen.sh产生configure。问题可能的方面是?
2、安装完gtk+之后,我想测试一下是否可以显示window,难道我不能在
ScratchBox里面测试Gtk+?请前辈们教教我^-^
/*-测试1--------------------------------------*/
丢了一个经过验证可以正常显示的游戏《贪食蛇》上来,
./picc
(picc:16277): Gtk-WARNING **: cannot open display:
/*-测试2--------------------------------------*/
[sbox-wile-target-test1: /scratchbox/down/test/pic] > Xfbdev
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
/*-------------------------------------------*/
夜深了,今天到此为止,明天继续磨这个问题。祝大家晚安!!
周围
2007年7月18日
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxtogo.org/pipermail/gpephone-devel-ch/attachments/20070718/b345a55d/attachment-0001.htm
More information about the Gpephone-devel-ch
mailing list