Problem with krpanotools comand line

  • Hi all,

    I’m new in this forum and my english is not so good.

    I’m trying to use a command line for run krpanotools on server Linux but the result on log file is: “Not a folder”. I’ve follow the tutorial for Linux version.

    On my computer, with Mac OSX run without problem

    This is the code that i have found on this forum:

    $panotype = 0;
    $pathToPanoImg = public_path() . '/panoramic_images/' . $id_user . '/' . $id_object . '/*';

    $pn = ($panotype == 0 ? "3" : "2");


    ON MAC OSX:
    $cmd = public_path() . "/krpano/MAKE_VTOUR_MULTIRES_droplet.app/../krpanotools makepano -config=".public_path()."/krpano/MAKE_VTOUR_MULTIRES_droplet.app/../templates/vtour-multires.config $pathToPanoImg";

    ON LINUX SERVER:
    $cmd = public_path() . "/krpano/krpanotools makepano -config=".public_path()."/krpano/templates/vtour-multires.config $pathToPanoImg";

    $descriptorspec = array
    (
    0 => array("pipe", "r"), // stdin is a pipe that the child will read from
    1 => array("pipe", "w"), // stdout is a pipe that the child will write to
    2 => array("file", public_path() . "/tmp/error-output.txt", "a") // stderr is a file to write to
    );

    $process = proc_open($cmd, $descriptorspec, $pipes);

    if (is_resource($process)) {

    fwrite($pipes[0], "$pn\n");
    fwrite($pipes[0], "360\n");
    fclose($pipes[0]);

    $eOut = stream_get_contents($pipes[1]);

    fclose($pipes[1]);

    $status = proc_get_status($process);
    $pid = $status["pid"];

    $res = proc_close($process);
    }

    Where i wrong? *huh*

    Thank a lot for any help
    MiCH

  • Hi all,
    now the krpanotools run correctly on Linux Server but now i display this message:

    segmentation fault

    Any idea to solve this problem?
    Thank in advance,
    MiCH

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!