Converting from pangolin::OpenGLMatrix to Eigen::Matrix while calling Make for maskfusion
andylai2 opened this issue · 1 comments
andylai2 commented
I am having issues building maskfusion. Everything has built properly until the final step, after calling cmake in the maskfusion/build directory and then calling make.
I am getting an error in the file maskfusion/Core/Shaders/FeedbackBuffer.cpp
Here is the error message:
maskfusion/Core/Shaders/FeedbackBuffer.cpp: In member function 'void FeedbackBuffer::render(pangolin::OpenGlMatrix, const Matrix4f&, bool, bool)':
maskfusion/Core/Shaders/FeedbackBuffer.cpp:133:45: error: no matching function for call to 'Uniform::Uniform(const char[4], pangolin::OpenGlMatrix&)' drawProgram->setUniform(Uniform("MVP", mvp));
It looks like a fix I can apply is by editing FeedbackBuffer.cpp to manually convert mvp into an Eigen matrix, but I don't know what dimensions it needs to be.
In Core/Shaders/Uniform.h there is no matching function that takes in an OpenGlMatrix as a parameter.
andylai2 commented
Never mind, I fixed this by starting a clean build and installing Eigen before Pangolin. If it is done in the wrong order then this issue will arise.