SarahWeiii / CoACD

[SIGGRAPH2022] Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search
https://colin97.github.io/CoACD/
MIT License
457 stars 59 forks source link

When building CoAcd can't link to the standard math library on Macos #27

Closed fire closed 11 months ago

fire commented 12 months ago

Can't link to the standard math library on the mac machine or on the cloud.

https://github.com/fire/CoACD/actions/runs/6448697326/job/17506251288

-- ----------------------------------------------------
-- ----------- Configuring OpenVDBBinaries ------------
-- ----------------------------------------------------
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Failed
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Failed
-- Performing Test standard_math_library_linked_to_automatically
-- Performing Test standard_math_library_linked_to_automatically - Failed
-- Performing Test standard_math_library_linked_to_as_m
CMake Error at build/_deps/eigen-src/CMakeLists.txt:108 (message):
-- Performing Test standard_math_library_linked_to_as_m - Failed
  Can't link to the standard math library.  Please report to the Eigen
  developers, telling them about your platform.
-- Configuring incomplete, errors occurred!
eliphatfs commented 11 months ago

It is due to cmake not finding <cmath> library. Could you please check whether this snippet compiles with cmake or not in that environment?

#include<cmath>
int main(int argc, char **){
  return int(std::sin(double(argc)) + std::log(double(argc)));
}
eliphatfs commented 11 months ago

https://github.com/eliphatfs/CoACD/actions/runs/6462172832

fire commented 11 months ago

Can you pr the mac build to coacd? I would appreciate the work thanks!

SarahWeiii commented 11 months ago

It was merged into the main branch now

fire commented 11 months ago

The github actions appear to be disabled.