dilevin / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
6 stars 6 forks source link

build issue in visualize_aabbtree.h #36

Closed zxzxzx131313 closed 4 years ago

zxzxzx131313 commented 4 years ago
computer-graphics-bounding-volume-hierarchy-master/distances.cpp:9:
computer-graphics-bounding-volume-hierarchy-master/visualize_aabbtree.h:135:5: 
error: reference to
      non-static member function must be called; did you mean to call it with no
 arguments?
    v.core.background_color.setConstant(0.8);
    ~~^~~~
           ()
computer-graphics-bounding-volume-hierarchy-master/libigl/cmake/
../include/igl/opengl/glfw/Viewer.cpp:1060:34: note: 
      possible target for call
  IGL_INLINE ViewerCore& Viewer::core(unsigned core_id /*= 0*/)
                                 ^
computer-graphics-bounding-volume-hierarchy-master/libigl/cmake/
../include/igl/opengl/glfw/Viewer.cpp:1072:40: note: 
      possible target for call
  IGL_INLINE const ViewerCore& Viewer::core(unsigned core_id /*= 0*/) const
                                                     ^

On Mac. When I tried to build the project, this appeared. I did installed the latest igl and did not change anything in the starter code. Confused if anyone else got this. Thank you.

dilevin commented 4 years ago

Due to changes in recent versions of lib Igl, you must use the version included with the assignment.