Installing on Gentoo

This may not be specific to my distro but I’ve settled all the include dependency’s by tracking the compilation errors of making OF and some of its examples. I’m having a problem with ALCdevice. Specifically

/usr/include/AL/alc.h:34:16: error: using typedef-name 'ALCdevice' after 'struct' 34 | typedef struct ALCdevice ALCdevice;

Is the main source of the error in the OpenAlSoundPlayer.cpp file

Thanks ahead of time for the help.

Can confirm that it is not distro specific because when running the compilation script for OF on arch after running the install dependencies script I get the same error.

/usr/include/AL/alc.h:34:16: error: using typedef-name 'ALCdevice' after 'struct'
   34 | typedef struct ALCdevice ALCdevice;

using gcc 9.3 on both systems

both downloads are the links on the of website of…tar.gz

Hi
Maybe this one is of some help?
https://forum.openframeworks.cc/t/compilation-failing-due-to-confliting-definition-in-openal/33927

Hi Bencilari,

This seemed to do the trick.

Changing

typedef struct ALCdevice_struct ALCdevice;
/** Opaque context handle */
typedef struct ALCcontext_struct ALCcontext;

To

struct ALCdevice;
struct ALCcontext;

Thanks alot :slight_smile: