Compiling on Kubuntu 12.04

It’s really just a matter of installing the right packages. There is no need to compile jpeg from scratch, and doing so could actually interfere with the proper working of your system.

Since you are building an outdated version of Panda, it may be that it had an older version of makepanda that was not yet able to pick up the newer ubuntu jpeg package correctly.