D
D
Denis Medved2012-05-28 23:10:48
Qt
Denis Medved, 2012-05-28 23:10:48

How to build Qt 4.8.1 under windows 7 with webkit?

Hello!
Everything was done according to the instructions. Successfully built Qt with options " configure -release -static -opensource -no-qt3support -no-3dnow -no-sse -no-sse2 -no-phonon -no-webkit ". After that, I successfully built QtWebkit downloaded from the FTP server ftp.qt.nokia.com with the parameters " build-webkit --qt --release ". Dependencies and environment parameters are set according to the instructions. The QTDIR parameter is set to the directory with the built Qt. It would seem that everything should work, but when I try to build a project with a webkit dependency, I get the following:

32/bin/ld.exe: cannot find -lwebcore
c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.4.7/../../../../i686-w64-mingw
32/bin/ld.exe: cannot find -ljscore
collect2: ld returned 1 exit status
mingw32-make[1]: *** [bin\program.exe] Error 1

The same project will build fine on a Gnu/Linux/Fedora distribution.
Additional Information:
PATH=C:\Program Files\Common Files\Microsoft Shared
\Windows Live;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system
32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.
0\;C:\Program Files\Common Files\Acronis\SnapAPI\;C:\strawberry\c\bin;C:\strawbe
rry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files\QuickTime\QTSystem\;C:
\curl;C:\GnuWin32\bin;C:\perl\bin;C:\Python27;C:\OpenSSL-Win32\bin;C:\MinGW\bin;
C:\Program Files\CMake 2.8\bin;C:\Qt\4.8.1\bin;C:\windows\system32;C:\cygwin\bin

I've been trying to start it for a long time but it doesn't work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Sysolyatin, 2012-05-29
@BuCeFaL

Qt does not support static webkit builds due to the webkit's license agreement. For this reason, they don't test static builds with it, and sometimes turn it off on purpose. But, if you really need it, you can collect it. To do this, after building the webkit itself, put jscore.lib in the Qt lib directory.
In addition, in the Makefiles of projects that are not going to, you need to replace "../JavaScriptCore/release\jscore.lib" with just "jscore.lib"
Well, of course, you also need to link jscore.lib in your projects.
The solution is only for windows assembly.

I
ixSci, 2012-05-29
@ixSci

What's the point of building Qt without WebKit and then trying to build another WebKit? Why don't you pick it up right away?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question