Error trying to compile OF v0.11.2 (from master branch) in Debian 12 Bookworm

Hello everybody:

I’m having problems trying to install OF from the file of_v0.11.2_linux64gcc6_release.tar.gz downloaded from the official site (download | openFrameworks) on Debian 12 Bookworm.
I have “read the f**ing manual” as advised in other posts, installed all the codecs and dependencies using the scripts install_codecs.sh and install_dependencies.sh in the folder openFrameworks/scripts/linux/debian.
Upon trying to compile the Project Generator with openFrameworks/scripts/linux/compilePG.sh the following message appears after some lines without errors:

In file included from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
/usr/include/sndfile.h:359:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
  359 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
/home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.h:18:33: note: previous declaration as 'typedef struct SNDFILE_tag SNDFILE'
   18 | typedef struct SNDFILE_tag      SNDFILE ;
      |                                 ^~~~~~~
make[2]: *** [makefileCommon/compile.core.mk:240: /home/guscarr/programacion/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Release/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1

When trying to compile OF with openFrameworks/scripts/linux/compileOF.sh I read the following after some lines:

In file included from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
/usr/include/sndfile.h:359:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
  359 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
/home/guscarr/programacion/openFrameworks/libs/openFrameworks/sound/ofOpenALSoundPlayer.h:18:33: note: previous declaration as 'typedef struct SNDFILE_tag SNDFILE'
   18 | typedef struct SNDFILE_tag      SNDFILE ;
      |                                 ^~~~~~~
make[1]: *** [makefileCommon/compile.core.mk:238: /home/guscarr/programacion/openFrameworks/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1

As you can see, is the same lines of code that are causing this issue.
Any help will be appreciated. Thank you in advance.

Gus

Hey - apologies, we’re about to release 0.12.0 and the fix for the above error is in the nightly builds here:

Let us know if the linux build from the link above works for you?

Thanks!
Theo

Hello @theo ! Thanks for the quick reply. It compiled well indeed. I only got this single warning many times, I hope it’s nothing serious:

In file included from /home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../detail/type_half.hpp:16,
                 from /home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../detail/func_packing.inl:5,
                 from /home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../packing.hpp:173,
                 from /home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../glm.hpp:132,
                 from /home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/wrap.hpp:16,
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/types/ofColor.h:4,
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/graphics/ofGraphicsBaseTypes.h:6,
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/graphics/ofPolyline.inl:6,
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/graphics/ofPolyline.h:564,
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/math/ofMath.cpp:3:
                 from /home/guscarr/programacion/openFrameworks/libs/openFrameworks/3d/of3dUtils.cpp:3:
/home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../detail/type_half.inl: In function 'float glm::detail::overflow()':
':
/home/guscarr/programacion/openFrameworks/libs/glm/include/glm/gtx/../detail/type_half.inl:9:27: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]
    9 |                         f *= f; // this will overflow before the for loop terminates
      |                         ~~^~~~

Also, the Project Generator compiled well, with a fair amount of warnings, though.
Thanks again.

Gus