The library does not compile
No, the problem is not solved. Windows nightly and stable build of mingw64(c:\msys64) of_v0.12.0
MINGW64 /c/of_v0.12.0/libs/openFrameworksCompiled/project
make
Package glm was not found in the pkg-config search path.
Perhaps you should add the directory containing glm.pc' to the PKG_CONFIG_PATH environment variable Package 'glm' not found /bin/sh: line 1: return: can only return' from a function or sourced script
Package glm was not found in the pkg-config search path.
Perhaps you should add the directory containing glm.pc' to the PKG_CONFIG_PATH environment variable Package 'glm' not found /bin/sh: line 1: return: can only return' from a function or sourced script
makefileCommon/config.shared. mk:311: *** couldn't find glm pkg-config package or it's dependencies, did you run the latest install_dependencies.sh?. Stop.
Please explain what kind of tambourine I need to dance with, what rituals to perform, just to start using OF?
I forgot to specify, Windows 10, if that's important
nightly build OF v20241220:
MINGW64 /c/openFrameworks/v20241220/libs/openFrameworksCompiled/project $ make 💾 CXX = /mingw64/bin/g++ 💾 CC = /mingw64/bin/gcc 💾 CXX = /mingw64/bin/g++ 💾 CC = /mingw64/bin/gcc 💾 CXX = /mingw64/bin/g++ 💾 CC = /mingw64/bin/gcc Compiling ../../../libs/openFrameworks/3d/of3dPrimitives.cpp /mingw64/bin/g++ -g3 -DDEBUG -std=gnu++17 -DUNICODE -D_UNICODE -Wall -fexceptions -DOF_VIDEO_PLAYER_DIRECTSHOW -DOF_USING_MPG123 -IC:/msys64/mingw64/include/cairo -IC:/msys64/mingw64/include/pixman-1 -IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include/libpng16 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include/AL -IC:/msys64/mingw64/include/rtaudio -IC:/msys64/mingw64/include/opus -I../../../libs/kiss/include -I../../../libs/tess2/include -I../../../libs/videoInput/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/math -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/video -MMD -MP -MF ../../../libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.d -MT../../../libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o -o ../../../libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o -c ../../../libs/openFrameworks/3d/of3dPrimitives.cpp make[2]: /mingw64/bin/g++: No such file or directory make[2]: *** [makefileCommon/compile.core.mk:261: ../../../libs/openFrameworksCompiled/lib/msys2/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o] Error 127 make[1]: *** [makefileCommon/compile.core.mk:233: Debug] Error 2 make: *** [makefileCommon/compile.core.mk:249: all] Error 2
OF windows and msys2. time to get the tambourine and feathers ready
try to invoke /mingw64/bin/g++ in your terminal, to see if this path exists
pacman -S mingw-w64-x86_64-gcc pacman -S mingw-w64-x86_64-make pacman -S mingw-w64-x86_64-toolchain
AI said to do it like this, it seems to have helped
did you run ./scripts/msys2/install_dependencies.sh before?
I followed the instructions exactly, and made several attempts with a complete removal, the step of installing dependencies each time went without problems. Now everything works, after manual installation of the compiler Examples run It remains to figure out how to create final assemblies with all dlls in one folder.. otherwise the exe simply does not run outside the OF context. I am small and stupid
I encountered similar compilation issues with both the MSYS2 and Linux setups (via WSL). I resolved them by using the 'nightly' release, rather than the version linked from the openFrameworks website (which points to the older 0.12.0 version). For now I only tested the MSYS2 setup and can give an update if I try the Linux setup.
I'm also having these issues with the MSYS2 setup on both the nightly and stable release and wasn't able to get it to work just off of ./scripts/msys2/install_dependencies.sh. Despite running the script to install dependencies, but the path mingw64/bin/g++ did not exist even after multiple reinstallations (though I do have GCC properly configured and referenced within the Windows PATH environment). It seems to have worked after running the extra commands suggested by SpaceTimeTravelerZero.