Hey vattipalli, I'd be happy to share with you some of my build time materials for QtWebKit.
It is important to note that my build environment is for OpenEmbedded based on the Yocto project, so I used the meta-qt5 bitbake recipes. The patches used for Qt5.4.0 are listed here:
https://github.com/meta-qt5/meta-qt5/tree/master/recipes-qt/qt5/qtbase
https://github.com/meta-qt5/meta-qt5/tree/master/recipes-qt/qt5/qtwebkit
My qmake.conf is listed in qtbase-opensource-src-5.4.0/mkspecs/linux-oe-g++ . You can find the qtbase-opensource-src tarball here: http://download.qt.io/official_releases/qt/5.4/5.4.0/submodules/
This is what my qmake.conf looks like:
@MAKEFILE_GENERATOR = UNIX
CONFIG += incremental
QMAKE_INCREMENTAL_STYLE = sublib
include(../common/linux.conf)
QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip
QMAKE_AR = $(OE_QMAKE_AR) cqs
QMAKE_STRIP = $(OE_QMAKE_STRIP)
QMAKE_WAYLAND_SCANNER = $(OE_QMAKE_WAYLAND_SCANNER)
include(../common/gcc-base-unix.conf)
*FLAGS from gcc-base.conf
QMAKE_CFLAGS += $(OE_QMAKE_CFLAGS)
QMAKE_CXXFLAGS += $(OE_QMAKE_CXXFLAGS)
QMAKE_LFLAGS += $(OE_QMAKE_LDFLAGS)
include(../common/g++-unix.conf)
tc settings from g++-base.conf
QMAKE_COMPILER = $(OE_QMAKE_COMPILER)
QMAKE_CC = $(OE_QMAKE_CC)
QMAKE_CXX = $(OE_QMAKE_CXX)
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $(OE_QMAKE_CFLAGS)
QMAKE_LINK = $(OE_QMAKE_LINK)
QMAKE_LINK_SHLIB = $(OE_QMAKE_LINK)
QMAKE_LINK_C = $(OE_QMAKE_LINK)
QMAKE_LINK_C_SHLIB = $(OE_QMAKE_LINK)
for the SDK
isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG)
load(qt_config)@
Another point that is important to get QtWebKits compiled & installed is to make sure your configuration options are enabled/disabled correctly. For example, the ICU (international components for unicode) needs to be enabled when configuring Qt base, which passes on these configuration options to QtWebKits.
Listed below are my configuration options that I set:
@ ${S}/configure -v
-opensource -confirm-license
-sysroot ${STAGING_DIR_TARGET}
-no-gcc-sysroot
-prefix ${OE_QMAKE_PATH_PREFIX}
-bindir ${OE_QMAKE_PATH_BINS}
-libdir ${OE_QMAKE_PATH_LIBS}
-datadir ${OE_QMAKE_PATH_DATA}
-sysconfdir ${OE_QMAKE_PATH_SETTINGS}
-docdir ${OE_QMAKE_PATH_DOCS}
-headerdir ${OE_QMAKE_PATH_HEADERS}
-archdatadir ${OE_QMAKE_PATH_ARCHDATA}
-libexecdir ${OE_QMAKE_PATH_LIBEXECS}
-plugindir ${OE_QMAKE_PATH_PLUGINS}
-importdir ${OE_QMAKE_PATH_IMPORTS}
-qmldir ${OE_QMAKE_PATH_QML}
-translationdir ${OE_QMAKE_PATH_TRANSLATIONS}
-testsdir ${OE_QMAKE_PATH_TESTS}
-examplesdir ${OE_QMAKE_PATH_EXAMPLES}
-hostbindir ${OE_QMAKE_PATH_HOST_BINS}
-hostdatadir ${OE_QMAKE_PATH_HOST_DATA}
-external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}
-platform ${OE_QMAKESPEC}
-xplatform linux-oe-g++
-qpa eglfs
-eglfs
-no-kms
-opengl es2
-shared \
-silent
-no-pch
-no-rpath
-pkg-config
-no-xcb
-no-sql-db2
-no-mtdev \
-no-gtkstyle
-nomake tests
-system-libjpeg
-openssl-linked \
-nomake examples
-no-xfixes
-no-sql-mysql
-make tools
-qt-pcre
-no-iconv
-no-xkb
-no-xkbcommon
-fontconfig
-no-kms
-no-sql-sqlite
-system-libpng
-tslib
-icu
-no-directfb
-no-glib
-freetype
-no-sql-oci
-no-xinerama
-evdev
-no-sql-sqlite2
-accessibility
-widgets
-no-xrandr
-no-linuxfb
-libudev
-no-xcursor
-no-sql-psql
-make libs
-no-nis
-no-openvg
-no-xvideo
-no-xsync
-no-sql-tds
-no-xshape
-dbus
-system-zlib
-pulseaudio
-no-xrender
-no-mitshm
-no-sm
-no-xinput
-no-sql-ibase
-no-xinput2
-no-alsa
-no-sql-odbc
-release \ @
Additionally, if you provide with me your error messages, I can help you further back trace your problem [=
Hope this helps!