Re: SUN's MediaLib 2.2 and Ogle-0.9.1

H}kan Hjort <[email protected]> Mon, 25 Aug 2003 18:30:40 +0200
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Mon Aug 25 2003, Vincent S. Cojot wrote:
> Hi everyone,
> 
> Just wanted to fill you in on my results...
> 
-snip-
> One of the important 'changes' in MediaLib 2.2 is that headers go in
> /usr/include instead of /opt/SUNWmlib/include. A compatibility package is
> provided that will do the following:
> 1) create an empty /opt/SUNWlib directory.
> 2) link /usr/include to /opt/SUNWmlib/include
> 3) link /usr/lib to /opt/SUNWmlib/lib
> 
> This will make ogle-0.9.1 fail to compile with multiple errors because:
> ogle forcibly includes /opt/SUNWmlib/include which will point to
> /usr/include as of MediaLib-2.2 (ever tried to -I/usr/include with gcc on
> Solaris/Sparc ?? Hmmm..).
> 
Oh, why did they go and do that...

> The workaround - if using MediaLib 2.2 - is -NOT- to install SUNWmlibk and
> instead do the following:
> 1) cd /opt/SUNWmlib
> 2) mkdir include && cd include
> 3) ln -s /usr/include/mlib*.h /opt/SUNWmlib/include
> 
> Of course, it would be best to modify ogle's configure script to
> auto-detecte if mlib*.h is in /usr/include and skip /opt/SUNWmlib/include
> entirely.. I'll try to come up with a patch that works for both 2.1 and
> 2.2 but I wanted to report this 'problem'.
> 
That would be great.  It's to bad that it's such a mess to use external
packages.  I'll try to take a look and see if they have added any new
usefull functions.  Though that will requier some #define to enable/disable
code using the new features.  

> Best regards and thanks again for making ogle run on Solaris.. :)
> 
Initial development of Ogle was on Solaris, though, as always, that is
not the way to reach the masses ;)

-- 
HÃ¥kan Hjort