總網頁瀏覽量
咕狗大神
2012年1月24日 星期二
2012年1月20日 星期五
2012年1月17日 星期二
編譯支援 audio & video 的 QtWebKit
需要幾個 lib =>
=== libxml2 ===
> wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.8.tar.gz
> tar -xvzf libxml2-sources-2.7.8.tar.gz
> cd libxml2-2.7.8
> ./configure --prefix=/home/work/dist --without-python
> make
> make install
=== zlib ===
> wget http://www.zlib.net/zlib-1.2.5.tar.gz
> tar -xvzf zlib-1.2.3.tar.gz
> cd zlib-1.2.3.tar.gz
> ./configure --prefix=/home/work/dist
> make
> make install
> tar -xvzf zlib-1.2.3.tar.gz
> cd zlib-1.2.3.tar.gz
> ./configure --prefix=/home/work/dist
> make
> make install
=== glib ===
- 下載(http://www.icewalkers.com/Linux/Software/515980/GLib2.html) glib2.0_2.30.1.tar.bz2
> apt-get install libffi-dev, gettext
> tar -xvjf glib2.0_2.30.1.tar.bz2
> cd glib2.0_2.30.1
>./configure --prefix=/home/work/dist CFLAGS="-I/home/work/dist/include -L/home/work/dist/lib" glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_lib_rt_clock_gettime=no glib_cv_monotonic_clock=yes
>./configure --prefix=/home/work/dist CFLAGS="-I/home/work/dist/include -L/home/work/dist/lib" glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_lib_rt_clock_gettime=no glib_cv_monotonic_clock=yes
> make
> make install
=== gstreamer ===
- 下載(http://gstreamer.freedesktop.org/src/gstreamer/)gstreamer-0.10.35.tar.gz
> export PKG_CONFIG_PATH=/home/work/dist/lib/pkgconfig
> ./configure --prefix=/home/work/dist CFLAGS=-I/home/work/dist/include --disable-registry --disable-gtk-doc ac_cv_func_register_printf_function=no --disable-tests --disable-valgrind --disable-debug --disable-gst-debug
> make && make install
== gst plugin base ===
- 下载(http://gstreamer.freedesktop.org/src/gst-plugins-base/)gst-plugins-base-0.10.35.tar.gz
> export PKG_CONFIG_PATH=/home/work/dist/lib/pkgconfig
> ./configure --prefix=/home/work/dist CFLAGS=-I/home/work/dist/include --disable-valgrind --disable-gnome_vfs --disable-alsa --disable-pango --disable-theora --disable-examples
> make && make install
=== qt ===
- 先裝 libX11-dev、libXext-dev、libXtst-dev、libqglviewer-dev、libmysql++-dev、g++ 等開發工具包(sudo apt-get install ....)
- 修改 configure,加上"PKG_CONFIG_PATH=/home/work/dist/lib/pkgconfig"
- 記得在 configure 的眾多參數當中,加上 -force-pkg-config
- 在 qt-XXX-4.8.0/src/3party/webkit/Source/WebKit.pro 加上 LIBS += -L/home/work/dist/lib
- 大概建議用這樣的參數
> export PKG_CONFIG_PATH=/home/work/dist/lib/pkgconfig
> sudo ./configure -qt-libmng -qt-zlib -qt-libtiff -qt-sql-mysql -qt-libpng -qt-libjpeg -no-qt3support -webkit -force-pkg-config -opengl -prefix /opt/qt-4.8.0 -nomake examples -nomake demos -nomake docs
> sudo ./configure -qt-libmng -qt-zlib -qt-libtiff -qt-sql-mysql -qt-libpng -qt-libjpeg -no-qt3support -webkit -force-pkg-config -opengl -prefix /opt/qt-4.8.0 -nomake examples -nomake demos -nomake docs
2012年1月11日 星期三
2012年1月9日 星期一
訂閱:
文章 (Atom)