Closed ruberith closed 1 year ago
Hi @ruberith, thank you for getting this to work on Mac! I'm a noob in C++, could you please tell me how you build and run the demos on MacOS? (M1 as well).
I can successfully generate the makefiles using cmake and build on the terminal, but I don't see any executables for the demos...
Which compiler do you use? GCC or clang (Apple's own version)
EDIT:
Actually I found the executables in the bin
folder. However, when I run the ClothDemo for example, the TweekBar is very small and hard to interact with. The rendering isn't super smooth either, is that to be expected?
See screenshot below:
If you hover over the TweakBar, you can find a small button at the top left to toggle between a few sizes. The bar also has an option to reduce the # time steps / update
of the visualization.
I previously did not notice the incorrect rendering of the bar, as I had an external monitor connected. Thank you for mentioning that issue, @amirhmk. AntTweakBar does not seem to handle the Framebuffer scale on Retina displays well, so the last commit should fix that.
These adaptations allow builds using Clang on recent versions of macOS (tested on Apple silicon):
CMakeLists.txt
has to be updated to point to the original repository again.-mcpu=apple-m1
is used for Apple silicon, for which-march=native
is not yet supported._NSGetExecutablePath
is used to find program paths on macOS.setup.py
.