RE: Prima beginner issues

From: Gira, Jishnu <Jishnu.Gira_at_delphi.com>
Date: Mon, 17 Sep 2007 22:53:36 +0530
To: "Marco Masetti" <marco.masetti_at_softeco.it>

Marco,

Which path it will look when it has to find the image. If it is local
path,I tried delelting the image from the local path and ran matrix.pl
which comes along with examples. It still finds the image. Where does it
find image?

Cheers,
Jis

-----Original Message-----
From: owner-prima_at_prima.eu.org [mailto:owner-prima_at_prima.eu.org] On
Behalf Of Marco Masetti
Sent: Monday, September 17, 2007 1:27 PM
To: Gira, Jishnu
Cc: prima_at_prima.eu.org
Subject: Re: Prima beginner issues

Hi Gira,

Gira, Jishnu wrote:
>
> Hi,
>
> This still create problems.
>
> Matrix.pl in the examples section work fine for me. The example
> actually loads the gif file. But the code below simply doesn't load at

> all.
>
> It gives me an error "No such file or directory".
>
> Yes, I am still using windows.
>
> #!/usr/bin/perl
>
> use strict;
>
> use Prima;
>
> use Prima::Application;
>
> my $x = Prima::Image-> create;
>
> die "$@" unless $x-> load( 'matrix.gif');
>
First (this will not fix the problem, but is an issue anyhow): if you
are running on windows delete the shebang line or fix it to point to
your perl interpreter.

Then, on my environment (linux) the snippet runs smoothly exiting doing
nothing, I get the error only if the image is not in the current path:
are you really sure about this ? Try with the absolute image path.

Cheers,
M.
>
> Cheers,
>
> Jis
>
>
------------------------------------------------------------------------
>
> *From:* Earle Bishop [mailto:earle.bishop_at_mechaps.com]
> *Sent:* Friday, September 14, 2007 5:58 PM
> *To:* Gira, Jishnu
> *Cc:* prima_at_prima.eu.org
> *Subject:* Re: Prima beginner issues
>
> I have had some trouble getting the default code to work, too. I do
> not think the pakage was released with the images used in the slide
> presentation.
>
> I note you are runnign this code on a windows machine. I highly
> recommend you get ahold of a linux box, as there are not too many
> people working in wondows on perl. Most of your image libraries come
> default, or are installed with Prima.
>
> Hope that helps. Once you have your problem fixed, post it back to the

> list.
>
> Earle
>
> On 9/14/07, *Gira, Jishnu* <Jishnu.Gira_at_delphi.com
> <mailto:Jishnu.Gira_at_delphi.com>> wrote:
>
>
> Hi,
>
> I started learning Prima today. I typed the code
>
> use Prima;
> use IPA;
> use IPA::Local;
> use IPA::Point;
> use IPA::Global;
> use IPA::Morphology;
> my $i = Prima::Image-> load('C:\\Program Files\\Perl
> Express\\Scripts\\prima\\input.gif');
> die "Cannot load:$@\n" unless $i;
>
> This give me back the erro: cannot load . No appropriate codec found.
>
> I gues it is because I don't have gif image library.
> Where do I get it and where to put it?
>
> Pls reply,
> Jis
>
>
************************************************************************
****************
>
>
> Note: If the reader of this message is not the intended recipient, or
> an employee or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify us
> immediately by replying to the message and deleting it from your
> computer. Thank you.
>
>
************************************************************************
****************
>
>
************************************************************************
****************
>
> Note: If the reader of this message is not the intended recipient, or
> an employee or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify us
> immediately by replying to the message and deleting it from your
> computer. Thank you.
>
>
************************************************************************
****************
>

-- 
--------------------------------------------------------------------
Ing. Marco Masetti
Project Manager - Research & Innovation
Softeco Sismat S.P.A.		
Via De Marini, 1 - WTC Tower
Tel: (+39) 010 6026.333		    http://www.softeco.it
Fax: (+39) 010 6026.350		    mailto://marco.masetti@softeco.it
---------------------------------------------------------------------
****************************************************************************************
Note:  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. 
****************************************************************************************
Received on Mon 17 Sep 2007 - 19:23:50 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET