On Nov 29, 2005, at 2:24 AM, TAN TH wrote:
> http://www.lam-mpi.org/tutorials/nd/part1/
>
> from above website, has anyone successfully compiled
> the
> imageproc.c file or image.c?
>
> seem to me that it is not that straight forward.
> when I try this:
>
> $ mpicc -o imageproc imageproc.c -lm
>
> the compiler is complaining that the function
> `loadtiff' is not referenced.
>
> also, I try to compile image.c using:
> $ mpicc -o image image.c -lm
>
> it gives me a whole list of errors.
>
> any workable suggestions are highly appreciated.
> see attached file. Use WordPad to open.
You need libtiff to compile the imageproc application. You might
want to grab the Makefile available on the tutorial web page and use
that to build your application - it will at least add the correct -
ltiff and whatnot. You might need to adjust TIFFLDFLAGS and
TIFFCFLAGS if libtiff isn't installed in /usr/. But if you are on
linux, it should be and you should be all set using the Makefile..
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|