Building Ogle on Solaris x86
Laurent Blume <[email protected]> Sat, 08 Nov 2003 22:53:50 +0100
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I think this is the right list, since it has to do with Ogle's code. If
I'm mistaken, please correct me, I'll go to users'.
First, some info on my system:
Solaris 9 x86 w/ MU and patches, XFree86 4.3.99.12, GCC 3.3.2, GNU
Binutils 2.14, all the required libs for Ogle installed.
I've met 2 small problems while compiling Ogle, that I think can be
easily corrected.
The first is in ./configure: I have the OpenSound driver installed, and
the configure script doesn't even try it. Clearly, it's because the
system type is i386-pc-solaris2.9.
I've done a very small modification to correct that:
diff -ur ogle-0.9.2.old//configure ogle-0.9.2/configure
--- ogle-0.9.2.old//configure mar nov 4 12:34:13 2003
+++ ogle-0.9.2/configure sam nov 8 22:25:06 2003
@@ -12934,7 +12934,7 @@
DEFAULT_AUDIO_DRIVER="oss"
DEFAULT_AUDIO_DEVICE="/dev/dsp"
;;
- *-sun-solaris*|*-hpux*)
+ *-solaris*|*-hpux*)
echo "$as_me:$LINENO: checking for OSS_init in -lOSSlib" >&5
echo $ECHO_N "checking for OSS_init in -lOSSlib... $ECHO_C" >&6
if test "${ac_cv_lib_OSSlib_OSS_init+set}" = set; then
@@ -13034,7 +13034,7 @@
fi;
if test "x$enable_sunaudio" != xno; then
case "$host" in
- *-sun-solaris*)
+ *-solaris*)
cat >>confdefs.h <<\_ACEOF
Then, I've got Mlib installed, and obviously it's not been foreseen that
a system could have both MMX and MLIB support.
For example, in mpeg2_video/yuv2rgb.c, there is:
void yuv2rgb_init(uint32_t bpp, uint32_t mode)
{
#ifdef HAVE_MMX
if(1)
yuv2rgb = yuv2rgb_mmx_init(bpp, mode);
else
#endif
#ifdef HAVE_MLIB
if(1)
yuv2rgb = yuv2rgb_mlib_init(bpp, mode);
else
#endif
;
if( yuv2rgb == NULL ) {
fprintf( stderr, "No accelerated colorspace coversion found\n" );
yuv2rgb = yuv2rgb_c_init(bpp, mode);
}
}
Obviously, since both are true in my case, it leads to an error at
compile time. There are a few more scattered in the same directory.
As a quick workaround, I used the --disable-mmx option to configure, and
it built fine, and at least starts (though now my problem is how to make
it play a DVD over NFS :-)
I'm not sure which would be better, using MMX or MLIB, but they should
be exclusive at least.
Well, that's it!
Laurent