[Gpephone-devel-ch] 求助:用ScratchBox 编译 GPE Phone Edition时遇到的问题
wile
wei_er_cn at 163.com
Thu Jul 19 16:44:08 CEST 2007
义军:
感谢你的回复。 不断的挫折会让信心受到了一些打击,你的来信则让我重拾信
心。
我此前集成的工具链,并非厂家真正使用的工具链,所以能侥幸过关。
下午我开始集成他们现在使用的工具链,没有成功。我再努力2天,看是否能完全
成功,如果不能,到时我再贴上来向您讨教。
我把你给我的./configure放到现在的target中执行。目前仍然有一些小问题,我
明天继续解决。错误如下:
/*-----------------------------------
----*/
checking for pkg-config... /scratchbox/tools/bin/pkg-config
checking for dbus-glib-1 >= 0.60... Package dbus-glib-1 was not found in
the pkg-config search path.
Perhaps you should add the directory containing `dbus-glib-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-glib-1' found
configure-yijun: error: Library requirements (dbus-glib-1 >= 0.60) not
met; consider adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.
[sbox-wile-target-test1: /scratchbox/down/gconf-dbus] > cd ..
/*-----------------------------------
----*/
按照doc/install的指导,dbus只需要安装2个库就行了,分别是
dbus-0.61.tar.gz和gconf-dbus。现在提示需要dbus-glib-1.pc,这个东西应该是
dbus-glib-devel-*提供的,所以,我们在这里确实需要一个新的包对吗?
革命尚未开始,我需要更多努力阿。
祝晚安。
周围
2007年7月18日晚
在 2007-07-18三的 08:36 +0200,YU Yijun RD-ILAB-PEK写道:
> 首先祝贺你能够顺利的将工具链集成到scratchbox,这是我最为担心的一步。在
> 我们的测试中,不是所有的工具链都能够做到这一点。
>
>
>
> 3中你解决出错的办法也是我们这儿做的。目前我们也没有在scratchbox中运行
> autogen命令,我们也是在x86上运行autogen命令生成configure,然后再
> scratchbox上configure. 今后我们可能在所有的发行包中包含configure脚本。
> 当然我想也可以试试如何在scratchbox上直接运行autogen。我猜测可能需要安
> 装一些额外的package.我会就这个问题问问florian.
>
>
>
> 4.我们目前为什么没有选择Gtk+2.10,是因为新版本的Gtk+采用了cario库,性能
> 在arm上有所下降。我们打算继续使用Gtk+2.6,但是将glib升级到高版本,因为
> 现在很多开源软件使用的高版本的glib.
>
>
>
> 5. 附件中是我们生成的configure.你可一试
>
>
>
> 6.我想你应该不能在scratchbox中测试gtk+程序。
>
>
>
> Regards
>
> YU Yijun
>
>
>
>
> ______________________________________________________________________
> From:gpephone-devel-ch-bounces at linuxtogo.org
> [mailto:gpephone-devel-ch-bounces at linuxtogo.org] On Behalf Of wile
> Sent: 2007年7月18日 9:18
> To: gpephone-devel-ch at linuxtogo.org
> Subject: [Gpephone-devel-ch] 求助:用ScratchBox编译GPE Phone Edition时
> 遇到的问题
>
>
>
>
> 向 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
>
> 这个问题就查了我一天,无奈之下,我只有N到我们的邮件列表上面来了,各位
> 前辈给点建议,应该从那方面着力解决?
>
>
> 问题:
> 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日
>
>
>
>
>
>
More information about the Gpephone-devel-ch
mailing list