Skip to content

Commit d87db3b

Browse files
James BarbettiJames Barbetti
James Barbetti
authored and
James Barbetti
committed
A little more about MacOS compilation with Xcode.
About as far as I got earlier this week.
1 parent 89391de commit d87db3b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

doco/Compilation_on_MacOS_X.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,25 @@ to ensure that Microsoft Code can find the Clang compiler.
4646
<h2>Compiling dcenttree with XCode</h2>
4747
(These instructions have only been tested with XCode 14.3 Beta)
4848
<br><br>
49-
Download XCode and install it, either via App Store or via the [Apple Developer Page](https://developer.apple.com/xcode/). Version 14.3
50-
is about 7.2 Gb (!).
49+
Download XCode and install it, either via App Store or via the
50+
[Apple Developer Page](https://developer.apple.com/xcode/)
51+
(Version 14.3
52+
is about 7.2 Gb (!)). Download "Command Line Tools for XCode".
5153
I followed the instructions at
5254
[freeCodeCamp](https://www.freecodecamp.org/news/how-to-download-and-install-xcode/).
5355

56+
You may need to
5457

58+
```
59+
cd ~/Projects/decenttree
60+
mkdir xcode
61+
cd xcode
62+
cmake -G Xcode -DCMAKE_XCODE_ATTRIBUTE_CC=/usr/local/opt/llvm/bin/clang -DCMAKE_XCODE_ATTRIBUTE_CXX=/usr/local/opt/llvm/bin/clang++ ..
63+
```
5564

65+
This will create a "decenttree.xcodeproj" file, in the xcode subfolder, which can be opened in XCode.
5666

67+
(but this is about as far as I've got. I barely ever use XCode, and I haven't used it in the last year and a half! -James)
5768

5869
<h2>Compiling decenttree with Visual Code</h2>
5970
There is already a .vscode folder under the project root, for compiling decenttree under Microsoft's Visual Code. You may need to install a C++ compiler.

0 commit comments

Comments
 (0)