computer-graphics-bounding-volume-hierarchy icon indicating copy to clipboard operation
computer-graphics-bounding-volume-hierarchy copied to clipboard

Few issues on compiling the program on MacOSX

Open hgeorge21 opened this issue 6 years ago • 9 comments

  1. Runs into error when compiling with GCC-9, seems to only work with Clang
  2. Does not seem to have Eigen included, cannot seem to link it...

hgeorge21 avatar Oct 03 '19 00:10 hgeorge21

You have to use git clone --recursive for this assignment, since Eigen is included as a submodule of libigl, which is the only direct submodule on this assignment. Since you've already cloned, use git submodule update --init --recursive instead.

abhimadan avatar Oct 03 '19 00:10 abhimadan

I'll reopen this since I'm sure others will have this issue and leaving it open improves visibility.

abhimadan avatar Oct 03 '19 00:10 abhimadan

I re-cloned it and after trying to compile it here is the issue...

Screen Shot 2019-10-02 at 8 23 32 PM

hgeorge21 avatar Oct 03 '19 00:10 hgeorge21

Thanks for pointing this out. I've pushed a fix, so it should work if you pull the latest version of the repo.

abhimadan avatar Oct 03 '19 00:10 abhimadan

I still cannot find even after git submodule update --init --recursive. Also tried find ./ -name "*igen" after update but get nothing either.

aiwen324 avatar Oct 04 '19 01:10 aiwen324

Do you see the libigl directory? If you do, then Eigen should be located at computer-graphics-bounding-volume-hierarchy/libigl/external/eigen.

abhimadan avatar Oct 04 '19 01:10 abhimadan

I didn't see external folder inside libigl. Even on the github repo for libigl at header 230df4d. I cannot find external folder either.

aiwen324 avatar Oct 04 '19 01:10 aiwen324

It turns out that Eigen is not a submodule of libigl, but instead it downloads Eigen through its CMake config. Our CMake file is configured to build libigl as well, so if you follow the usual cmake instructions from this repo, it will build libigl, which will in turn download Eigen.

abhimadan avatar Oct 04 '19 01:10 abhimadan

Great, it works now! Thanks! Didn't know you can download the module with cmake, that's neat.

aiwen324 avatar Oct 04 '19 02:10 aiwen324