Compiling on Kubuntu 12.04

There is no “thirdparty” directory for Linux. You have to install them on your system, as I said. It looks for the packages on your system. I do not advise trying to use an outdated thirdparty directory.

As for jpeg, perhaps the package name is libjpeg62-dev?