projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.22k stars 364 forks source link

Fails to build with -DENABLE_SYSTEM_GLM=ON: fatal error: 'omptl/omptl' file not found #713

Closed yurivict closed 9 months ago

yurivict commented 1 year ago

Describe the bug

/usr/ports/graphics/libprojectm/work/projectm-4.0.0/src/libprojectM/Renderer/PerPixelMesh.cpp:4:10: fatal error: 'omptl/omptl' file not found
#include <omptl/omptl>
         ^~~~~~~~~~~~~
1 warning and 1 error generated.

Desktop (please complete the following information):

kblaschke commented 1 year ago

After a quick look, you're right, omptl isn't specifically linked to the Renderer library. Will fix in an upcoming patch release.

Until then, either use the built-in GLM lib, or apply the following patch:

diff --git a/src/libprojectM/Renderer/CMakeLists.txt b/src/libprojectM/Renderer/CMakeLists.txt
index 0874119ef..812a8923d 100644
--- a/src/libprojectM/Renderer/CMakeLists.txt
+++ b/src/libprojectM/Renderer/CMakeLists.txt
@@ -53,6 +53,7 @@ target_include_directories(Renderer

 target_link_libraries(Renderer
         PRIVATE
+        omptl
         libprojectM::API # For export header
         PUBLIC
         GLM::GLM