OpenAL compilation under Linux Ubuntu desctop/server 32/64-bit

View: New views
1 Messages — Rating Filter:   Alert me  

OpenAL compilation under Linux Ubuntu desctop/server 32/64-bit

by Dmitry Kostjuchenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

While porting my library from Windows to Linux platform and using Ubuntu distribution compilation fails with error that PTHREAD_MUTEX_RECURSIVE is not existing. To combat this issue and  I propose to include following lines in 'config.ac':

# Somehow, even with the above flags, struct timespec is still not found on
# some systems, so ask for it directly
AC_DEFINE([_GNU_SOURCE], [1], [Define to 1 to explicitly include PTHREAD_MUTEX_RECURSIVE on some gcc versions.])

As a result all compiles out from the box without error. Or are there any settings that I missed to triger and not to do these steps?

Best regards,
Dmitry.
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel
LightInTheBox - Buy quality products at wholesale price