[GEM-dev] error matrix4x4.h

Jack jack at rybn.org
Mon Jun 12 15:23:51 CEST 2017


Hello,

I'm trying to compile the last Gem from https://github.com/umlaeute/Gem.git
Everything is OK after
$ ./autogen.sh
$ ./configure
...
Result:
  Target                 : Gem.pd_linux
  Objects                :
  default window         : gemglxwindow

Configuration:
  Compiler               : g++
  CXXFLAGS               : -g -O2 -freg-struct-return -O3 -falign-loops
-falign-functions -falign-jumps -funroll-loops -ffast-math -mmmx
			: -I/usr/include/assimp       -I/usr/include/unicap
-I/usr/include/lqt      -I/usr/include/FTGL -I/usr/include/freetype2
-fopenmp -I/usr/include/ImageMagick   -fopenmp
-I/usr/include/ImageMagick   -D_GNU_SOURCE=1 -D_REENTRANT
-I/usr/include/SDL
  DEFINES		:

  LIBS                   : -lXrender -lXxf86vm -ldl -lz -lm
			: -lassimp   -lv4l2   -lv4l1   -lunicap -lrt   -liec61883 -lraw1394
-lraw1394   -ldv -lm   -ldc1394   -lquicktime -lquicktime -lpthread -lm
-lz -ldl   -lmpeg3 -lgmerlin_avdec -lgavl   -lftgl   -ljpeg -ltiff
-lMagick++ -lMagickCore   -lMagickCore   -lSDL
  LDFLAGS		:
			:

  Install path           : /usr/local

 RTE (Pure Data):
  external-extension     : pd_linux
  CFLAGS                 : -DPD
  LIBS                   :

 used optional libraries:

  font-rendering         : FTGL
     default font        :

  image-support
    use ImageMagick      : yes (Magick++)
    use QuickTime        : no
    use AVFoundation     : no
    use TIFF             : yes
    use JPEG             : yes
  moviefile-support
    use PLUGINS		: yes
    use mpeg             : no
    use mpeg-3           : yes
    use QuickTime        : yes
    use AVFoundation     :
    use aviplay          : no
    use gmerlin          : yes
  capture-support
    use PLUGINS		: yes
    use v4l              : yes (libv4l)
    use v4l2             : yes (libv4l)
    use ieee1394         : yes (libdc1394)
    use DV               : yes
    use Unicap           : yes
    use Video-for-WinDOS : no
    use QuickTime        : no
    use AVFoundation     : no

Now run make ...


but i get this error after
$ make
...
Making all in modelASSIMP3
make[2]: entrant dans le répertoire «
/home/nico/Téléchargements/Gem/plugins/modelASSIMP3 »
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I. -I../../src  -I../../src   -DPD -I/usr/include/assimp
-I/usr/include/libdrm  -g -O2 -freg-struct-return -O3 -falign-loops
-falign-functions -falign-jumps -funroll-loops -ffast-math -mmmx -MT
gem_modelASSIMP3_la-modelASSIMP3.lo -MD -MP -MF
.deps/gem_modelASSIMP3_la-modelASSIMP3.Tpo -c -o
gem_modelASSIMP3_la-modelASSIMP3.lo `test -f 'modelASSIMP3.cpp' || echo
'./'`modelASSIMP3.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I../../src -DPD
-I/usr/include/assimp -I/usr/include/libdrm -g -O2 -freg-struct-return
-O3 -falign-loops -falign-functions -falign-jumps -funroll-loops
-ffast-math -mmmx -MT gem_modelASSIMP3_la-modelASSIMP3.lo -MD -MP -MF
.deps/gem_modelASSIMP3_la-modelASSIMP3.Tpo -c modelASSIMP3.cpp  -fPIC
-DPIC -o .libs/gem_modelASSIMP3_la-modelASSIMP3.o
modelASSIMP3.cpp: In member function 'virtual bool
gem::plugins::modelASSIMP3::compile()':
modelASSIMP3.cpp:448:95: error: no matching function for call to
'aiMatrix4x4t<float>::aiMatrix4x4t(aiVector3t<float>,
aiQuaterniont<float>, aiVector3D&)'
   aiMatrix4x4 trafo = aiMatrix4x4(aiVector3t<float>(m_scale),
aiQuaterniont<float>(), m_offset);

                      ^
modelASSIMP3.cpp:448:95: note: candidates are:
In file included from /usr/include/assimp/types.h:498:0,
                 from /usr/include/assimp/cimport.h:47,
                 from modelASSIMP3.h:18,
                 from modelASSIMP3.cpp:14:
/usr/include/assimp/matrix4x4.inl:97:8: note:
aiMatrix4x4t<TReal>::aiMatrix4x4t(const aiMatrix3x3t<TReal>&) [with
TReal = float]
 inline aiMatrix4x4t<TReal>::aiMatrix4x4t (const aiMatrix3x3t<TReal>& m)
        ^
/usr/include/assimp/matrix4x4.inl:97:8: note:   candidate expects 1
argument, 3 provided
/usr/include/assimp/matrix4x4.inl:71:1: note:
aiMatrix4x4t<TReal>::aiMatrix4x4t(TReal, TReal, TReal, TReal, TReal,
TReal, TReal, TReal, TReal, TReal, TReal, TReal, TReal, TReal, TReal,
TReal) [with TReal = float]
 aiMatrix4x4t<TReal> ::aiMatrix4x4t (TReal _a1, TReal _a2, TReal _a3,
TReal _a4,
 ^
/usr/include/assimp/matrix4x4.inl:71:1: note:   candidate expects 16
arguments, 3 provided
/usr/include/assimp/matrix4x4.inl:60:1: note:
aiMatrix4x4t<TReal>::aiMatrix4x4t() [with TReal = float]
 aiMatrix4x4t<TReal> ::aiMatrix4x4t () :
 ^
/usr/include/assimp/matrix4x4.inl:60:1: note:   candidate expects 0
arguments, 3 provided
In file included from /usr/include/assimp/types.h:62:0,
                 from /usr/include/assimp/cimport.h:47,
                 from modelASSIMP3.h:18,
                 from modelASSIMP3.cpp:14:
/usr/include/assimp/matrix4x4.h:65:7: note:
aiMatrix4x4t<float>::aiMatrix4x4t(const aiMatrix4x4t<float>&)
 class aiMatrix4x4t
       ^
/usr/include/assimp/matrix4x4.h:65:7: note:   candidate expects 1
argument, 3 provided
make[2]: *** [gem_modelASSIMP3_la-modelASSIMP3.lo] Erreur 1
make[2]: quittant le répertoire «
/home/nico/Téléchargements/Gem/plugins/modelASSIMP3 »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/nico/Téléchargements/Gem/plugins »
make: *** [all-recursive] Erreur 1


I verified that libassimp-dev is installed.
Any clue to solve this issue ?

My conf :
Pd 0.47.1
last Gem from git (forget the version)
Ubuntu 14.04
MacBookPro Retina 2014 / Nvidia GT750M

++

Jack


PS : after "make -k", I can create [gemwin] object but i get in Pd
console : "gemglxwindow couldn't create". I don't know if there is a
correlation between this error and libassimp.



More information about the GEM-dev mailing list