Hi Romeo,

On Thursday 09 August 2007 20:37, Romeo Ahohe wrote:
> Hi,
>
> I was able to compile and install plib and openal using Cygwin.
> However, the configure script for SimGear is unable to find the openal
> installation. The following error message is produced when i run that
> script:
>
> checking for library containing alGenBuffers... no
> checking for library containing alutInit... no
>
> You *must* have the openal library installed on your system to build
> SimGear!
>
> Please see README.OpenAL for more details.
>
> configure aborted
>
> There was another problem too: there is no README.OpenAL in the
> directory. Instead, I only see README, README.MSVC, and README.zlib
>
> Any help will be greatly appreciated.
>

Which versions of SimGear and openal are you compiling? There used to be a 
time when openal didn't compile properly under cygwin, and the solution 
needed for FlightGear was to install a specially prebuild package that was 
kindly provided by Norman Vine. Last time I tried, those problems were gone, 
and openal now compiles fine. 

There is a naming difference between the regularly built openal libraries and 
the special package that was provided by Norman (IIRC). The regular libraries 
are called openal and alut, whereas the special purpose build versions were 
called openal32 and ALut. Older versions of SimGear (and this might very well 
include the latest released version) only check for the existence of the 
special purpose built library. I remember adding the additional check to the 
autoconf system sometime last year, so CVS versions of SimGear should be able 
to detect your openal libraries just fine. 

FWIW, if not, try modifying your configure script accordingly:

dnl check for OpenAL libraries
OPENAL_OK="no"
case "${host}" in
*-*-cygwin* | *-*-mingw32*)
    dnl CygWin under Windoze.
    INCLUDES="$INCLUDES -I/usr/local/include/"
    LIBS="$LIBS -L/usr/local/lib"
    AC_SEARCH_LIBS(alGenBuffers, [ sending pixbuf data as 'image/png' (png)
    AC_SEARCH_LIBS(alutInit, [ openal32 ALut alut ] )
    LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32"
    openal_LIBS="$LIBS"
    OPENAL_OK="$ac_cv_search_alGenBuffers"
    ;;

*-apple-darwin*)
    dnl Mac OS X

    LIBS="$LIBS -framework IOKit -framework OpenAL"
    openal_LIBS="$LIBS"
    # not sure how to test if OpenAL exists on MacOS (does it come by 
default?)
    OPENAL_OK="yes"
    ;;

*)
    dnl default unix style machines

    save_LIBS=$LIBS
    LIBS="$LIBS $thread_LIBS"
    AC_SEARCH_LIBS(alGenBuffers, openal)
    AC_SEARCH_LIBS(alutInit, [ alut openal ] )
    OPENAL_OK="$ac_cv_search_alGenBuffers"
    openal_LIBS="$LIBS"
    LIBS=$save_LIBS
    ;;

esac


FWIW, inspired by your question, I tried dusting off my cygwin tools and see 
if I could build FlightGear using cygwin again. So far no luck yet the 
default 3.3 gccc barfs on an invalid typecast in OpenScenceGraph, and the 
latest gcc version (I tried 4.2.1 and 4.1.2) also died compiling OSG with an 
internal compiler error. Bizarre, because 4.1.2 is the same version as I'm 
using under linux.

Hope this helps,
Durk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to