Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The library does not compile #8236

Open
SpaceTimeTravelerZero opened this issue Dec 21, 2024 · 7 comments
Open

The library does not compile #8236

SpaceTimeTravelerZero opened this issue Dec 21, 2024 · 7 comments

Comments

@SpaceTimeTravelerZero
Copy link

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?

@SpaceTimeTravelerZero
Copy link
Author

I forgot to specify, Windows 10, if that's important

@SpaceTimeTravelerZero
Copy link
Author

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

@dimitre
Copy link
Member

dimitre commented Dec 21, 2024

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

@SpaceTimeTravelerZero
Copy link
Author

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

@dimitre
Copy link
Member

dimitre commented Dec 21, 2024

did you run ./scripts/msys2/install_dependencies.sh before?

@SpaceTimeTravelerZero
Copy link
Author

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

@lalogiquefloue
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants