IBM / fhe-toolkit-macos

IBM Homomorphic Encryption Toolkit For MacOS
MIT License
360 stars 53 forks source link

command line tools #46

Open JulianAL-01 opened 4 years ago

JulianAL-01 commented 4 years ago

Not a bug with the repo, but a behavioural quirk with macOS and CLT that users might want to be aware of.

With command line tools and xcode installed, on ./setup.sh cmake can fail by not finding c or cxx compiler.

If this happens run:

sudo xcode-select --reset

Re-run ./setup.sh and it should complete without any errors. If it still fails then the envronmental variables will need to be manually exported, therefore find the paths to your compilers:

xcrun -find c++ xcrun -find cc

and then run:

cmake -D CMAKE_C_COMPILER="/path/to/your/c/compiler/executable" -D CMAKE_CXX_COMPILER "/path/to/your/cpp/compiler/executable" .....

Re-run ./setup.sh

dowem commented 4 years ago

Thank you for the information @JulianAL-01 ... I will tag in @boland25 to see if we can maybe automate this in a future point release, or add it to ur documentation if we get a FAQ or something going! I will leave this open for now in case others run into this!