Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

[QT5] How do I build pile of this dog shit?!

$
0
0
Excuse me for my french, but can somebody give normal instructions on how to build QT5 with WebKit?! EVERYTHING SO FAR WAS WASTE OF TIME, nothing does the job right. Why suddenly QT5 does not provide vs2008 builds?! Wouldn’t be a big deal if I could build it myself (I had to build QT4 myself anyways because of some bugs here and there in official releases that for some reason miss some exports). Let me guess… it was decided to drop vs2008 in QT5 because QT people weren’t able to build it with 2008 themselves? Am I right? SO, I was following 50 (maybe 55, I lost the count, sorry) different readmes all over the web and all kinds of links on QT sites. After wasting a day of my life finally I was able to compile QT5.0.2 with vs2008…. ooooh, suddenly, now it doesn’t build WebKit anymore… ok, there are some supper random BS readmes on how to build it… QT readme reffers to http://trac.webkit.org/wiki/BuildingQtOnWindows which has some random confusing BS, and one part tells to check out trunk… I thought that if it tells to check it out, then I need to do it, since I never checked out WebKit source which I probably need to be able to build it. After wasting 5 hours (I’ve never seen anything worse than WebKit svn – it just aborts every 5-10 minutes, and I virtually have unlimited speed connection)… after wasting hours of time… I noticed that qt-everywhere-opensource-src-5.0.2.zip actually had WebKit source! WTF is that, why are these random guides tell to check out trunk?! Ok, after I wasted 5 hours trying to check out webkit, I deleted 2GB of webkit crap and was set to build it from qt distribution source… after wasting time here and there it seem that I’ve build release version so far and debug build is on it’s way. Honestly… it’s worst frustrating experience dealing with QT builds (4.8.4 was just awesome compared to that pile of crap that QT5 became). Here I’ll list some of my findings… 1) http://qt-project.org/wiki/Building-Qt-5-from-Git: pile of BS. First command after cloning it FAILS: C:\Qt\qt5>perl init-repository + git submodule init No submodule mapping found in .gitmodules for path 'qlalr' git submodule init exited with status 256 at init-repository line 300. So, pretty much my attempts building from GIT were finished right here. Obviosuly, it’s abandoned and unmaintained way of building QT5, why isn’t this page tells readers not to follow these instructions if they don’t want to waste time?. That Building-Qt-5-from-Git should be taken down so that people don’t get confused. Weird, that page was updated two weeks ago, but it just doesn’t work completely! 2) So, I started building from qt-everywhere-opensource-src-5.0.2.zip. My first negative impression: why is that generation of Visual Studio project files was removed (even though configure for some reason tells that it’s possible with -vcproj option which simply does not work). Is it influenced by Nokia or what? I’m sorry, but I don’t know any better way to browse source code and see what’s going on and search find references etc… For 4.8.4 all I had to do was to open C:\Qt\qt-everywhere-opensource-src-4.8.4\projects.sln that’s all, I didn’t need to memorize any structure or location of files, I didn’t need to click 20 different folders and search for files. Can you please fix this MAJOR REGRESSION!? 3) Ok… VS project generation is broken, whatever, I still needed to build. I need QtWebKit with OpenSSL. Here I wasted hours of bulding/cleaning/reconfiguring and everytime I was getting link errors related to SSL but the link errors weren’t even related to OpenSSL! It appeares that broken configure somehow enables OpenSSL only partially: some files weren’t included in the build and as a result I was always getting error in unresolved QSslCertificate::operator== or something like that. Only when I browsed to that folder (in explorer instead of VS becase of broken VS project generation) I looked into qtbase\src\network\ssl\ssl.pri only there on line 23 there were proper instructions on how to enable OpenSSL linking. Looks like broken configure enables OpenSSL, but doesn’t include actuall ssl related source becuase it wasn’t able to properly sniff OpenSSL libs that I had in my include/lib paths. Only when I added extra params as mentioned in ssl.pri I was FINALLY alble to make first build of qt5 with VS 2008. I admit that I’m probably stupid that I didn’t look into that qtbase\src\network\ssl\ssl.pri before reading readmes and trying to build, it’s probably so obvious that this file needs to tbe consulted beforehand that nothing even mentions that, it’s probably one of those must haves like check that your computer connected to power source before attempting to build QT5! Here was my cmd line: configure -prefix C:\Qt\5.0.2 -debug-and-release -no-ltcg -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -platform win32-msvc2008 -vcproj -opensource -confirm-license -openssl -openssl-linked -I C:\QT\OpenSSL-Win32\include -L C:\QT\OpenSSL-Win32\lib\VC\static OPENSSL_LIBS="-lUser32 -lAdvapi32 -lGdi32" OPENSSL_LIBS_DEBUG="-lssleay32MDd -llibeay32MDd" OPENSSL_LIBS_RELEASE="-lssleay32MD -llibeay32MD" -icu -I C:\Qt\icu\dist\include -L C:\Qt\icu\dist\lib -nomake tests -nomake examples -make-tool jom and I don’t mention minor fixes that I had to do here and there to fix compilation/linking. I had to add missing math.h because one file was using fabsf which gave errors. There were some random errors in building dbus-related code, but I think it was some example that was breaking build and after I disabled test and examples with “-nomake tests -nomake examples” I was able to finally build this pile of crap.

Viewing all articles
Browse latest Browse all 13965

Trending Articles