08-29-2012, 11:09 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: none
|
Sigil Error: QtWebKitd4.dll is missing
I intend tweeking Sigil. I started by compiling Sigil from source on Windows 7 (32 bit) using Visual Studio 2010, configured Qt for VS2010, and installed cmake. All added to system Path according individual documentation. But when I run the installed Sigil from the build, I get the following error:
"The program can't start because QtWebKit4.dll is missing from your computer. Try reinstalling the program to fix this problem" Please, can anyone tell me what is causing this problem and how to resolve the issue or more efficient way to compile Sigil from source on Windows. I did try MinGW but it didn't work either. I used the following flag to configure the Qt for VS2010: Code:
configure.exe -platform win32-msvc2010 -opensource -qt-zlib -no-webkit -qt-libpng -qt-libmng -qt-libtiff -no-qt3support -qt-libjpeg -nomake tools -nomake examples -nomake demos -nomake docs -nomake translations -ltcg |
08-30-2012, 03:42 AM | #2 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Yeah the instructions for Windows are a bit incomplete/out of date.
When you build from Visual Studio, your bin\debug folder only contains the Sigil.exe and nothing else. You have to copy all the other necessary files into that folder as per the screenshot. Note that for a debug build, you need the Qt dlls (from your Qt 4.8.2 bin folder from the VS 2010 Qt install) that end with d4.dll. If you do one of the Sigil release builds, you need the Qt dlls that don't have the d in the suffix name. The rest of the folders come from the src\Sigil\Resource_Files folder. Note the slight name difference for the dictionaries -> hunspell_dictionaries. What tweaks do you have in mind? I am sure Dave & I would be interested to know, we have made a huge number of changes on the as yet unreleased code that you will see if you have cloned the latest Sigil source. Be good to have someone else testing them out (though bear in mind stuff that is in there currently is not guaranteed to survive the cut for the official beta release)... |
Advert | |
|
08-30-2012, 05:39 AM | #3 | ||
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: none
|
Thanks for your reply Kiwidude.
Quote:
Quote:
|
||
08-30-2012, 07:03 AM | #4 | |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I've found that configuring Sigil (cmake) with the "-DCMAKE_BUILD_TYPE=Release" option stops Sigil from barking about missing debug versions of the various Qt libs after building the binary Windows installer package and using it to install Sigil on a "virgin" machine. Last edited by DiapDealer; 08-30-2012 at 07:11 AM. |
|
08-30-2012, 07:58 AM | #5 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
+1 on what DiapDealer said about Webkit - the instructions for building Qt for Sigil don't say to do that so not quite sure why you did?
Having pored over the code in detail pretty much every day for the last few months I really can't recommend anyone use either the 0.5.3 codebase or indeed Qt 4.7.4 as the basis for tweaking. You are going to inherit a whole lot of bugs and pain that will distract from your own changes you want to make, stuff that had already been sorted out for 0.6. Instead just download the official Qt 4.8.2 package built for VS 2010 and install that, no need to build Qt yourself on Windows. Then just follow the rest of the instructions for cmake to get the VS 2010 solution and what I suggested above using the latest Sigil source code. At least that way if you want to reapply your changes against a final Sigil beta/release you will be in a far better position for doing so than against 0.5.3. Given we are still changing the latest code daily you would in a perfect world be better off waiting for an official release point. The latest checked-in code doesn't have any showstopper bugs we have found in it so far apart from an intermittent crash issue with Replace All (that may be PCRE related). |
Advert | |
|
08-31-2012, 11:40 AM | #6 |
Guru
Posts: 858
Karma: 1027478
Join Date: Aug 2010
Location: South of France
Device: kindle dx; eDGe
|
Does that mean that when the latest code is released it won't build on Qt 4.7.3? I ask because that is the latest version of Qt that we have on OS/2.
Since the only version of Sigil we have for OS/2 is 0.2.0 I was going to try and learn how to build it and so save having to start a VM with windows just to do some editing. Now it looks as if I can forget that idea. |
08-31-2012, 02:09 PM | #7 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Correct - it won't build on less than 4.8.0.
|
08-31-2012, 03:53 PM | #8 |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
09-01-2012, 03:14 AM | #9 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Aug 2012
Device: none
|
Quote:
I don't wish to manually copy the Qt libs but want to build binary Windows installer package with vs2010 which would install and run on a "virgin" machine without asking for Qt lib. |
|
09-01-2012, 12:38 PM | #10 | |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
cmake -G "Visual Studio 10" -DCMAKE_BUILD_TYPE=Release /path/to/sigil/code I'd also seriously consider using the pre-built Qt libraries for Visual Studio 10 (4.8.2) instead of configuring/compiling your own custom Qt. It's just not necessary to build your own Qt and it might actually cause issues if you don't do it "just right" (plus it takes for-friggin-ever to compile each time—when you inevitably find out you didn't do it right the first time). Make sure you start from scratch: fresh downloaded and/or extracted source package ... new/empty build directory before running cmake. Last edited by DiapDealer; 09-01-2012 at 12:41 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil 0.5.3 - spellchecker missing? | Naloomi | Sigil | 3 | 08-08-2012 09:03 PM |
Kindle App Error QtWebKit4.dll was not found | Dasha | Amazon Kindle | 8 | 07-31-2012 06:44 AM |
Missing TOC Editor in Sigil .4 | jmike000 | Writers' Corner | 5 | 06-07-2011 12:23 PM |
Missing TOC Editor in Sigil 0.4 | jmike000 | Introduce Yourself | 2 | 06-05-2011 09:22 AM |