Re: png module on max os x

From: John Houck <houck_at_email.domain.hidden>
Date: Fri, 30 Nov 2012 11:18:56 -0500
On Thu, Nov 29, 2012 at 09:37 -0800, Felix Fuerst wrote:
> Dear isis-users,
>
> I would love to use the png module of s-lang in ISIS, but there
> seems to be a problem with the libpng library. I receive the
> following error:
>
> isis> require("png") ;
> Error linking to
> /Users/fuerst/bin/slang/lib/slang/v2/modules/png-module.so:
> dlopen(/Users/fuerst/bin/slang/lib/slang/v2/modules/png-module.so,
> 10): Symbol not found: _png_create_info_struct
>   Referenced from:
> /Users/fuerst/bin/slang/lib/slang/v2/modules/png-module.so
>   Expected in: flat namespace
>  in /Users/fuerst/bin/slang/lib/slang/v2/modules/png-module.so
> 0
>
> This is on a MacBook Pro running Mac OS X 10.7.5. Probably this is
> has to do with a 32bit vs 64bit incompatibility, but I did not find
> a clear solution on the web. I was hoping someone on this list might
> know a solution and can save me some time playing around and
> re-compiling everything several times?

It looks like a problem with the installation of slang or
libpng.  I don't think it's an isis problem.

In particular, my guess is that it's a path searching problem.
At run-time, the symbol _png_create_info_struct must be
resolved by loading the contents of the shared library
libpng.so or libpng.dylib or something like that.

Because png-module.so exists on your system, libpng was
presumably found on your system at compile time, so I assume
that it still exists on your system.

The problem now might be that the run-time loader cannot find
libpng.

To help the loader find it, you can probably set the
DYLD_LIBRARY_PATH environment variable.  For example, if libpng
is in /opt/lib, then doing:

   setenv DYLD_LIBRARY_PATH /opt/lib

might solve the problem.  Does that fix it?

Thanks,
-John
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Fri Nov 30 2012 - 11:19:39 EST

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:47 EDT