installing uns_projects on a mac
It seems that installing uns_projects (which needs unsio) has some issues I don't understand on a mac. Maybe @jcldc can help out with this.
On linux the command "mknemo uns_projects" works, but hdf5 and sqlite need to be installed. For example, on ubuntu the package names are libsqlite3-dev, libhdf5-serial-dev, and hdf5-tools.
On a mac, using brew, the packagenames are called sqlite and hdf5. Then it complained about RPC missing, so we installed the package libtirpc, which comes pre-installed with ubuntu, but it seems on a mac we need it.
After that, the error remains, and there is still the complaint about RPC. Do we need a flag for cmake to tell it where the RPC library now lives?
CMake Error at cmake/FindRPCH.cmake:42 (message):
rpc.h not found ...
I got a bit further. In cmake/FindRPCH.cmake I added the directory /opt/homebrew/include/tirpc to the findfile()
After this malloc.h wasn't found. that was enough for my evening, for now.
ah, stackoverflow suggested to replace malloc.h by stdlib.h - that worked. this is in tipsy2gadget.cc
Hi, the compiling/installation issue should be fixed by using uns_project gitlab develop branch
It should allow compiling on both macos Intel and ARM (Mx)
I have also updated nemo/src/scripts/mknemo.d/unsio and nemo/src/scripts/mknemo.d/uns_projects because gitlab URL of these projects have changed. Here are the new URL : https://gitlab.lam.fr/simutools/uns_projects https://gitlab.lam.fr/simutools/unsio
I have committed and pushed in the master NEMO branch
PS : many changed have been done in uns_projects develop branch
any ETA on when the develop branch comes back to main?
Well, I don't know yet when it will be completed, maybe in 2 weeks, maybe less. In the meantime, it would be possible to modify, again. mknemo.d/uns_projects to add a statement to switch to develop branch ?
I indeed put a comment in to switch to a branch, to be committed soon.