trsonic / nvsonic-head-tracker

Spatial Audio 3DOF Head Tracker (requires Arduino Pro Micro + MPU-9250 / MPU-9150)
GNU General Public License v3.0
83 stars 11 forks source link

Linux compile error: no matching function for call to ‘juce::Matrix3D<float> #23

Open betzburger opened 4 months ago

betzburger commented 4 months ago

I tried to compile version 3.1. with Ubuntu Linux 22.04 but get this error:

Compiling BinauralHeadView.cpp
In file included from ../../Source/BinauralHeadView.cpp:1:
../../Source/BinauralHeadView.h: In member function ‘juce::Matrix3D<float> BinauralHeadView::getViewMatrix() const’:
../../Source/BinauralHeadView.h:47:65: error: no matching function for call to ‘juce::Matrix3D<float>::Matrix3D(<brace-enclosed initializer list>)’
   47 |                 Matrix3D<float> viewMatrix({ 0.0f, 0.0f, -5.0f });
      |                                                                 ^
In file included from /home/peter/JUCE/modules/juce_opengl/juce_opengl.h:107,
                 from ../../Source/../JuceLibraryCode/JuceHeader.h:28,
                 from ../../Source/BinauralHeadView.h:7,
                 from ../../Source/BinauralHeadView.cpp:1:
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:82:5: note: candidate: ‘juce::Matrix3D<Type>::Matrix3D(const juce::AffineTransform&) [with Type = float]’
   82 |     Matrix3D (const AffineTransform& transform) noexcept
      |     ^~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:82:38: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const juce::AffineTransform&’
   82 |     Matrix3D (const AffineTransform& transform) noexcept
      |               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:76:5: note: candidate: ‘juce::Matrix3D<Type>::Matrix3D(const Type*) [with Type = float]’
   76 |     Matrix3D (const Type* values) noexcept
      |     ^~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:76:27: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const float*’
   76 |     Matrix3D (const Type* values) noexcept
      |               ~~~~~~~~~~~~^~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:64:5: note: candidate: ‘juce::Matrix3D<Type>::Matrix3D(Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type, Type) [with Type = float]’
   64 |     Matrix3D (Type m00, Type m10, Type m20, Type m30,
      |     ^~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:64:5: note:   candidate expects 16 arguments, 1 provided
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:51:5: note: candidate: ‘juce::Matrix3D<Type>::Matrix3D(const juce::Matrix3D<Type>&) [with Type = float]’
   51 |     Matrix3D (const Matrix3D& other) noexcept
      |     ^~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:51:31: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const juce::Matrix3D<float>&’
   51 |     Matrix3D (const Matrix3D& other) noexcept
      |               ~~~~~~~~~~~~~~~~^~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:42:5: note: candidate: ‘juce::Matrix3D<Type>::Matrix3D() [with Type = float]’
   42 |     Matrix3D() noexcept
      |     ^~~~~~~~
/home/peter/JUCE/modules/juce_opengl/geometry/juce_Matrix3D.h:42:5: note:   candidate expects 0 arguments, 1 provided
make: *** [Makefile:114: build/intermediate/Debug/BinauralHeadView_de647890.o] Fehler 1