compiling issue on macos 12.4
In order to compile unsio on MacOS 12.4, I had to do the following (./ is the unsio directory resulting from git clone):
-
Replace stdc++ with c++ in all target_link_libraries of ./CMakeLists.txt and ./template/uns_devel/CMakeLists.txt
-
Add the include directory for malloc.h to ./CMakeLists.txt and ./3rdparty/nemolight/CMakeLists.txt:
include_directories (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc)
- Add the following header to 3rdparty/nemolight/src/command.c:
#include <ctype.h>
- Finally after “make install" in order to compile the template, I had to add the following to ./template/uns_devel/CMakeLists.txt (however that might be due to bad configuration on my part...):
include_directories (/usr/local/include/uns) link_directories ( /usr/local/lib /usr/local/lib/nemolite )
Best regards, Stavros