c++ - Is that possible to build static Qt library with webkit enabled? And how? -


i tried build static qt library following command:

./configure --prefix=/usr/local/qt --static --accessibility --multimedia --audio-backend --svg --webkit --javascript-jit --script --scripttools --declarative --dbus --debug 

but got message said:

warning: using static linking disable webkit module. 

is possible build static qt library modules enabled? , how?

thanks

for qt 4.8.3 had patch .pro files make single qtwebkit instead of separate webkit , javascriptcore libraries. linker gets confused because there inter-dependencies between 2 libraries.

not sure if similar approach work qt 4.7.1.

i'm not going mention licensing issues.

diff --git a/mkspecs/common/linux.conf b/mkspecs/common/linux.conf index d60533e..6a7ffa7 100644 --- a/mkspecs/common/linux.conf +++ b/mkspecs/common/linux.conf @@ -7,8 +7,8 @@ qmake_cxxflags_thread   += $$qmake_cflags_thread   qmake_incdir          =  qmake_libdir          = -qmake_incdir_x11      = /usr/x11r6/include -qmake_libdir_x11      = /usr/x11r6/lib +qmake_incdir_x11      = /usr/include/x11 +qmake_libdir_x11      = /usr/lib/x11  qmake_incdir_qt       = $$[qt_install_headers]  qmake_libdir_qt       = $$[qt_install_libs]  qmake_incdir_opengl   = /usr/x11r6/include diff --git a/mkspecs/linux-g++-64/qmake.conf b/mkspecs/linux-g++-64/qmake.conf index 222f6b7..3780295 100644 --- a/mkspecs/linux-g++-64/qmake.conf +++ b/mkspecs/linux-g++-64/qmake.conf @@ -20,7 +20,7 @@ include(../common/gcc-base-unix.conf)  include(../common/g++-unix.conf)   -qmake_libdir_x11      = /usr/x11r6/lib64 -qmake_libdir_opengl   = /usr/x11r6/lib64 +qmake_libdir_x11      = /usr/lib/x11 +qmake_libdir_opengl   = /usr/lib/x11   load(qt_config) diff --git a/src/3rdparty/webkit/source/webkit.pro b/src/3rdparty/webkit/source/webkit.pro index 9be0f4a..c1e575d 100644 --- a/src/3rdparty/webkit/source/webkit.pro +++ b/src/3rdparty/webkit/source/webkit.pro @@ -3,14 +3,9 @@ config += ordered   include(webkit.pri)  -!v8 { -    exists($$pwd/javascriptcore/javascriptcore.pro): subdirs += javascriptcore/javascriptcore.pro -    exists($$pwd/javascriptcore/jsc.pro): subdirs += javascriptcore/jsc.pro -}   webkit2:exists($$pwd/webkit2/webkit2.pro): subdirs += webkit2/webkit2.pro  -subdirs += webcore  subdirs += webkit/qt/qtwebkit.pro   webkit2 { diff --git a/src/3rdparty/webkit/source/webkit/qt/qtwebkit.pro b/src/3rdparty/webkit/source/webkit/qt/qtwebkit.pro index 847f6f4..e2daf24 100644 --- a/src/3rdparty/webkit/source/webkit/qt/qtwebkit.pro +++ b/src/3rdparty/webkit/source/webkit/qt/qtwebkit.pro @@ -2,7 +2,6 @@  config += building-libs  config += depend_includepath  -target = qtwebkit  template = lib 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -