Installation of 0.11.2 64bit fails with MSYS2 on Windows 10

Hello.

I am trying to install version 0.11.2 64bit following the guide on this page
I failed at the compilation stage
I get the following error message

In file included from C:/openFrameworks/of_v0.11.2_msys2_mingw64_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
C:/msys64/mingw64/include/sndfile.h:356:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
  356 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from C:/openFrameworks/of_v0.11.2_msys2_mingw64_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
C:/openFrameworks/of_v0.11.2_msys2_mingw64_release/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:238: /c/openFrameworks/of_v0.11.2_msys2_mingw64_release/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [makefileCommon/compile.core.mk:212: Debug] Error 2
make: *** [makefileCommon/compile.core.mk:228: all] Error 2

My setup:
Windows 10 Pro 21H2
msys2 installed on C:\msys64\

Thank you for helping.

I tried compile with 32bit
This also failed
I get the following error

In file included from C:/openFrameworks/of_v0.11.2_msys2_mingw32_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
C:/msys64/mingw32/include/sndfile.h:356:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
  356 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from C:/openFrameworks/of_v0.11.2_msys2_mingw32_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
C:/openFrameworks/of_v0.11.2_msys2_mingw32_release/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:238: /c/openFrameworks/of_v0.11.2_msys2_mingw32_release/libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [makefileCommon/compile.core.mk:212: Debug] Error 2
make: *** [makefileCommon/compile.core.mk:228: all] Error 2

Can you try the nightly build and see if that works for you?
It is at the bottom of the OF download page.

I believe this should be fixed in the nightly build.

Thanks!!
Theo

1 Like

Thank you, theo!

I tried nightly build v20220622 64bit.
Libraries compiled!
But I couldn’t compile 3DPrimitivesExample.

Sorry. I made a mistake.
It was compiled with mingw32.
I’ll try with mingw64.

1 Like

Properly I tried nightly build with mingw64.
oF libraries compiled fine!
3DPrimitivesExample could not be compiled.
I didn’t try all of them, but the other examples did compiled. And they seem to be works correctly.

Thank you so much!!