• androidimplementationxorgserver1.12.1 for android donexorgserver1.12.1issue.txt


    时间紧张,先记一笔,后续优化与完善。

        http://blog.csdn.net/llrraa2010/article/details/7669628

        configure: error: Package requirements (glproto >= 1.4.14 gl >= 7.1.0) were not met:

        No package 'glproto' found

        http://forums.freebsd.org/showthread.php?t=1923

        To summary the problem:

        The cause of the problem is that the system needs OpenGL to be installed before installing xorg-server.

        If you want to compile from source (other than using package management system). You need to install OpenGL.

        Question: Where can I find OpenGL ?

        Answer: 

        OpenGL is just a standard, there is no one library called "OpenGL".

        However, you can find some OpenGL implementation (e.g. Mesa 3D -- an open source implementation). After installing "Mesa3D", you will find a "gl.h" header file in your {prefix}/include directory. And that is the OpenGL library. There are other libraries together too. And that will solve the problem.

        ** Be careful of the version of MesaLib you use. Make sure it is compatible with your xorg-server's version !!!

        http://www.mesa3d.org/

        ftp://ftp.freedesktop.org/pub/mesa/

        I think I should skip this issue, since Android already has a solution for OpenGL:

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\EGL\

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\GLES\

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\GLES2\

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\lib\libEGL.so

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\lib\libGLESv2.so

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\lib\libGLESv1_CM.so

        in \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\configure:32036:

        pkg_failed=no

        No package 'xf86driproto' found

        Consider adjusting the PKG_CONFIG_PATH environment variable if you

        installed software in a non-standard prefix.

        export PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib/pkgconfig

        checking for DRI... no

        configure: error: Package requirements (glproto >= 1.4.14 dri >= 7.8.0) were not met:

        No package 'glproto' found

        in \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\configure:32036:32316

        pkg_failed=no

        checking for SHA1 implementation... configure: error: No suitable SHA1 implementation found

        34348:

        #   { (exit 1); exit 1; }; 

        d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\external\openssl\crypto\sha\ should works fine. 

        checking for XSERVERCFLAGS... no

        configure: error: Package requirements (fixesproto >= 5.0 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.2.2 bigreqsproto >= 1.1.0 xproto >= 7.0.22 randrproto >= 1.2.99.3 renderproto >= 0.11 xextproto >= 7.1.99 inputproto >= 2.1.99.6 kbproto >= 1.0.3 fontsproto pixman-1 >= 0.21.8 videoproto compositeproto >= 0.4 recordproto >= 1.13.99.1 scrnsaverproto >= 1.1 resourceproto xineramaproto xkbfile  pixman-1 >= 0.21.8 xfont >= 1.4.2 xau xdmcp) were not met:

        34395:

        pkg_failed=no

        checking for XSERVERLIBS... no

        configure: error: Package requirements ( pixman-1 >= 0.21.8 xfont >= 1.4.2 xau xdmcp) were not met:

        No package 'pixman-1' found

        No package 'xfont' found

        34506:

        pkg_failed=no

        checking whether to build Xorg PCI functions... checking for PCIACCESS... no

        configure: error: Package requirements (pciaccess >= 0.12.901) were not met:

        No package 'pciaccess' found

        34904:

        pkg_failed=no

        atom.c:51:19: error: X11/X.h: No such file or directory

        root@ubuntu:/media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1# cd ..

        root@ubuntu:/media/doc/shared/2/meego/src/meeGo-OS-Base# cd x11/xproto-7.0.23/

        root@ubuntu:/media/doc/shared/2/meego/src/meeGo-OS-Base/x11/xproto-7.0.23# sh ./configure --host=arm-linux --prefix=/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/strings.h:48: error: expected declaration specifiers or '...' before numeric constant

        comment

        //void

        bzero(void *, size_t);

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\pixman-0.24.4\pixman\Makefile

        prefix = /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr

        In file included from /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/stdio.h:64,

                     from /media/linux/1/meego/freetype-2.4.9/include/freetype/config/ftstdlib.h:101,

                     from ./builds/unix/ftconfig.h:43,

                     from /media/linux/1/meego/freetype-2.4.9/src/base/ftsystem.c:29:

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/sys/types.h:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int64_t'

        comment types.h

        //typedef uint64_t       u_int64_t;

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/strings.h:50: error: expected declaration specifiers or '...' before '(' token

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/strings.h:51: error: expected declaration specifiers or '...' before '(' token

        comment strings.h

        //char

        *index(const char *, int);

        //char

        *rindex(const char *, int);

        miarc.c:73: error: static declaration of 'cbrt' follows non-static declaration

        make[1]: Leaving directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/mi'

        //static double

     double

     shm.c:37:21: error: sys/shm.h: No such file or directory

        copy /usr/include/sys/shm.h

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:134: error: conflicting types for '__dev_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:43: note: previous declaration of '__dev_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:137: error: conflicting types for '__ino_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:49: note: previous declaration of '__ino_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:145: error: conflicting types for '__clock_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/machine/_types.h:101: note: previous declaration of '__clock_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:146: error: conflicting types for '__rlim_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:54: note: previous declaration of '__rlim_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:149: error: conflicting types for '__time_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/machine/_types.h:104: note: previous declaration of '__time_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:151: error: conflicting types for '__suseconds_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:61: note: previous declaration of '__suseconds_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:154: error: conflicting types for '__swblk_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:58: note: previous declaration of '__swblk_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:155: error: conflicting types for '__key_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/_types.h:50: note: previous declaration of '__key_t' was here

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/types.h:161: error: conflicting types for '__timer_t'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/machine/_types.h:105: note: previous declaration of '__timer_t' was here

        comment bits/types.h

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/bits/shm.h:44: error: expected declaration specifiers before '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/shm.h:51: error: expected declaration specifiers before '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/shm.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/shm.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/shm.h:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'

        comment

        //extern int __getpagesize (void) __THROW __attribute__ ((__const__));

        WaitFor.c:97: error: expected ')' before 'mask'

        make[1]: Leaving directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/os'

        http://trac.macports.org/ticket/12991

        2

        +++ Xpoll.h.in  2007-10-16 20:46:23.000000000 +0200 

        3

        @@ -91,7 +91,7 @@ 

        4

        5

        #ifdef CSRG_BASED 

        6

        #include <sys/param.h> 

        7

        -# if BSD < 199103 

        8

        +# if BSD < 199103 || defined(__APPLE__) 

        9

        typedef long fd_mask; 

        10

        # endif 

        11

        #endif 

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/machine/_types.h:44: error: conflicting types for ‘size_t’

        /usr/lib/gcc/i486-linux-gnu/4.3.4/include/stddef.h:214: error: previous declaration of ‘size_t’ was here

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/machine/_types.h:46: error: conflicting types for ‘ptrdiff_t’

        /usr/lib/gcc/i486-linux-gnu/4.3.4/include/stddef.h:152: error: previous declaration of ‘ptrdiff_t’ was here

        temporary rename stddef.h to stddef.h.bak.

        but then:

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/sys/types.h:33:20: error: stddef.h: No such file or directory

        so cancel rename and comment stddef.h.

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/stdint.h:268: error: redefinition of typedef ‘ssize_t’

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/machine/_types.h:45: error: previous declaration of ‘ssize_t’ was here

        in _types.h:

        #define _SSIZE_T_DEFINED_

        makekeys-makekeys.o: In function `parse_line':

        makekeys.c:(.text+0x2f6): undefined reference to `__sF'

        http://developer.51cto.com/art/200609/32317.htm

        http://blog.csdn.net/llrraa2010/article/details/7632874

        http://blog.csdn.net/llrraa2010/article/details/7961715

        __sF is global array variable defined in Bionic (libc.so). 

        D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\stdio\findfp.c

        /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/merproject/libX11/libX11-1.5.0/src/util# $CC -o makekeys makekeys.c -I../../include

        ../src/util/makekeys /usr/include/X11/keysymdef.h /usr/include/X11/XF86keysym.h /usr/include/X11/Sunkeysym.h /usr/include/X11/DECkeysym.h /usr/include/X11/HPkeysym.h > ks_tables_h

        /bin/bash: ../src/util/makekeys: Permission denied

        copy /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/merproject/libX11/ to /media/linux/1/meego/libX11

        make[2]: Leaving directory `/media/linux/1/meego/libX11/libX11-1.5.0/src/util'

        ../src/util/makekeys /usr/include/X11/keysymdef.h /usr/include/X11/XF86keysym.h /usr/include/X11/Sunkeysym.h /usr/include/X11/DECkeysym.h /usr/include/X11/HPkeysym.h > ks_tables_h

        /bin/bash: ../src/util/makekeys: cannot execute binary file

        make[1]: *** [ks_tables.h] Error 126

        make[1]: Leaving directory `/media/linux/1/meego/libX11/libX11-1.5.0/src'

        rm makekeys

        gcc  -o makekeys makekeys.c -I../../include

        GetDflt.c: In function 'GetHomeDir':

        每日一道理
    盈盈月光,我掬一杯最清的;落落余辉,我拥一缕最暖的;灼灼红叶,我拾一片最热的;萋萋芳草,我摘一束最灿的;漫漫人生,我要采撷世间最重的———毅力。

        GetDflt.c:131: error: 'struct passwd' has no member named 'pw_age'

        make[3]: Leaving directory `/media/linux/1/meego/libX11/libX11-1.5.0/src'

        //http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675824

        //https://github.com/illumos/illumos-gate/blob/master/usr/src/head/pwd.h#L48

        in \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\pwd.h

        struct passwd {

            char    *pw_name;

            char    *pw_passwd;

            uid_t   pw_uid;

            gid_t   pw_gid;

            char    *pw_age;

            char    *pw_comment;

            char    *pw_gecos;

            char    *pw_dir;

            char    *pw_shell;

        };

        // struct passwd

        // {

        // char* pw_name;

        // char* pw_passwd;

        // uid_t pw_uid;

        // gid_t pw_gid;

        // char* pw_dir;

        // char* pw_shell;

        // };

        access.c:93:23: error: X11/Xauth.h: No such file or directory

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\libXau-1.0.6\include\X11\Xauth.h

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/sys/types.h:90: error: conflicting types for ‘size_t’

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/include/machine/_types.h:44: error: previous declaration of ‘size_t’ was here

        in machine/_types.h:

        #define _SIZE_T_DEFINED_

        makestrs.o: In function `main':

        /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/merproject/libXt/libXt-1.1.3/util/makestrs.c:694: undefined reference to `__sF'

        indirect_dispatch.c:29:19: error: GL/gl.h: No such file or directory

        d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\include\GLES\gl.h

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\GLES\gl.h

        LOCAL_MODULE:= libGLES_android

        d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\frameworks\base\opengl\libagl\Android.mk

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\merproject\mesa\Mesa-9.0.3\Android.mk

        copy \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\merproject\mesa\Mesa-9.0.3\include\GL\ to \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\GL\

      CCLD   modeprint

        modeprint.o: In function `printProperty':

        /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/libdrm-2.4.33/tests/modeprint/modeprint.c:115: undefined reference to `drmModeGetPropertyBlob'

        try to move modeprint out and re-configure

     /bin/bash ../libtool   --mode=install /usr/bin/install -c   libdrm_radeon.la '/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib'

        libtool: install: warning: relinking `libdrm_radeon.la'

        libtool: install: (cd /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/libdrm-2.4.33/radeon; /bin/sh /media/doc/shared/2/meego/src/meeGo-OS-Base/x11/libdrm-2.4.33/libtool  --silent --tag CC --mode=relink arm-linux-androideabi-gcc )

        libtool: relink: you must specify an output file

        libtool: relink: Try `libtool --help --mode=relink' for more information.

        libtool: install: error: relink `libdrm_radeon.la' with the above command before installing it

        remore radeon from makefile

        linux_sysfs.c:49:20: error: sys/io.h: No such file or directory

        copy \\192.168.1.8\usr\include\sys\io.h to \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\sys\

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:34: error: expected declaration specifiers before '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'

        comment '__THROW'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:101: error: impossible constraint in 'asm'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:114: error: impossible constraint in 'asm'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:128: error: impossible constraint in 'asm'

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../sysroot/usr/include/sys/io.h:50: error: impossible constraint in 'asm'

        comment

        make[2]: Entering directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/x11/merproject/libpciaccess/libpciaccess-0.13/scanpci'

      CC     scanpci.o

      CCLD   scanpci

        ../src/.libs/libpciaccess.so: undefined reference to `inb'

        ../src/.libs/libpciaccess.so: undefined reference to `inw'

        ../src/.libs/libpciaccess.so: undefined reference to `inl'

        ../src/.libs/libpciaccess.so: undefined reference to `outb'

        ../src/.libs/libpciaccess.so: undefined reference to `iopl'

        ../src/.libs/libpciaccess.so: undefined reference to `outw'

        ../src/.libs/libpciaccess.so: undefined reference to `outl'

        for normal linux, there functions are in sys/io.h. But no definition in android.

        http://124.16.139.131:24080/lxr/source/external/kernel-headers/original/asm-arm/io.h?v=android-4.0.4

        #define __raw_writeb(v,a)   (__chk_io_ptr(a), *(volatile unsigned char __force  *)(a) = (v))

        #define outb(v,p)       __raw_writeb(v,__io(p))

        http://blog.sina.com.cn/s/blog_8846746d0101fj31.html

        but maybe there's no pci in the mobile phone, so i make them dummy.

        linux_sysfs.c:

        #define inb(x) -1

        #define inw(x) -1

        #define inl(x) -1

        #define outb(x,y) do {} while (0)

        #define outw(x,y) do {} while (0)

        #define outl(x,y) do {} while (0)

        #define iopl(x) -1

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\asm\arch\io.h

        http://blog.csdn.net/yel617/article/details/4990648

        search: android  #include <asm/arch/io.h>

        ../src/.libs/libpciaccess.so: undefined reference to `pwrite64'

        ../src/.libs/libpciaccess.so: undefined reference to `pread64'

        http://124.16.139.131:24080/lxr/source/bionic/libc/arch-x86/syscalls/pwrite64.S?v=android-4.0.4

        D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\include\sys\linux-unistd.h

        D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libc\unistd\pread.c

        in sys/io.h:

        #include <sys/types.h>

        #include <unistd.h>

        extern int __pread64(int fd, void *buf, size_t nbytes, loff_t offset);

        extern int __pwrite64(int fd, void *buf, size_t nbytes, loff_t offset);

        #define pwrite64 __pwrite64

        #define pread64 __pread64

        ../../../hw/xfree86/os-support/xf86_OSlib.h:197:20: error: sys/kd.h: No such file or directory

        copy \\192.168.1.8\usr\include\sys\kd.h to \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\sys\

        lnx_agp.c:22:27: error: linux/agpgart.h: No such file or directory

        copy \\192.168.1.8\usr\include\linux\agpgart.h to \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\linux\

        /media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/hw/xfree86/utils/cvt/cvt.c:276: undefined reference to `floor'

        d:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\bionic\libm\

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\lib\libm.a

        in \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\hw\xfree86\utils\cvt\Makefile:

        LDFLAGS = -lm

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lpthread

        http://bbs.csdn.net/topics/370042789

        http://comments.gmane.org/gmane.comp.gnome.mono.devel/34639

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\hw\xfree86\Makefile

        remove -lpthread from makefile

        #XVFB_SYS_LIBS =   -lpthread

        XVFB_SYS_LIBS =   

        #XORG_SYS_LIBS =    -lpthread

        XORG_SYS_LIBS =    

        XVFB_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb

        XORG_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb 

        /media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/dix/main.c:199: undefined reference to `InitGlyphCaching'

        http://fossies.org/dox/tightvnc-1.3.10_unixsrc/fontutil_8c_source.html

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\merproject\libXfont\libXfont-1.4.5\src\util\fontutil.c

        fontxlfd.c:86: error: 'struct lconv' has no member named 'decimal_point'

        make[3]: Leaving directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/x11/merproject/libXfont/libXfont-1.4.5/src/util'

        copy definition of 'struct lconv' from \\192.168.1.8\usr\include\locale.h to \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\locale.h

        /media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/Xext/shm.c:442: undefined reference to `shmdt'

        https://github.com/tias/android-busybox-ndk/blob/master/patches/018-semop-shmdt-syscalls.patch

        git clone https://github.com/tias/android-busybox-ndk.git

        git clone git://git.busybox.net/busybox busybox-git.arm

        \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\include\asm\unistd.h

        #define __NR_shmat (__NR_SYSCALL_BASE+305)

        #define __NR_shmdt (__NR_SYSCALL_BASE+306)

        #define __NR_shmget (__NR_SYSCALL_BASE+307)

        #define __NR_shmctl (__NR_SYSCALL_BASE+308)

        $CC -o libbb.so -O2 -fPIC -shared missing_syscalls.c 

        libbb.h:1058: error: 'ENABLE_FEATURE_SYSLOG' undeclared here (not in a function)

        http://comments.gmane.org/gmane.linux.busybox/16719

        make 'ENABLE_FEATURE_SYSLOG 1

        too many errors with libbb.h, so I comment it in \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\x11\merproject\libbb\missing_syscalls.c, and add soem useful header files:

        #include <time.h>

        #include <sys/shm.h>

        //#include "libbb.h"

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib/libpixman-1.so: undefined reference to `android_getCpuFeatures'

        \\192.168.1.8\1\android-ndk-r7\sources\android\cpufeatures\cpu-features.c

        http://blog.csdn.net/abnerchai/article/details/6830644

        $CC -o libcpu.so -O2 -fPIC -shared cpu-features.c

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\hw\xfree86\Makefile

        XVFB_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb -lcpu

        XORG_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb -lcpu 

        /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib/libXfont.so: undefined reference to `localeconv'

        cp \\192.168.1.8\shared\2\uClibc-0.9.33\lib\libuClibc-0.9.33.so \\192.168.1.8\1\android-ndk-r7\mytoolchain\sysroot\usr\lib\libuc.so

        XORG_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb -lXdmcp -lXau -lcrypto -lcpu -luc

        XVFB_SYS_LIBS = -lm -lXfont -lpixman-1 -lpciaccess -lbb -lXdmcp -lXau -lcrypto -lcpu -luc

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: warning: ld-uClibc.so.0, needed by /media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib/libuc.so, not found (try using -rpath or -rpath-link)

        \\192.168.1.8\shared\2\uClibc-0.9.33\lib\ld-uClibc.so.0

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lpthread

        make[3]: Leaving directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/hw/vfb'

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\hw\vfb\Makefile

        remove -lpthread from makefile

        #XVFB_SYS_LIBS =   -lpthread

        XVFB_SYS_LIBS =  -lm -lXfont -lpixman-1 -lpciaccess -lbb -lXdmcp -lXau -lcrypto -lcpu -luc  

        #XORG_SYS_LIBS =    -lpthread

        XORG_SYS_LIBS =  -lm -lXfont -lpixman-1 -lpciaccess -lbb -lXdmcp -lXau -lcrypto -lcpu -luc   

        /media/linux/1/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lpthread

        make[2]: Leaving directory `/media/doc/shared/2/meego/src/meeGo-OS-Base/xorg-server-1.12.1/test'

        \\192.168.1.8\shared\2\meego\src\meeGo-OS-Base\xorg-server-1.12.1\test\Makefile

        sh ./configure --host=arm-linux --prefix=/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr

        make install prefix='/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr' exec_prefix='/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr' libdir='/media/linux/1/android-ndk-r7/mytoolchain/sysroot/usr/lib'

        make install

    文章结束给大家分享下程序员的一些笑话语录: 有一天,一个男人穿越森林的时候,听到一个细微的声音叫住他。他低头一看,是一只青蛙。
    “如果你亲我一下,我会变成一个美丽的公主哦。”男人一言不发,把青蛙捡起来,放入口袋。
    “如果你亲我一下,我会变成一个美丽的公主哦。而且,我会告诉我遇到的每一个人,你是多么聪明和勇敢,你是我的英雄。”男人把青蛙拿出来,对着它微微一笑,又把它放回口袋。
    “如果你亲我一下,我会变成一个美丽的公主,然后我愿意成为你的爱人一星期。”男人又把青蛙拿出来,对着它微微一笑,把它放回口袋。
    “如果你亲我一下,我会变成一个美丽的公主,然后我愿意成为你的爱人一年,而且你可以对我做任何事。”再一次,男人把青蛙拿出来,对着它微微一笑,又把它放回口袋。
      最后,青蛙无力地问:“我开出了这么好的条件,为什么你还不肯吻我?”男人说:“我是一个程序员,我可没时间和什么公主鬼混。不过,拥有一个会说话的青蛙,倒是蛮酷的。”

    --------------------------------- 原创文章 By
    android和implementation
    ---------------------------------

  • 相关阅读:
    c++笔记3
    c++笔记2
    c++笔记1
    零点追踪(零点及量程补偿)
    优秀软件:
    Hart协议
    RL_RTX函数
    keil-rtx
    电源模块选型
    RTX51 Tiny
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3112853.html
Copyright © 2020-2023  润新知