For a template of creating a set of external loaders, take a look at
imlib2_loaders in CVS.

Good luck!

On Tue, Jan 06, 2004 at 06:04:26PM +0000, Simon Wistow wrote:
> 
> I'm currently trying t us Imlib2 for $large_film_project at 
> $special_effects_company hence the need for large TIFFs and the other 
> two file formats I mentioned.
> 
> Today I have mostly been trying write an OpenEXR loader and I'm 
> wonderign what the best way to do it is - is there a boiler plate for 
> writing stand alone loaders?
> 
> Currently I'm chetaing and I added
> 
> # Test for libexr
> if test "$exr_ok" = no; then
>   AC_CHECK_LIB(IlmImf, file,
>     exr_libs="-lIlmImf -lImath -lHalf -lIex -lz"
>     exr_ok=yes,
>     exr_ok=no
>     AC_MSG_WARN(*** Native EXR support will not be built (EXR library 
> not found) ***),
>     $EXTRA_LIBS)
>   if test "$exr_ok" = yes; then
>     AC_MSG_CHECKING([for ImfRgbaFile.h])
>     AC_TRY_CPP(
>     [#include <stdio.h>
>      #undef PACKAGE
>      #undef VERSION
>      #include <ImfRgbaFile.h>],
>     gif_ok=yes,
>     gif_ok=no)
>     AC_MSG_RESULT($gif_ok)
>     if test "$exr_ok" = yes; then
>       EXRLIBS=$exr_libs
>     else
>       AC_MSG_WARN(*** Native EXR support will not be built (EXR header 
> file not found) ***)
>     fi
>   fi
> fi
> 
> AM_CONDITIONAL(EXR_LOADER, test "$exr_ok" = yes)
> AC_SUBST(EXRLIBS)
> 
> to configure.ac, various other gubbins to loaders, Makefile.am ran
> 
> % automake --foreign --add-missing --copy
> % autoconf
> % ./configure
> 
> and ... got squat.
> 
> Am I just being a 'tard?
> 
> Simon
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> enlightenment-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

-- 
------------------------------------------------------------------------
| Nathan Ingersoll          \\  Computer Systems & Network Coordinator |
| [EMAIL PROTECTED]   \\  http://www.ruralcenter.org            |
| http://ningerso.atmos.org/  \\  Rural Health Resource Center         |
------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to