xTuple.com xTupleU Blog & News Customer Support

QTWebkit problem building 4.11.x on Windows

I’ve been playing around with building the 4.11.x qt client on windows using msys2. I know I can download the client but I want to get familiar with the code.

I got operpt working and connecting to a database and csvimp has built successfully. However when I try to build xtuple I get the following error:

ar -M < object_script.libxtuplecommon.Release
mingw32-make[2]: Leaving directory ‘D:/xtuple/qt-client/common’
mingw32-make[1]: Leaving directory ‘D:/xtuple/qt-client/common’
cd scriptapi\ && ( if not exist Makefile d:\xtuple\qt\qtbase\bin\qmake.exe D:\xtuple\qt-client\scriptapi\scriptapi.pro -o Makefile ) && mingw32-make -f Makefile
Project ERROR: Unknown module(s) in QT: webkit webkitwidgets
mingw32-make: *** [Makefile:86: sub-scriptapi-make_first-ordered] Error 3

So it looks like I needed to have built webkit. Does anyone have details on building this? I built ICU and added its path to PATH before calling configure. Do I need to add more code and build or is there some other way to fix this message?

Thanks in advance for any help you can provide.

If you are just trying to build the client to check out xTuple’s source code and to tinker with your own client, I would highly suggest just using Qt’s binary distribution of Qt 5.5.1 for Windows, and saving yourself the headache of building Webkit/5.5.1 on a modern Windows installation.

Link: http://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-mingw492-5.5.1.exe

Otherwise, Qt does publish a few articles that may be of use:

https://wiki.qt.io/Building_Qt_5_from_Git
https://wiki.qt.io/Building_WebKit_with_Qt_5.6_beta_on_Windows_8.1_x64

For the 4.11.x series of xTuple we use Qt version 5.5.1, MinGW distribution, 32bit/x86 only. For the 5.0.0 series it is the MSVC2017 64 bit version.

Just in case you haven’t seen it yet, our developer environment document is here: https://github.com/xtuple/qt-client/wiki/Desktop-Development-Environment-Setup

-David

Just to echo what David has said, I have done exactly has he suggested. My interest is exactly as David put just to tinker around nothing else. I have used the QT binary 5.5.1 and the mingw compiler for quite some time.

I have just recently gotten the 5.0 environment set up, again exactly as David described above. Being a Visual Studio user for what seems like forever I already owned all the Microsoft pieces. I have gotten a successful compile of 5.0 Alpha. It does take a little tweaking etc or at least it did for me. But it does exactly what I want.

I have created these two environments on different machines

Larry Cartee

Thanks for the replies guys. I had seen the developer doc but the way I read it was that it would be best to build everything from source.

I managed to get it all built from source. To say building QT was frustrating would be an understatement :slight_smile:

It’s good to know that the binary distribution works. My build of xtuple is now working fine so I have something to tinker with.

I might give 5.0 a try when I get some time later in the month.