[Gpephone-devel-ch] 求助:用ScratchBox 编译 GPE PhoneEdition时遇到的问题
YU Yijun RD-ILAB-PEK
yijun.yu at orange-ftgroup.com
Thu Jul 19 04:31:46 CEST 2007
¼ì²éÒ»ÏÂÄãÊÇ·ñÕýÈ·°²×°ÁËdbus. Dbus °üÓ¦¸ÃͬʱÉú³ÉÁËlibdbusºÍlibdbus-glib-1.»òÕßÊÇÄãµÄ»·¾³±äÁ¿PKG_CONFIG_PATHûÓÐÖ¸ÏòÕýÈ·µÄ·¾¶£¬Ó¦¸Ã½«Õâ¸ö±äÁ¿Ö¸Ïòlibdbus-glib-1.pcËùÔÚµÄĿ¼
>-----Original Message-----
>From: wile [mailto:wei_er_cn at 163.com]
>Sent: 2007Äê7ÔÂ19ÈÕ 22:44
>To: YU Yijun RD-ILAB-PEK
>Cc: gpephone-devel-ch at linuxtogo.org
>Subject: RE: [Gpephone-devel-ch]ÇóÖú£ºÓÃScratchBox ±àÒë GPE PhoneEditionʱ
>Óöµ½µÄÎÊÌâ
>
>Òå¾ü£º
> ¸ÐлÄãµÄ»Ø¸´¡£ ²»¶ÏµÄ´ìÕÛ»áÈÃÐÅÐÄÊܵ½ÁËһЩ´ò»÷£¬ÄãµÄÀ´ÐÅÔòÈÃÎÒÖØÊ°
>ÐÅ
>ÐÄ¡£
> ÎÒ´Ëǰ¼¯³ÉµÄ¹¤¾ßÁ´£¬²¢·Ç³§¼ÒÕæÕýʹÓõŤ¾ßÁ´£¬ËùÒÔÄܽÄÐÒ¹ý¹Ø¡£
> ÏÂÎçÎÒ¿ªÊ¼¼¯³ÉËûÃÇÏÖÔÚʹÓõŤ¾ßÁ´£¬Ã»Óгɹ¦¡£ÎÒÔÙŬÁ¦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£¬ÕâÊÇÎÒ×îΪµ£ÐĵÄÒ»²½¡£ÔÚ
>> ÎÒÃǵIJâÊÔÖУ¬²»ÊÇËùÓеŤ¾ßÁ´¶¼Äܹ»×öµ½ÕâÒ»µã¡£
>>
>>
>>
>> 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¨D¨DÕýÈ·
>> 2¡¢°²×°build_extra_1ÖеÄlibxml2¡¢libxslt¡¢zlib¨D¨DºÜ˳Àû
>> 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