xorg-server-1.12.1 for android done--xorg-server-1.12.1-issue.txt

本文记录了在为特定平台编译Xorg服务器及其相关组件时遇到的各种问题及解决方案,包括缺少依赖库、不兼容的数据类型定义以及未定义的符号等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
ii udev 249.11-0ubuntu3.16 amd64 /dev/ and hotplug management daemon ii udisks2 2.9.4-1ubuntu2.2 amd64 D-Bus service to access and manipulate storage devices ii ufw 0.36.1-4ubuntu0.1 all program for managing a Netfilter firewall ii unattended-upgrades 2.8ubuntu1 all automatic installation of security upgrades ii uncrustify 0.72.0+dfsg1-2 amd64 C, C++, ObjectiveC, C#, D, Java, Pawn and VALA source code beautifier ii unixodbc-common 2.3.9-5ubuntu0.1 all Common ODBC configuration files ii update-inetd 4.51 all inetd configuration file updater ii update-manager 1:22.04.22 all GNOME application that manages apt updates ii update-manager-core 1:22.04.22 all manage release upgrades ii update-notifier 3.192.54.8 amd64 Daemon which notifies about package updates ii update-notifier-common 3.192.54.8 all Files shared between update-notifier and other packages ii upower 0.99.17-1 amd64 abstraction for power management ii usb-creator-common 0.3.13 all create a startup disk using a CD or disc image (common files) ii usb-creator-gtk 0.3.13 all create a startup disk using a CD or disc image (for GNOME) ii usb-modeswitch 2.6.1-3ubuntu2 amd64 mode switching tool for controlling "flip flop" USB devices ii usb-modeswitch-data 20191128-4 all mode switching data for usb-modeswitch ii usrmerge 25ubuntu2 all Convert the system to the merged /usr directories scheme ii va-driver-all:amd64 2.14.0-1 amd64 Video Acceleration (VA) API -- driver metapackage ii vdpau-driver-all:amd64 1.4-3build2 amd64 Video Decode and Presentation API for Unix (driver metapackage) ii vtk9 9.1.0+really9.1.0+dfsg2-3build1 amd64 Binaries for VTK9 ii wamerican 2020.12.07-2 all American English dictionary words for /usr/share/dict ii wbritish 2020.12.07-2 all British English dictionary words for /usr/share/dict ii wget 1.21.2-2ubuntu1.1 amd64 retrieves files from the web ii whiptail 0.52.21-5ubuntu2 amd64 Displays user-friendly dialog boxes from shell scripts ii whoopsie-preferences 23 amd64 System preferences for error reporting ii wireless-regdb 2024.10.07-0ubuntu1~22.04.1 all wireless regulatory database ii wireless-tools 30~pre9-13.1ubuntu4 amd64 Tools for manipulating Linux Wireless Extensions ii x11-common 1:7.7+23ubuntu2 all X Window System (X.Org) infrastructure ii xbrlapi 6.4-4ubuntu3 amd64 Access software for a blind person using a braille display - xbrlapi ii xcvt 0.1.1-3 amd64 VESA CVT standard timing modelines generator ii xdg-dbus-proxy 0.1.3-1 amd64 filtering D-Bus proxy ii xdg-desktop-portal 1.14.4-1ubuntu2~22.04.2 amd64 desktop integration portal for Flatpak and Snap ii xdg-desktop-portal-gnome 42.1-0ubuntu2 amd64 GNOME portal backend for xdg-desktop-portal ii xdg-desktop-portal-gtk 1.14.0-1build1 amd64 GTK+/GNOME portal backend for xdg-desktop-portal ii xdg-user-dirs 0.17-2ubuntu4 amd64 tool to manage well known user directories ii xdg-user-dirs-gtk 0.10-3build2 amd64 tool to manage well known user directories (Gtk extension) ii xdg-utils 1.1.3-4.1ubuntu3~22.04.1 all desktop integration utilities from freedesktop.org ii xfonts-encodings 1:1.0.5-0ubuntu2 all Encodings for X.Org fonts ii xfonts-utils 1:7.7+6build2 amd64 X Window System font utility programs ii xinput 1.6.3-1build2 amd64 Runtime configuration and test of XInput devices ii xkb-data 2.33-1 all X Keyboard Extension (XKB) configuration data ii xml-core 0.18+nmu1 all XML infrastructure and XML catalog file support ii xorg 1:7.7+23ubuntu2 amd64 X.Org X Window System ii xorg-docs-core 1:1.7.1-1.2 all Core documentation for the X.org X Window System ii xorg-sgml-doctools 1:1.11-1.1 all Common tools for building X.Org SGML documentation ii xserver-xorg 1:7.7+23ubuntu2 amd64 X.Org X server ii xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.15 amd64 Xorg X server - core server ii xserver-xorg-input-all 1:7.7+23ubuntu2 amd64 X.Org X server -- input driver metapackage ii xserver-xorg-input-libinput 1.2.1-1 amd64 X.Org X server -- libinput input driver ii xserver-xorg-input-wacom 1:1.0.0-3ubuntu1 amd64 X.Org X server -- Wacom input driver ii xserver-xorg-legacy 2:21.1.4-2ubuntu1.7~22.04.15 amd64 setuid root Xorg server wrapper ii xserver-xorg-video-all 1:7.7+23ubuntu2 amd64 X.Org X server -- output driver metapackage ii xserver-xorg-video-amdgpu 22.0.0-1ubuntu0.2 amd64 X.Org X server -- AMDGPU display driver ii xserver-xorg-video-ati 1:19.1.0-2ubuntu1 amd64 X.Org X server -- AMD/ATI display driver wrapper ii xserver-xorg-video-fbdev 1:0.5.0-2build1 amd64 X.Org X server -- fbdev display driver ii xserver-xorg-video-intel 2:2.99.917+git20210115-1 amd64 X.Org X server -- Intel i8xx, i9xx display driver ii xserver-xorg-video-nouveau 1:1.0.17-2build1 amd64 X.Org X server -- Nouveau display driver ii xserver-xorg-video-qxl 0.1.5+git20200331-3 amd64 X.Org X server -- QXL display driver ii xserver-xorg-video-radeon 1:19.1.0-2ubuntu1 amd64 X.Org X server -- AMD/ATI Radeon display driver ii xserver-xorg-video-vesa 1:2.5.0-1build4 amd64 X.Org X server -- VESA display driver ii xserver-xorg-video-vmware 1:13.3.0-3build1 amd64 X.Org X server -- VMware display driver ii xtl-dev 0.7.2-2 all basic tools (containers, algorithms) used for xtensor and xeus ii xwayland 2:22.1.1-1ubuntu0.19 amd64 X server for running X clients under Wayland ii xxd 2:8.2.3995-1ubuntu2.24 amd64 tool to make (or reverse) a hex dump ii yaru-theme-gnome-shell 22.04.5 all Yaru GNOME Shell desktop theme from the Ubuntu Community ii yaru-theme-gtk 22.04.5 all Yaru GTK theme from the Ubuntu Community ii zenity 3.42.1-0ubuntu1 amd64 Display graphical dialog boxes from shell scripts ii zenity-common 3.42.1-0ubuntu1 all Display graphical dialog boxes from shell scripts (common files) ii zlib1g:amd64 1:1.2.11.dfsg-2ubuntu9.2 amd64 compression library - runtime ii zlib1g-dev:amd64 1:1.2.11.dfsg-2ubuntu9.2 amd64 compression library - development ii zstd 1.4.8+dfsg-3build1 amd64 fast lossless compression algorithm -- CLI tool bash: 未预期的记号 "newline" 附近有语法错误 ubuntu@Ubuntu01:~/桌面$
07-13
(DepMamba) dw@node01:~/DepMamba-main$ conda uninstall pytorch torchvision torchaudio Channels: - defaults - conda-forge - nvidia - pytorch Platform: linux-64 Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/dw/anaconda3/envs/DepMamba removed specs: - pytorch - torchaudio - torchvision The following packages will be REMOVED: alsa-lib-1.2.14-h5eee18b_0 aom-3.9.1-hac33072_0 attr-2.5.1-h166bdaf_1 blas-1.0-mkl brotlicffi-1.0.9.2-py310h6a678d5_1 cairo-1.18.4-h3394656_0 cffi-1.17.1-py310h1fdaa30_1 charset-normalizer-3.3.2-pyhd3eb1b0_0 dav1d-1.2.1-h5eee18b_0 dbus-1.13.18-hb2f20db_0 expat-2.7.1-h6a678d5_0 ffmpeg-7.1.1-gpl_h0cf71c1_707 filelock-3.17.0-py310h06a4308_0 font-ttf-dejavu-sans-mono-2.37-hd3eb1b0_0 font-ttf-inconsolata-2.001-hcb22688_0 font-ttf-source-code-pro-2.030-hd3eb1b0_0 font-ttf-ubuntu-0.83-h8b1ccd4_0 fontconfig-2.15.0-h7e30c49_1 fonts-anaconda-1-h8fa9717_0 fonts-conda-ecosystem-1-hd3eb1b0_0 freetype-2.13.3-ha770c72_1 fribidi-1.0.10-h7b6447c_0 gdk-pixbuf-2.42.12-hb9ae30d_0 gettext-0.25.1-h3f43e3d_1 gettext-tools-0.25.1-h3f43e3d_1 glib-2.84.2-h6287aef_0 glib-tools-2.84.2-h4833e2c_0 gmp-6.3.0-h6a678d5_0 gmpy2-2.2.1-py310h5eee18b_0 graphite2-1.3.14-h295c915_1 harfbuzz-11.3.3-hbb57e21_0 idna-3.7-py310h06a4308_0 intel-openmp-2025.0.0-h06a4308_1171 jinja2-3.1.6-py310h06a4308_0 lame-3.100-h7b6447c_0 lcms2-2.17-h717163a_0 lerc-4.0.0-h6a678d5_0 level-zero-1.24.0-hb700be7_0 libabseil-20250512.1-cxx17_hba17884_0 libasprintf-0.25.1-h3f43e3d_1 libasprintf-devel-0.25.1-h3f43e3d_1 libass-0.17.4-h96ad9f0_0 libcap-2.75-h39aace5_0 libdeflate-1.23-h86f0d12_0 libdrm-2.4.124-h5eee18b_0 libegl-1.7.0-h5eee18b_2 libflac-1.4.3-h59595ed_0 libfreetype-2.13.3-ha770c72_1 libfreetype6-2.13.3-h48d6fc4_1 libgcrypt-lib-1.11.1-hb9d3cd8_0 libgettextpo-0.25.1-h3f43e3d_1 libgettextpo-devel-0.25.1-h3f43e3d_1 libgl-1.7.0-h5eee18b_2 libglib-2.84.2-h3618099_0 libglvnd-1.7.0-h5eee18b_2 libglx-1.7.0-h5eee18b_2 libgpg-error-1.55-h3f2d84a_0 libiconv-1.18-h4ce23a2_1 libjpeg-turbo-3.0.3-h5eee18b_0 libogg-1.3.5-h27cfd23_1 libopenvino-2025.2.0-hb617929_1 libopenvino-auto-batch-plugin-2025.2.0-hed573e4_1 libopenvino-auto-plugin-2025.2.0-hed573e4_1 libopenvino-hetero-plugin-2025.2.0-hd41364c_1 libopenvino-intel-cpu-plugin-2025.2.0-hb617929_1 libopenvino-intel-gpu-plugin-2025.2.0-hb617929_1 libopenvino-intel-npu-plugin-2025.2.0-hb617929_1 libopenvino-ir-frontend-2025.2.0-hd41364c_1 libopenvino-onnx-frontend-2025.2.0-h1862bb8_1 libopenvino-paddle-frontend-2025.2.0-h1862bb8_1 libopenvino-pytorch-frontend-2025.2.0-hecca717_1 libopenvino-tensorflow-frontend-2025.2.0-h0767aad_1 libopenvino-tensorflow-lite-frontend-2025.2.0-hecca717_1 libopus-1.5.2-hd0c01bc_0 libpciaccess-0.18-h5eee18b_0 libpng-1.6.50-h943b412_0 libprotobuf-6.31.1-h9ef548d_1 librsvg-2.58.4-he92a37e_3 libsndfile-1.2.2-hc60ed4a_1 libsystemd0-257.7-h4e0b6ca_0 libtiff-4.7.0-hd9ff511_3 libudev1-257.7-hbe16f8c_0 libunwind-1.6.2-h9c3ff4c_0 liburing-2.9-h84d6215_0 libusb-1.0.29-h73b1eb8_0 libva-2.22.0-h4f16b4b_2 libvorbis-1.3.7-h7b6447c_0 libvpx-1.14.1-hac33072_0 libwebp-base-1.6.0-hd42ef1d_0 libxcb-1.17.0-h9b100fa_0 libxkbcommon-1.10.0-h65c71a3_0 libxml2-2.13.8-h4bc477f_0 llvm-openmp-15.0.7-h0cdce71_0 lz4-c-1.10.0-h5888daf_1 markupsafe-3.0.2-py310h5eee18b_0 mkl-2025.0.0-hacee8c2_941 mkl-service-2.4.0-py310h5eee18b_3 mkl_fft-1.3.11-py310hacdc0fc_1 mkl_random-1.2.8-py310h2fd27a0_1 mpc-1.3.1-h5eee18b_0 mpfr-4.2.1-h5eee18b_0 mpg123-1.32.9-hc50e24c_0 mpmath-1.3.0-py310h06a4308_0 networkx-3.2.1-py310h06a4308_0 numpy-1.21.6-py310h64c44e4_2 numpy-base-1.21.6-py310he1678cf_2 openh264-2.6.0-he621ea3_0 openjpeg-2.5.3-h5fbd93e_0 packaging-25.0-py310h06a4308_0 pango-1.56.4-hadf4263_0 pcre2-10.45-hc749103_0 pillow-11.1.0-py310h7e6dc6c_0 pixman-0.46.4-h537e5f6_0 pthread-stubs-0.3-h0ce48e5_1 pugixml-1.15-h3f63f65_0 pulseaudio-client-17.0-hac146a9_1 pycparser-2.21-pyhd3eb1b0_0 pysocks-1.7.1-py310h06a4308_0 python_abi-3.10-8_cp310 pytorch-2.1.0-py3.10_cuda12.1_cudnn8.9.2_0 pytorch-mutex-1.0-cuda pyyaml-6.0.2-py310h5eee18b_0 requests-2.32.4-py310h06a4308_0 sdl2-2.32.54-h3f2d84a_0 sdl3-3.2.14-he3e324a_0 snappy-1.2.2-h03e3b7b_0 svt-av1-3.0.2-h5888daf_0 sympy-1.13.3-py310h06a4308_1 tbb-2022.0.0-hdb19cb5_0 tbb-devel-2022.0.0-hdb19cb5_0 torchaudio-2.1.0-py310_cu121 torchtriton-2.1.0-py310 torchvision-0.16.0-py310_cu121 typing_extensions-4.12.2-py310h06a4308_0 urllib3-2.5.0-py310h06a4308_0 wayland-1.24.0-hdac8c69_0 wayland-protocols-1.45-hd8ed1ab_0 x264-1!164.3095-h166bdaf_2 x265-3.5-h924138e_3 xkeyboard-config-2.44-h5eee18b_0 xorg-libice-1.1.2-h9b100fa_0 xorg-libsm-1.2.6-he73a12e_0 xorg-libx11-1.8.12-h9b100fa_1 xorg-libxau-1.0.12-h9b100fa_0 xorg-libxcursor-1.2.3-h9b100fa_0 xorg-libxdmcp-1.1.5-h9b100fa_0 xorg-libxext-1.3.6-h9b100fa_0 xorg-libxfixes-6.0.1-h9b100fa_0 xorg-libxrender-0.9.12-h9b100fa_0 xorg-libxscrnsaver-1.2.4-h9b100fa_0 xorg-xorgproto-2024.1-h5eee18b_1 yaml-0.2.5-h7b6447c_0 zstd-1.5.7-hb8e6e7a_2 Proceed ([y]/n)? y Preparing transaction: done Verifying transaction: done Executing transaction: | done (DepMamba) dw@node01:~/DepMamba-main$ 卸载完了吧
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值