Not able to locate the part where I am missing the hint

This particular error seems to be happening somewhere in the build section and there are only 2 commands there which are identical in both qtweb.spec and qupzilla.spec.
I am probably looking completely in a different direction to that of the solution needed in this situation.
But I did the following:
Looked up QtWeb.pro and QtWeb.pri files in the root of the package. QtWeb.pri has references to the two .pri files lack of which are throwing the error.
Got some strange idea from here
http://trac.webkit.org/wiki/QtWebKitRelease20DeploymentInitially I tried to get QtWebKit source thinking that I may be able to place it into the required subdirected in /lib/share/qt4 in the PACKAGER install. But the current one needs Qt5. So I located and downloaded a 500 MB+ source for QtWebKit 2.0 then copied the relevant directory from that to the /usr/share/qt4/..3rdparty...
(
This method must be so wrong on multiple levels. I am expecting a nice lashing for this...Re-ran the build. Now the build progresses nicely until an error with missing
main.cpp:(.text+0x89): undefined reference to `qt_plugin_instance_qjpeg()'
main.cpp:(.text+0x95): undefined reference to `qt_plugin_instance_qgif()'
main.cpp:(.text+0xa1): undefined reference to `qt_plugin_instance_qico()'
main.cpp:(.text+0xad): undefined reference to `qt_plugin_instance_qcncodecs()'
main.cpp:(.text+0xb9): undefined reference to `qt_plugin_instance_qjpcodecs()'
main.cpp:(.text+0xc5): undefined reference to `qt_plugin_instance_qkrcodecs()'
main.cpp:(.text+0xd1): undefined reference to `qt_plugin_instance_qtwcodecs()'
Searching for these errors, I gather that these are due to missing dependencies in the form static libraries. However I could only find static libraries for the jpeg thing in our repository.
(
Considering that I had missed libqtwebkit4 in my first repository search, I am sure they are there but I am not seeing them)
First three seem to be image handling related and last 4 asian language support.