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