Difference between revisions of "Installation:Mac"

From GeopsyWiki
Jump to navigation Jump to search
Line 37: Line 37:
 
   InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 
   InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
  
If so, you can skip this step. If not, download Xcode from App Store. It may take several tens of minutes. Be patient. Do not click on square stop button. The progress is indicated by a growing arc of circle. Upon completion, the progress/stop button is replaced by "Open".
+
If so, you can skip this step. If not, download Xcode from the App Store. It may take several tens of minutes. Be patient. Do not click on square stop button. The progress is indicated by a growing arc of circle. Upon completion, the progress/stop button is replaced by "Open".
  
 
Start Xcode graphical interface to accept the license agreement and finish the installation of some additional components. When ready, quit Xcode and check the availability of clang++ in a terminal.
 
Start Xcode graphical interface to accept the license agreement and finish the installation of some additional components. When ready, quit Xcode and check the availability of clang++ in a terminal.
  
 
=== Qt===
 
=== Qt===

Revision as of 12:07, 21 September 2020

Binary package

If it is available for your OS version download the DMG archive and install it.

  • Remove previously installed releases by cleaning
 /Applications/Geopsy.org
 /Library/Geopsy.org
  • Copy
 Applications/Geopsy.org  ==> /Applications/Geopsy.org
 Library/Geopsy.org ==> /Library/Geopsy.org
  • To use the command line tools, modify your .profile like this:
 echo "export PATH=/Applications/Geopsy.org/3.3/Utilities:$PATH" >> ~/.profile

(replace "3.3" by the actual branch number)

Source package

Compiling from the source package may be an option if the binary package is not yet available for your OS version. It takes a bit longer and requires several steps. Once a build environment is ready updates are relatively straight forward.

Xcode

It is the official compiler provided by Apple. It is available free of charge from the App Store if you create an account.

From a terminal, run:

 clang++ --version

You should get something like:

 Apple clang version 12.0.0 (clang-1200.0.32.2) 
 Target: x86_64-apple-darwin19.6.0
 Thread model: posix
 InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

If so, you can skip this step. If not, download Xcode from the App Store. It may take several tens of minutes. Be patient. Do not click on square stop button. The progress is indicated by a growing arc of circle. Upon completion, the progress/stop button is replaced by "Open".

Start Xcode graphical interface to accept the license agreement and finish the installation of some additional components. When ready, quit Xcode and check the availability of clang++ in a terminal.

Qt