Hi Project Chrono Team,
I spent the day trying to Cmake project chrono. I followed the Mac OS 
instructions in Chrono tutorial install 
<https://api.projectchrono.org/tutorial_install_chrono.html>. I used the 
preset "macOS CI Configuration" and generator "Unix Makefiles" in the cmake 
GUI.

This succeeds in building and generating project chrono after making sure 
the value for "THRUST_INCLUDE_DIR" is empty. However it was built and 
generated with Sensor, Distributed, GPU, FSI, and Multicore disabled. 
Multicore requires Thrust while the other modules require Cuda. Both were 
not found. 

I failed to install Thrust without Cuda in a Mac Silicon. *Question 1: Am I 
missing something or did I follow the steps correctly and none of these 
modules can be run on a Mac Silicon?*

Moving forward, I attempted to make from the generated build using:


make CXXFLAGS="-Xpreprocessor -fopenmp" LDFLAGS="-lomp"


This was based on the MacOS clang++ issues highlighted in step 8. This 
results in 8 warnings and 1 error. The error being:


*/opt/homebrew/include/eigen3/Eigen/Core:70:10: **fatal error: **'omp.h' 
file not found*

#include <omp.h>

*         ^~~~~~~*

8 warnings and 1 error generated.

make[2]: *** [src/chrono/CMakeFiles/ChronoEngine.dir/core/ChFilePS.cpp.o] 
Error 1

make[1]: *** [src/chrono/CMakeFiles/ChronoEngine.dir/all] Error 2

make: *** [all] Error 2


*Question 2: Again, where did I go wrong here?*


I am new to the macOS, shell, and cmake and the learning curve was steep 
getting to this point. So, I hope you cut me some slack if any/all of my 
questions are basic/naive and I hope you can help me get over this hurdle 
and successfully run Chrono. Of course running the additional modules and 
parallelization would be an amazing bonus after successful installation.


>From what I read, Chrono sounds solid in multi-body dynamics. I hope I can 
make it run on my mac and start benefiting from it.


Thank you,

Akthem

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/fe001f02-7129-4756-ade5-bd1a967a0ce3n%40googlegroups.com.

Reply via email to