废话不说了,和前两篇<
debian下编译firefox-3.6><
debian下编译thunderbird-3.0>没太大区别
参考:
重要工具版本
gcc 4.4.3
perl 5.10
make 3.81
GTK+ 2.18.6
xorg 7.5
sudo aptitude build-dep iceape
sudo apt-get install libdbus-glib-1-dev libnotify-dev libasound2-dev
libsqlite3-dev libidl-dev libiw-dev xorg-dev
wget
tar xvf seamonkey-2.0.2.source.tar.bz2
加上几个优化参数:
export CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
&&
CXXFLAGS=$CFLAGS
-march=native或者指定architecture,需要根据
自己的机器,我的是core2,参考
进入解压出来的目录,先写.mozconfig:
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
ac_add_options --enable-application=suite
ac_add_options --prefix=/opt/seamonkey-2.0.2
ac_cv_visibility_pragma=no
ac_add_options --with-nspr-prefix=/usr
ac_add_options --with-nss-prefix=/usr
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-bz2
ac_add_options --with-system-zlib
#ac_add_options --with-system-png
ac_add_options --with-system-jpeg
ac_add_options --enable-optimize
ac_add_options --enable-system-cairo
ac_add_options --enable-canvas
ac_add_options --enable-strip
ac_add_options --enable-svg
ac_add_options --enable-ldap
ac_add_options --enable-pango
ac_add_options --enable-safe-browsing
ac_add_options --enable-system-sqlite
ac_add_options --disable-debug
ac_add_options --disable-xprint
ac_add_options --disable-crashreporter
ac_add_options --disable-mochitest
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --disable-installer
ac_add_options --disable-accessibility
ac_add_options --disable-javaxpcom
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
开始编译
make -f client.mk build
同<
debian下编译thunderbird- 3.0>一样,会出现/usr/bin/ld: cannot find -lsoftokn3的问题
所以需要手动过这关:
pushd obj-x86_64-unknown-linux-gnu/directory/c-sdk/ldap/libraries/libssldap
gcc -shared -Wl,-soname -Wl,libssldap60.so -o libssldap60.so ./clientinit.o ./ldapsinit.o ./errormap.o -L/home/stesen/downloads/comm-1.9.1/obj-x86_64-unknown-linux-gnu/mozilla/dist/lib -lldap60 -lprldap60 -L/usr/lib -lssl3 -lsmime3 -lnss3 -lnssutil3 -lssl3 -lnss3 -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lplc4 -lplds4 -lnspr4
popd
然后继续:
make -f client.mk build
最后安装
sudo make -f client.mk install
sudo mkdir /opt/seamonkey-2.0.2/lib/seamonkey-2.0.2/ldap
sudo install -v -m644 obj-x86_64-unknown-linux-gnu/mozilla/dist/public/ldap-private/* /opt/seamonkey-2.0.2/lib/seamonkey-2.0.2/ldap
sudo ln -v -sf nss.pc /usr/lib/pkgconfig/seamonkey-nss.pc
sudo ln -v -sf nspr.pc /usr/lib/pkgconfig/seamonkey-nspr.pc
可执行文件在/opt/seamonkey-2.0.2/lib/seamonkey-2.0.2/seamonkey
sudo ln -sv /opt/seamonkey-2.0.2/lib/seamonkey-2.0.2/seamonkey /usr/local/bin
阅读(822) | 评论(0) | 转发(0) |