LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: tfkdmwmqtr

为爱本编译系统 ( CLFS && CBLFS ^ x86_64-Multilib ^ )

[复制链接]
发表于 2007-9-13 20:18:54 | 显示全部楼层
xf86-video-i810
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-13 20:28:52 | 显示全部楼层

安装中文 KDE 桌面

安装中文 KDE 桌面

  0601-KDE_Pre-Installation_Configuration

  1. export KDE_PREFIX=/opt/kde-3.5.7
  2. ln -sv kde-3.5.7 /opt/kde

  3. #   Create an addition to the Bash Startup Files:
  4. cat > /etc/profile.d/30-kde.sh << "EOF"
  5. # Begin /etc/profile.d/30-kde.sh

  6. export KDE_PREFIX=/opt/kde-3.5.7

  7. export PATH="${PATH}:${KDE_PREFIX}/bin"

  8. export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}${KDE_PREFIX}/lib/pkgconfig"
  9. export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}${KDE_PREFIX}/lib32/pkgconfig"
  10. export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}${KDE_PREFIX}/lib64/pkgconfig"

  11. export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${KDE_PREFIX}/share"
  12. export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/kde/xdg"

  13. # End /etc/profile.d/30-kde.sh
  14. EOF
  15. source /etc/profile

  16. #   Add a new entry to /etc/ld.so.conf for the libraries that KDE is going to install:
  17. cat >> /etc/ld.so.conf << "EOF"
  18. # Begin KDE addition to /etc/ld.so.conf

  19. /opt/kde-3.5.7/lib
  20. /opt/kde-3.5.7/lib32
  21. /opt/kde-3.5.7/lib64

  22. # End KDE addition
  23. EOF

  24. ldconfig
复制代码


  [color]注意:上面的 source /etc/profile 和 ldconfig 这两条命令需要手工输入。

  0602-ARts

  1. # Required
  2. #     * KDE Pre-Installation Configuration
  3. #     * Qt3
  4. #     * Glib2
  5. # Recommended
  6. #     * libjpeg
  7. # Optional
  8. #     * libvorbis
  9. #     * ALSA
  10. #     * Audio File
  11. #     * libmad
  12. #     * EsounD
  13. #     * NAS
  14. #     * MAS
  15. #     * JACK


  16. cd /sources
  17. tar xvf /CBLFS/arts-1.5.6.tar.bz2
  18. cp -a arts-1.5.6{,-64}
  19. # 32bit
  20. cd arts-1.5.6
  21. #   Compile the package:
  22. CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
  23.     ./configure --prefix=$KDE_PREFIX --disable-debug --disable-dependency-tracking \
  24.     --x-libraries=${XORG_PREFIX}/lib --with-qt-libraries=${QTDIR}/lib \
  25.     --enable-libsuffix=none &&
  26. make
  27. #   Install the package
  28. make install &&
  29. mv -v ${KDE_PREFIX}/bin/artsc-config{,-32}

  30. # 64bit
  31. cd ../arts-1.5.6-64
  32. patch -Np1 -i /CBLFS/arts-1.5.6-fix_mmx-1.patch
  33. #   Compile the package:
  34. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  35.     ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 --disable-debug \
  36.     --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 --with-qt-libraries=${QTDIR}/lib64 \
  37.     --enable-libsuffix=64 &&
  38. make
  39. #   Install the package
  40. make install &&
  41. mv -v ${KDE_PREFIX}/bin/artsc-config{,-64} &&
  42. ln -sfv /usr/bin/multiarch_wrapper ${KDE_PREFIX}/bin/artsc-config

  43. cd ..
  44. rm -rf arts-1.5.6{,-64}
复制代码


  0603-pcre

  1. cd /sources
  2. tar xvf /CBLFS/pcre-7.1.tar.bz2
  3. cp -a pcre-7.1{,-64}
  4. # 32bit
  5. cd pcre-7.1
  6. #   Configure and compile the package:
  7. CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-utf8 &&
  8. make
  9. #   Install the package:
  10. make install &&
  11. mv -v /usr/bin/pcre-config{,-32}
  12. #   If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a   separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep   or move libpcre to /lib as follows.
  13. mv -v /usr/lib/libpcre.so.* /lib/ &&
  14. LIBNAME=$(cat libpcre.la | grep dlname | cut -f2 -d"'" | cut -f1 -d" ") &&
  15. ln -sf ../../lib/$LIBNAME /usr/lib/libpcre.so
  16. find /usr/bin/{pcregrep,pcretest,pcre-config} -exec mv -v {} {}-32 \;

  17. # 64bit
  18. cd ../pcre-7.1-x64
  19. #   Configure and compile the package:
  20. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --enable-utf8 --libdir=/usr/lib64 &&
  21. make
  22. #   Install the package:
  23. make install &&
  24. mv -v /usr/bin/pcre-config{,-64} &&
  25. ln -s multiarch_wrapper /usr/bin/pcre-config
  26. #   If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a   separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep   or move libpcre to /lib as follows.
  27. mv -v /usr/lib64/libpcre.so.* /lib64/ &&
  28. LIBNAME=$(cat libpcre.la | grep dlname | cut -f2 -d"'" | cut -f1 -d" ") &&
  29. ln -sf ../../lib64/$LIBNAME /usr/lib64/libpcre.so

  30. cd ..
  31. rm -rf pcre-7.1{,-64}
复制代码


  0604-KdeLibs

  1. # Required
  2. #     * aRts
  3. #     * Pcre

  4. # Recommended
  5. #     * libjpeg
  6. #     * libart_lgpl
  7. #     * LibXML2
  8. #     * LibXSLT
  9. #     * Gamin
  10. #     * OpenSSL
  11. #     * libidn

  12. # Optional
  13. #     * LibTIFF
  14. #     * Aspell
  15. #     * CUPS
  16. #     * OpenLDAP
  17. #     * ALSA
  18. #     * MIT krb5 or Heimdal
  19. #     * OpenEXR
  20. #     * JasPer
  21. #     * Lua < 5.1
  22. #     * mDNSResponder
  23. #     * LibThai
  24. #     * Hspell
  25. #     * Acl
  26. #     * Graphviz
  27. #     * Doxygen

  28. cd /sources
  29. tar xvf /CBLFS/kdelibs-3.5.7.tar.bz2
  30. cp -a kdelibs-3.5.7{,-64}
  31. # 32bit
  32. cd kdelibs-3.5.7
  33. #   Compile the package:
  34. CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
  35.     ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --disable-debug \
  36.     --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib \
  37.     --with-qt-libraries=${QTDIR}/lib --enable-libsuffix=none  &&
  38. make
  39. #   Install the package
  40. make install &&
  41. mv -v ${KDE_PREFIX}/bin/kde-config{,-32}

  42. # 64bit
  43. cd ../kdelibs-3.5.7-64
  44. #   Compile the package:
  45. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  46.     ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --libdir=${KDE_PREFIX}/lib64 \
  47.     --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
  48.     --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
  49. make
  50. #   Install the package
  51. make install &&
  52. mv -v ${KDE_PREFIX}/bin/kde-config{,-64} &&
  53. ln -sfv /usr/bin/multiarch_wrapper ${KDE_PREFIX}/bin/kde-config
  54. cd ..
  55. rm -rf kde-3.5.7{,-64}
复制代码


  0605-Kdebase-3.5.7
  如果前面安装了太多的多媒体库,这里的32位的KdeBase-3.5.7将不能通过编译。

  1. # Required
  2. #     * KdeLibs

  3. # Recommended
  4. #     * libjpeg
  5. #     * libart_lgpl
  6. #     * LibXML2
  7. #     * OpenSSL
  8. #     * JDK

  9. # Optional
  10. #     * libusb
  11. #     * LibTIFF
  12. #     * LessTif
  13. #     * Linux-PAM
  14. #     * OpenLDAP
  15. #     * CyrusSASL
  16. #     * Samba
  17. #     * HAL
  18. #     * MIT krb5 or Heimdal
  19. #     * krb4
  20. #     * OpenEXR
  21. #     * libraw1394
  22. #     * lm_sensors
  23. #     * mDNSResponder
  24. #     * JasPer
  25. #     * Graphviz
  26. #     * Doxygen
  27. #     * D-BUS Qt3

  28. cd /sources
  29. tar xvf /CBLFS/kdebase-3.5.7.tar.bz2
  30. cp -a kdebase-3.5.7{,-64}
  31. # 32bit
  32. cd kdebase-3.5.7
  33. #   First, ensure that X11 will be found.
  34. sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
  35. #   Compile the package:
  36. export USE_ARCH=32 &&
  37. CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
  38.     ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --disable-debug \
  39.     --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib \
  40.     --with-qt-libraries=${QTDIR}/lib --enable-libsuffix=none &&
  41. make
  42. #   Install the package
  43. make install &&
  44. unset USE_ARCH

  45. # 64bit
  46. cd ../kdebase-3.5.7-64
  47. #   First, ensure that X11 will be found.
  48. sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $(grep -lr /usr/X11R6 *)
  49. #   Compile the package:
  50. export USE_ARCH=64 &&
  51. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  52.     ./configure --prefix=$KDE_PREFIX --sysconfdir=/etc/kde --libdir=${KDE_PREFIX}/lib64 \
  53.     --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
  54.     --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
  55. make
  56. #   Install the package
  57. make install &&
  58. unset USE_ARCH

  59. cd ..
  60. rm -rf kdebase-3.5.7{,-64}
复制代码


  0606-wqy
  文泉驿,安装的方法需要看README,或者解包后里面有 INSTALL 文件。这里安装 PCF 的。

  1. mkdir -v /usr/share/fonts/wenquanyi
  2. tar -zxvpf /CBLFS/wqy-bitmapfont-pcf-0.8.1-7.tar.gz -C /usr/share/fonts/wenquanyi
  3. cp -a /usr/share/fonts/wenquanyi/wqy-bitmapfont/85-wqy-bitmapsong.conf /etc/fonts/conf.d/
复制代码


  0607-KDE-i8n-64bit
  这里选择安装zh_CN的,台湾的朋友安装 zh_TW 的。这个,只需要安装64位就可以了。从现在开始,编译软件首先考虑64位,如果64位不通过或者有其它的软件包需要这个软件包的32位库才编译32位的。

  1. cd /sources
  2. tar xvf /CBLFS/kde-i18n-zh_CN-3.5.7.tar.bz2
  3. # 64bit
  4. cd kde-i18n-zh_CN-3.5.7
  5. # Compile the package:
  6. export USE_ARCH=64 &&
  7. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  8.     ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 \
  9.     --x-libraries=${XORG_PREFIX}/lib64 \
  10.     --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
  11. make
  12. # Install the package
  13. make install &&
  14. unset USE_ARCH

  15. cd /sources
  16. #rm -rf kde-i18n-zh_CN-3.5.7{,-64}

  17. cat > /etc/profile.d/05-i18n.sh << "EOF"
  18. # Begin /etc/profile.d/05-i18n.sh

  19. export LANG=zh_CN.UTF-8
  20. export G_FILENAME_ENCODING=@locale

  21. # End /etc/profile.d/05-i18n.sh
  22. EOF
  23. source /etc/profile
复制代码


  注意:上面的 source /etc/profile 同样需要手工输入。

  安装了这些包之后,就可以启动中文的 KDE 了。CBLFS手册没有讲如何启动 KDE ,这里按 BLFS 手册的方法来做:

  0608-KDE-config

  1. echo "exec startkde" > ~/.xinitrc
  2. echo "exec dbus-launch --exit-with-session startkde" >> ~/.xinitrc
  3. update-desktop-database
  4. ldconfig
  5. startx
复制代码


  0609-SCIM-64bit
  中文输入法

  1. # 64bit
  2. cd /sources
  3. tar xvf /CBLFS/scim-1.4.6.tar.gz
  4. cd scim-1.4.6
  5. # 64bit
  6. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  7.     ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
  8. make
  9. make install
  10. cd ..

  11. # scim-tables-0.5.7.tar.gz
  12. tar xvf /CBLFS/scim-tables-0.5.7.tar.gz
  13. cd scim-tables-0.5.7
  14. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  15.     ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
  16. make
  17. make install
  18. cd ..

  19. # scim-pinyin-0.5.91.tar.gz
  20. tar xvf /CBLFS/scim-pinyin-0.5.91.tar.gz
  21. cd scim-pinyin-0.5.91
  22. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  23.     ./configure --prefix=/usr --sysconfdir=/etc/scim --libdir=/usr/lib64
  24. make
  25. make install
  26. cd ..

  27. # test
  28. scim &
复制代码


  0610-KdeGraphics-64bit
  KDE的图形图像处理 ( 含 屏幕打印键截屏功能 )

  1. cd /sources
  2. tar xvf /CBLFS/kdegraphics-3.5.7.tar.bz2
  3. # 64bit
  4. export USE_ARCH=64 &&
  5. patch -Np1 -i /CBLFS/kdegraphics-3.5.7-exr-1.patch &&
  6. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  7.     ./configure --prefix=$KDE_PREFIX --libdir=${KDE_PREFIX}/lib64 \
  8.     --disable-debug --disable-dependency-tracking --x-libraries=${XORG_PREFIX}/lib64 \
  9.     --with-qt-libraries=${QTDIR}/lib64 --enable-libsuffix=64 &&
  10. make
  11. make install &&
  12. unset USE_ARCH

  13. cd /sources
  14. rm -rf kdegraphics-3.5.7
复制代码



给KDE换了两个 .ogg 的文件,“很美的竖琴的开关机声音 美妙天籁之音”。
是用oggenc命令转换的,我的笔记本声卡不好,感觉不出转换后的效果和原声 .wav 有何差别。
文件大于 200 K 了。有兴趣可以自己做一下:

rar x sq.rar
按 A 键,回车,按Q 键退出。
然后
oggenc xxx.wav

把转换后的 .ogg 文件复制到 $KDE_PREFIX/share/sounds 目录下的 KDE_Startup_1.ogg 和 KDE_Logout_3.ogg 就可以了。注意原先的文件最好是先改名。

按照国际贯例,传一张图片:

回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-13 22:28:32 | 显示全部楼层

安装几个图形环境中的常用软件

安装几个图形环境中的常用软件

安装 firefox-2.0.07 网页浏览器
这里,如果 只安装 firefox 64bit ,这几个依赖的软件包的也只需要安装 64 位的。但是,用不了 32 位的插件。CBLFS手册中又有说明,如果想只安装32位的,仍然是需要再编译一次64bit的。
有些遗憾的是,我至今仍未用上 flash-player9 的 Plugin 。按 CBLFS 上面方法也没做对,不知应该怪我笨,还是怪那盲文英语太懂了?


  0701-LibIDL
  1. cd /sources
  2. tar xf /CBLFS/libIDL-0.8.8.tar.bz2
  3. cp -a libIDL-0.8.8{,-64}
  4. # 32bit
  5. cd libIDL-0.8.8
  6. CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
  7. ./configure --prefix=/usr &&
  8. make
  9. make install &&
  10. mv -v /usr/bin/libIDL-config-2{,-32}
  11. # 64bit
  12. cd ../libIDL-0.8.8-64
  13. CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
  14. ./configure --prefix=/usr --libdir=/usr/lib64 &&
  15. make
  16. make install &&
  17. mv -v /usr/bin/libIDL-config-2{,-64} &&
  18. ln -sfv multiarch_wrapper /usr/bin/libIDL-config-2
  19. # Documentation
  20. # If you have TeTeX installed and wold like to build the documentation, Run the following command:
  21. #make pdf &&
  22. #make ps &&
  23. #make html &&
  24. #makeinfo --plaintext libIDL2.texi >libIDL2.txt
  25. #install -v -m755 -d /usr/share/doc/libIDL-0.8.8/html &&
  26. #install -v -m644 libIDL2.{pdf,dvi,ps,txt} README \
  27. #    /usr/share/doc/libIDL-0.8.8 &&
  28. #install -v -m644 libIDL2.html/* /usr/share/doc/libIDL-0.8.8/html
  29. cd ..
  30. rm -rf libIDL-0.8.8{,-64}
复制代码

  0702-Zip
  1. cd /sources
  2. tar xf /CBLFS/zip232.tar.gz
  3. cp -a zip-2.32{,-64}
  4. # 32bit
  5. cd zip-2.32
  6. sed -i -e 's@$(INSTALL) man/zip.1@$(INSTALL_PROGRAM) man/zip.1@' \
  7. unix/Makefile &&
  8. make prefix=/usr CC="gcc ${BUILD32}" -f unix/Makefile generic
  9. make prefix=/usr -f unix/Makefile install
  10. # 64bit
  11. cd ../zip-2.32-64
  12. sed -i -e 's@$(INSTALL) man/zip.1@$(INSTALL_PROGRAM) man/zip.1@' \
  13. unix/Makefile &&
  14. make prefix=/usr CC="gcc ${BUILD64}" -f unix/Makefile generic
  15. make prefix=/usr -f unix/Makefile install
  16. cd ..
  17. rm -rf zip-2.32{,-64}
复制代码

  0703-firefox-2.0.0.7
  1. cd /sources
  2. tar xf /CBLFS/firefox-2.0.0.7-source.tar.bz2
  3. cd mozilla
  4. # 32bit
  5. #Creating a .mozconfig
  6. cat > .mozconfig << "EOF"
  7. . $topsrcdir/browser/config/mozconfig
  8. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
  9. ac_cv_visibility_pragma=no
  10. ac_add_options --prefix=/opt/firefox-2.0.0.7
  11. ac_add_options --with-system-nss
  12. ac_add_options --with-system-nspr
  13. ac_add_options --with-system-zlib
  14. ac_add_options --with-system-png
  15. ac_add_options --with-system-jpeg
  16. ac_add_options --enable-system-cairo
  17. ac_add_options --enable-canvas
  18. ac_add_options --enable-svg
  19. ac_add_options --enable-strip
  20. ac_add_options --disable-tests
  21. ac_add_options --disable-accessibility
  22. ac_add_options --disable-installer
  23. ac_add_options --enable-official-branding
  24. EOF
  25. #If you would like dual monitor support, append your your .mozconfig with the following:
  26. cat >> .mozconfig << "EOF"
  27. ac_add_options --enable-xinerama
  28. EOF
  29. #If you have OpenLDAP installed and would like to build against it. This is required to build Open Office. Append your .mozconfig with the following:
  30. #cat >> .mozconfig << "EOF"
  31. #ac_add_options --enable-ldap
  32. #EOF
  33. #If you would like to render fonts with Pango, append your your .mozconfig with the following. This can significantly slow font rendering.
  34. cat >> .mozconfig << "EOF"
  35. ac_add_options --enable-pango
  36. EOF
  37. # 32bit
  38. #Use the following command to append your .mozconfig with 32bit specific flags:
  39. cat >> .mozconfig << EOF
  40. export CC="gcc ${BUILD32}"
  41. export CXX="g++ ${BUILD32}"
  42. export PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}"
  43. export USE_ARCH=32
  44. ac_add_options --host=$CLFS_TARGET32
  45. ac_add_options --build=$CLFS_TARGET32
  46. mk_add_options CONFIG_GUESS=$CLFS_TARGET32
  47. EOF
  48. sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib -lX11 -lXrender:g" config/autoconf.mk.in
  49. make -f client.mk OS_TEST=x86 build
  50. make -f client.mk OS_TEST=x86 install
  51. mv -v /opt/firefox-2.0.0.7/bin/firefox-config{,-32} &&
  52. mv -v /opt/firefox-2.0.0.7/bin/firefox{,-32} &&
  53. ln -sfv /usr/bin/multiarch_wrapper /opt/firefox-2.0.0.7/bin/firefox-config
  54. #64bit
  55. mkdir  /sources/mozilla-64
  56. cd /sources/mozilla-64
  57. tar xf /CBLFS/firefox-2.0.0.7-source.tar.bz2
  58. cd mozilla
  59. #Creating a .mozconfig
  60. cat > .mozconfig << "EOF"
  61. . $topsrcdir/browser/config/mozconfig
  62. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
  63. ac_cv_visibility_pragma=no
  64. ac_add_options --prefix=/opt/firefox-2.0.0.7
  65. ac_add_options --with-system-nss
  66. ac_add_options --with-system-nspr
  67. ac_add_options --with-system-zlib
  68. ac_add_options --with-system-png
  69. ac_add_options --with-system-jpeg
  70. ac_add_options --enable-system-cairo
  71. ac_add_options --enable-canvas
  72. ac_add_options --enable-svg
  73. ac_add_options --enable-strip
  74. ac_add_options --disable-tests
  75. ac_add_options --disable-accessibility
  76. ac_add_options --disable-installer
  77. ac_add_options --enable-official-branding
  78. EOF
  79. #If you would like dual monitor support, append your your .mozconfig with the following:
  80. cat >> .mozconfig << "EOF"
  81. ac_add_options --enable-xinerama
  82. EOF
  83. #If you have OpenLDAP installed and would like to build against it. This is required to build Open Office. Append your .mozconfig with the following:
  84. #cat >> .mozconfig << "EOF"
  85. #ac_add_options --enable-ldap
  86. #EOF
  87. #If you would like to render fonts with Pango, append your your .mozconfig with the following. This can significantly slow font rendering.
  88. cat >> .mozconfig << "EOF"
  89. ac_add_options --enable-pango
  90. EOF
  91. #Use the following command to append your .mozconfig with 64bit specific flags:
  92. cat >> .mozconfig << EOF
  93. ac_add_options --libdir=/opt/firefox-2.0.0.7/lib64
  94. export CC="gcc ${BUILD64}"
  95. export CXX="g++ ${BUILD64}"
  96. export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
  97. export USE_ARCH=64
  98. EOF
  99. sed -i "s:@MOZ_GTK2_LIBS@:& -L${XORG_PREFIX}/lib64 -lX11 -lXrender:g" config/autoconf.mk.in
  100. make -f client.mk build
  101. make -f client.mk install &&
  102. mv -v /opt/firefox-2.0.0.7/bin/firefox-config{,-64} &&
  103. ln -sfv /usr/bin/multiarch_wrapper /opt/firefox-2.0.0.7/bin/firefox-config
  104. # Bash Startup Files
  105. #If you're using the Bash Startup Files create an addition for firefox with the following commands, otherwise make sure the enviornment variables are set in your profile:
  106. cat > /etc/profile.d/50-firefox.sh << "EOF"
  107. # Begin /etc/profile.d/50-firefox.sh
  108. export PATH="${PATH}:/opt/firefox-2.0.0.7/bin"
  109. export PKG_CONFIG_PATH32="${PKG_CONFIG_PATH32}${PKG_CONFIG_PATH32+:}/opt/firefox-2.0.0.7/lib/pkgconfig"
  110. export PKG_CONFIG_PATHN32="${PKG_CONFIG_PATHN32}${PKG_CONFIG_PATHN32+:}/opt/firefox-2.0.0.7/lib32/pkgconfig"
  111. export PKG_CONFIG_PATH64="${PKG_CONFIG_PATH64}${PKG_CONFIG_PATH64+:}/opt/firefox-2.0.0.7/lib64/pkgconfig"
  112. # End /etc/profile.d/50-firefox.sh
  113. EOF
  114. #Creating the Desktop File
  115. cat > /usr/share/applications/firefox.desktop << "EOF"
  116. [Desktop Entry]
  117. Encoding=UTF-8
  118. Name=Mozilla Firefox Browser
  119. Comment=Lightweight Browser Based on Mozilla
  120. Exec=firefox
  121. Icon=firefox.png
  122. Terminal=false
  123. Type=Application
  124. MimeType=text/html;
  125. Categories=Application;Network;
  126. EOF
  127. #cp -a /CBLFS/firefox-64.png /usr/share/pixmaps/firefox.png
  128. #Grab the Firefox pixmap from http://cross-lfs.org/~jciccone/firefox.png and put it in /usr/share/pixmaps. If you built both a 32-bit and 64-bit version of Firefox, you can grab unofficial Firefox pixmaps that will help you keep track of which one you're launching from http://cross-lfs.org/~arowland/firefox.png for 32-bit and http://cross-lfs.org/~arowland/firefox-64.png for the 64-bit version. These are useful for launchers on your panel.
  129. cd /sources
  130. #test
  131. firefox
  132. # rm -rf mozilla{,-64}
复制代码

  0704-Flash_Player
[code]
回复 支持 反对

使用道具 举报

发表于 2007-9-14 06:45:56 | 显示全部楼层
貌似系统是由 gcc-4.2.1 建立的,编译 Xorg 时改用 gcc-4.1.2,对不?

不知道刚发行的 Xorg-7.3 能否用 gcc-4.2.1 通过编译 :ask
回复 支持 反对

使用道具 举报

发表于 2007-9-14 09:23:20 | 显示全部楼层
Post by d00m3d
不知道刚发行的 Xorg-7.3 能否用 gcc-4.2.1 通过编译 :ask

Debian 里 Xorg-7.3 刚刚进入 experimental ,应该就是 gcc-4.2.1 编译的。只不过 Debian 里的 gcc 是新的 snapshot ,patch 了好些东西
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 11:14:31 | 显示全部楼层
Post by d00m3d
貌似系统是由 gcc-4.2.1 建立的,编译 Xorg 时改用 gcc-4.1.2,对不?

不知道刚发行的 Xorg-7.3 能否用 gcc-4.2.1 通过编译 :ask

是这样的, GCC-4.2.1 编译XSERVER 直接就通过了,因为我的笔记本是 1GB内存+2GB的SWAP ..
当时,我是从台式机 SSH 登录到笔记本系统中做的. FREE看了一下,内存占用很高,故猜测以前用台式机用GCC-4.2无法通过XSERVER是因为物理内存只有512M的原因.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 14:48:47 | 显示全部楼层
我发现一个问题:

我的酷睿2双核处理器. 在编译的时候只占用了50%左右的CPU资源,总是跑不满, 有什么办法没?
回复 支持 反对

使用道具 举报

发表于 2007-9-14 15:57:36 | 显示全部楼层
楼主用的马甲?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 17:02:59 | 显示全部楼层
Post by youbest
楼主用的马甲?

还是让您认出来了。以前的帐号不想用了,现在是重新开始。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 17:09:57 | 显示全部楼层
刷新率上不去。
显卡驱动也不知道上哪儿去找。颜色惨白……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表