I am calling kmaketiles from a perl script I built to make multi-level tiled panos. It works, but it always returns a failure status, and the error is "Illegal seek."
So for now I ignore the error status, but that's obviously a bad thing to do as I want to know if it really fails!