Open dbrnz opened 3 years ago
@hsorby do you have any quick thoughts on this? From the commit log I see you've recently made changes in this area.
By hacking the CMake files I've managed to build Zinc's dependencies but am now having problems in getting the Zinc build to use these dependencies, with errors such as:
CMake Error at /Users/dave/build/OpenCMISS/opencmiss/install/opencmissdependencies-config.cmake:81 (message):
Mismatch between the current context toolchain () and the toolchain in use
(clang).
I'm wanting this for flatmap automated path layout...
If you need to build it now you will have to use these instructions:
Build the dependencies with these instructions
mkdir ocd
git clone https://github.com/opencmiss/setup.git
mkdir setup-build
cd setup-build
cmake -DOPENCMISS_LIBRARIES=zinc -DOPENCMISS_DEPENDENCIES_ROOT=<full-path-to-ocd-directory-created-above> -DOPENCMISS_SETUP_TYPE=dependencies ../setup
make
Then you can build Zinc like this
cd ..
git clone https://github.com/OpenCMISS/zinc.git
mkdir build-zinc-release
cd build-zinc-release
cmake -DOPENCMISSDEPENDENCIES_DIR:PATH=<full-path-to-ocd-directory-created-above>/install ../zinc
make
Thanks @hsorby, the above all worked (apart from a missing cd setup-build
). I had realised a two stage build was needed but not worked out how to drive each stage.
Corrected instructions above incase anybody else tries to run these commands.
The instructions at http://opencmiss.org/documentation/building/cmake/setup/docs/cli/osx.html fail when attempting to build
OC_ZINC
, apparently because OpenCMISS dependencies haven't been installed before the Zinc build.Is there a rule missing from Zinc's
CMakeLists.txt
??with the error log containing: