LinuxSir.cn,穿越时空的Linuxsir!

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

让SUSE的中文和WIN再没有区别

[复制链接]
发表于 2003-6-3 17:00:02 | 显示全部楼层
赶快坦白吧
发表于 2003-6-3 17:18:29 | 显示全部楼层
我是用firefly的patch自己编译的qt,freetype,fontconfig,render,xrender,xft,pango.
我做了安装包不过是for slackware 的,再有我是小猫上网的也传不了那么大的文件,反正就这几个模块要重新编译过得,大家自己编译就行了。
 楼主| 发表于 2003-6-3 17:28:27 | 显示全部楼层
重新编译QT有没有对速度产生什么影响啊?我编译过一次,没弄好,后来又换回去了.
发表于 2003-6-3 17:59:11 | 显示全部楼层
我没讲清楚,我这是在slackware下做的,因为他官方有制作安装包的脚本,一运行就会自动给我作出一个.tgz 的for slackware的安装包,之后安装那个qt的tgz包就可以了,suse下你可以参考一下这个(slackware的脚本,还有几个补丁):

#!/bin/sh
# Build Qt

VERSION=3.1.2
ARCH=i686
BUILD=M1

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-qt
rm -r $PKG
mkdir -p $PKG
HTMLDOCS=$TMP/package-qt-htmldocs
EXAMPLES=$TMP/package-qt-examples

# Trust me, we avoid a lot of problems building in the target location. :-)
cd /usr/lib
# NOTE THIS NUKES THE EXISTING QT
rm -rf qt*
tar xjvf $CWD/qt-x11-free-$VERSION.tar.bz2
mv qt-x11-free-$VERSION qt
cd qt
QTDIR=`pwd`
export QTDIR
export YACC='byacc -d'
zcat $CWD/qt.cflags.diff.gz | patch -p1
zcat $CWD/qt-x11.diff.gz | patch -p1
zcat $CWD/qt.mysql.h.diff.gz | patch -p1
zcat $CWD/qt-x11-free-3.1.2-qfont-jp-family-subst-20030223.patch.gz | patch -p1
zcat $CWD/qt-x11-free-3.1.2-qpsprinter-ttc-italic-20030309.patch.gz | patch -p1
# Fix file perms:
chown -R root.root .
find . -perm 2775 -exec chmod 755 {} \;
find . -perm 2755 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
find . -perm 444 -exec chmod 644 {} \;

# Make symlinks for the examples/docs right away:
mkdir -p $PKG/usr/doc/qt-$VERSION
( cd $PKG/usr/doc/qt-$VERSION
  ln -sf /usr/lib/qt-$VERSION/examples .
  ln -sf /usr/lib/qt-$VERSION/tutorial .
  ln -sf /usr/lib/qt-$VERSION/doc/flyers .
  ln -sf /usr/lib/qt-$VERSION/doc/html .
  ln -sf /usr/lib/qt-$VERSION/doc/man .
)

# These are the flags recommended by KDE:
#./configure -system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng -thread -no-stl -no-xinerama -no-g++-exceptions
# And here's what we are currently using.  The "yes" agrees to the GPL, so don't run this script if you
# don't agree.  :-)
echo "yes" | ./configure -prefix /usr/lib/qt -release -system-zlib -qt-gif -system-libpng -system-libjpeg -plugin-imgfmt-mng -thread -no-stl -no-g++-exceptions -xft -plugin-sql-mysql
# We're using '-i' to work around a bug where the build tries to strip html files.
# Build the important stuff:
make -i symlinks sub-src sub-tools

# Half the time this doesn't work for squat, so don't write to tell me I should be
# using "make install".  The methods used here are more likely to continue to work.
#make -i INSTALL_ROOT=$PKG moc-install src-install tools-install qmake-install plugins-install  

# Add libqt symlinks:
( cd /usr/lib/qt/lib
  for link in libqt.so libqt.so.3 libqt.so.`echo $VERSION | cut -f 1-2 -d .` libqt.so.${VERSION} ; do
    ln -sf libqt-mt.so.${VERSION} $link
  done
)

# Then, package things up in $PKG:
mkdir -p $PKG/usr/lib
cp -a /usr/lib/qt $PKG/usr/lib
( cd $PKG/usr/lib
  mv qt qt-$VERSION
  ln -sf qt-$VERSION qt )

( cd $PKG/usr/lib/qt-$VERSION
  mv \
    FAQ INSTALL LICENSE.GPL LICENSE.QPL MANIFEST PLATFORMS README README.QT changes* \
    $PKG/usr/doc/qt-$VERSION )

gzip -9 $PKG/usr/lib/qt/doc/man/man*/*

( cd $PKG/usr/lib/qt/include/private
  mkdir tmp
  cp *.h tmp
  rm *.h
  mv tmp/* .
  rmdir tmp
  cd ..
  mkdir tmp
  cp *.h tmp
  rm *.h
  mv tmp/* .
  rmdir tmp )

( cd $PKG/usr/lib/qt/bin
  cp qmake qmake.bin
  rm qmake
  mv qmake.bin qmake
  strip * )

mkdir -p $PKG/usr/bin
chown root.bin $PKG/usr/bin
( cd $PKG/usr/bin
  for file in assistant designer linguist lrelease lupdate moc qm2ts qmake qtconfig uic ; do
    ln -sf /usr/lib/qt/bin/$file .
  done )

( cd $PKG/usr/lib/qt/lib
  strip --strip-unneeded *.so
  rm README )

( cd $PKG/usr/lib/qt/plugins
  #rm -r accessibleqtwidgets.prl sqldrivers src styles
  find . -type d -name .obj -exec rm -r {} \;
  find . -type d -name .moc -exec rm -r {} \;
  strip --strip-unneeded */*.so )

( cd $PKG/usr/lib/qt
  rm -r config.tests qmake src tools translations
  rm config.status configure Makefile )

mkdir -p $PKG/etc/profile.d
cat $CWD/profile.d/qt.sh > $PKG/etc/profile.d/qt.sh
cat $CWD/profile.d/qt.csh > $PKG/etc/profile.d/qt.csh
chmod 755 $PKG/etc/profile.d/*

# Put this back as shipped:
( cd $PKG/usr/lib/qt
  zcat $CWD/qt.cflags.diff.gz | patch -p1 -R )

mkdir -p $PKG/install
zcat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

## Maybe something for later?  :-)
##
## HTML documentation and examples are HUGE so they go in their own packages.
#rm -rf $HTMLDOCS $EXAMPLES
#mkdir -p $HTMLDOCS/usr/doc/qt-$VERSION $EXAMPLES/usr/doc/qt-$VERSION
#mv $PKG/usr/doc/qt-$VERSION/html $HTMLDOCS/usr/doc/qt-$VERSION
#mv $PKG/usr/doc/qt-$VERSION/examples $EXAMPLES/usr/doc/qt-$VERSION
#cd $HTMLDOCS
#makepkg -l y -c n $TMP/qt-htmldocs-$VERSION-noarch-$BUILD.tgz
#cd $EXAMPLES
#makepkg -l y -c n $TMP/qt-examples-$VERSION-noarch-$BUILD.tgz

# Build package:
cd $PKG
makepkg -l y -c n $TMP/qt-$VERSION-$ARCH-$BUILD.tgz
发表于 2003-6-3 18:01:42 | 显示全部楼层
看到了吧,我已经把firefly的patch也加进去了。
zcat $CWD/qt-x11-free-3.1.2-qfont-jp-family-subst-20030223.patch.gz | patch -p1
zcat $CWD/qt-x11-free-3.1.2-qpsprinter-ttc-italic-20030309.patch.gz | patch -p1
就这两行。
 楼主| 发表于 2003-6-4 01:13:35 | 显示全部楼层

我又编了一次,成功了

以前的路径设置错了,没能换掉原来的,呵呵,就是不知道性能和原来SUSE的会不会有区别,如果变慢了就不划算了,试试再说

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2003-6-4 01:17:29 | 显示全部楼层

我倒!!

默认没加gif选项,哈哈,不能显示gif图片,爽死了,再来.
发表于 2003-6-4 09:47:05 | 显示全部楼层
8错8错,衷心感谢各位如此奋斗
发表于 2003-6-4 10:59:29 | 显示全部楼层
中文字体效果不错,英文字体好象不是很好。
 楼主| 发表于 2003-6-4 11:40:55 | 显示全部楼层
重编了QT,虽然选择中文好些了,但是,其它的毛病也来了,我用的是ML的源码里的QT重编的,只有几个style,难看死了,唉.看来对我还说,还真是得"去掉界面华丽"了.哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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