Skip to content

[arch] build fails - lwop_ivec3 not defined #70

@marinjurjevic

Description

@marinjurjevic

I have glm-0.9.9.8-1 installed. Build fails on following file/line:

error log
 Build files have been written to: /home/marin/magnum-root/magnum-integration/build
[3/4] Building CXX object src/Magnum/GlmIntegration...eFiles/GlmIntegrationTest.dir/IntegrationTest.cpp.o
FAILED: src/Magnum/GlmIntegration/Test/CMakeFiles/GlmIntegrationTest.dir/IntegrationTest.cpp.o 
/usr/bin/c++  -DCORRADE_IS_DEBUG_BUILD -I../src -Isrc -isystem /usr/include/MagnumExternal/OpenGL -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g   -std=c++11 -Wall -Wextra -Wold-style-cast -Winit-self -Werror=return-type -Wmissing-declarations -Wpedantic -fvisibility=hidden -fvisibility-inlines-hidden -Wzero-as-null-pointer-constant -Wdouble-promotion -MD -MT src/Magnum/GlmIntegration/Test/CMakeFiles/GlmIntegrationTest.dir/IntegrationTest.cpp.o -MF src/Magnum/GlmIntegration/Test/CMakeFiles/GlmIntegrationTest.dir/IntegrationTest.cpp.o.d -o src/Magnum/GlmIntegration/Test/CMakeFiles/GlmIntegrationTest.dir/IntegrationTest.cpp.o -c ../src/Magnum/GlmIntegration/Test/IntegrationTest.cpp
../src/Magnum/GlmIntegration/Test/IntegrationTest.cpp: In member function ‘void Magnum::GlmIntegration::Test::{anonymous}::IntegrationTest::debugVec()’:
../src/Magnum/GlmIntegration/Test/IntegrationTest.cpp:470:25: error: ‘lowp_ivec3’ is not a member of ‘glm’; did you mean ‘lowp_dvec3’?
  470 |     Debug{&out} << glm::lowp_ivec3{1, 42, -3};
      |                         ^~~~~~~~~~
      |                         lowp_dvec3
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

I have searched for this lowp_ivec3 and on my machine it is defined in /usr/include/glm/gtc/type_precision.hpp:1295

On the official API doc of type_precision.hpp, in that same file type is not defined nor mentioned.
After some digging, I found in API docs that lwop_ivec3 is defined in glm/ext/vector_int3_precision.hpp.

I am totally confused now, I honestly just want build to pass at this point.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions