cmake fails after Metis merge

Issue #167 resolved
Frank Dellaert created an issue

-- Building 3rdparty CMake Error at gtsam/3rdparty/metis/CMakeLists.txt:38 (include): include could not find load file:

/Users/frank/git/gtsam/gtsam/3rdparty/metis-5.1.0/GKlib/GKlibSystem.cmake

Comments (17)

  1. Frank Dellaert reporter

    I fixed this by replacing the path to GKlib to /Users/frank/git/gtsam/gtsam/3rdparty/metis/GKlib manually, after seeing this was the value generated by another build. A bit weird, though, @amelim , that it is an absolute path? And, if GKlib is distributed in 3rdparty, why do we need a setting at all? Finally, if you are changing cmake files, please note we should not have informational messages, only errors or warnings.

  2. Frank Dellaert reporter

    Changes to minor as this issue provides a fix, but I think it needs @amelim to clean this up a bit.

  3. Frank Dellaert reporter

    Also, @amelim , I have the impression compilation takes longer now. Could you sanity-check whether metis headers (both 3dparty and yours) are sufficiently isolated? Ideally they would only be included in some .cpp file, not in a .h that is included everywhere.

  4. Chris Beall

    The easiest way without clearing the cache is to clear the filed. CMake will rediscover the value.

  5. Frank Dellaert reporter

    The output that is new and should be suppressed, IMHO:

     GTSAM Additional: optimized;/opt/local/lib/libtbb.dylib;optimized;/opt/local/lib/libtbbmalloc.dylib;debug;/Users/dellaert/lib/libtbb_debug.dylib;debug;/Users/dellaert/lib/libtbbmalloc_debug.dylib;metis
    
     GTSAM Exports: CppUnitLite;wrap;metis
    
     GTSAM export: CppUnitLite;wrap;metis;gtsam;gtsam_unstable
    
  6. Frank Dellaert reporter

    Also, all of a sudden complains about Doxygen?

    -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
    
  7. Chris Beall

    Doxygen detection by CMake works fine for me. Does it work if you manually set the DOXYGEN_EXECUTABLE variable to /opt/local/bin/doxygen in CMake?

  8. Frank Dellaert reporter

    It's just that there is a behavior change: I had to install doxygen to make it work, that tells me that before it did not care about whether doxygen was there or not.

  9. Andrew Melim

    It's possible there was a regression in develop between when I forked and then merged the feature branch. What is the desired behavior?

  10. Frank Dellaert reporter

    Desired = doxygen is not needed, complain but allow user to turn off that warning by setting a SMAKe variable to false (as with TBB/OpenMP)

  11. Andrew Melim

    Fixed one minor header issue with MetisIndex-inl.h Not sure if it addressed compile time issues though

  12. Log in to comment