You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, January 12th 2015, 11:30pm

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

2

Wednesday, January 14th 2015, 9:59am

Hi all,
On server lInux, i should upload the krpanotools pack without opening it (tutorial to use krpanotools on linux)

Thanks in advance,
MiCH

3

Monday, January 19th 2015, 8:45pm

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