[Gpephone-devel-ch] 求助:用ScratchBox 编译 GPE Phone Edition时遇到的问题

YU Yijun RD-ILAB-PEK yijun.yu at orange-ftgroup.com
Wed Jul 18 08:36:53 CEST 2007


Ê×ÏÈ×£ºØÄãÄܹ»Ë³ÀûµÄ½«¹¤¾ßÁ´¼¯³Éµ½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¡ª¡ªÕýÈ·
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/. <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ÈÕ





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linuxtogo.org/pipermail/gpephone-devel-ch/attachments/20070718/b7a61866/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure
Type: application/octet-stream
Size: 813285 bytes
Desc: configure
Url : http://lists.linuxtogo.org/pipermail/gpephone-devel-ch/attachments/20070718/b7a61866/attachment-0001.obj 


More information about the Gpephone-devel-ch mailing list