Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
readme.md | 2024-06-23 | 3.1 kB |
|
20240623-Applications-GNATStudio.dmg | 2024-06-23 | 220.5 MB | |
Totals: 2 Items | 220.5 MB | 5 |
GNATStudio 25.0wa for macOS
Here is GNATStudio as a stand alone app for macOS 13.
Steps used to build GNATStudio.app:
Todo.
Get the app
- The app doesn't run on macOS prior version 13 due to dynamic library loader changes.
- Download and open the application DMG file.
- Copy the app in a local folder with your write access (for instance
$HOME/Applications
).
Important steps before launching the app
-
The app is not codesigned, you'll perhaps need to delete quarantine attributes with xattr.
xattr -r -d com.apple.quarantine $HOME/Applications/gnatstudio.app
-
This new GPS aka GNATStudio will create a new
.gnatstudio
folder in $HOME based on.gps
if existing, thus to avoid some troubles I recommend to rename.gps
the first time. - NEW: the GNATStudio launcher looks for a
gnatstudio_launcher.rc
file in.gnatstudio
folder from either$HOME
or$GNATSTUDIO_HOME
locations. If it exists, we can define some environment variables with the standard syntaxVAR=VALUE
. If the VAR exists then VALUE is append to it. If not, VAR is created with VALUE. Thus, it permits to set extra PATH to GNAT compiler and builder folders or GPR_PROJECT_PATH. If a line begins with '#' then it is not considered. An example file ofgnatstudio_launcher.rc
is provided in the archive. Modify the content and put in in your.gnatstudio
folder. - If PATH is not set in
gnatstudio_launcher.rc
then the GNAT and GPR toolchains are predefined to GNAT FSF 13.1 e.g./opt/gcc-13.1.0/bin
. If you have an other location you need to changeGS_GNAT_PATH
andGS_GPR_PATH
in Info.plist of the GNATStudio app. Take care that the Info.plist is cached so you have to put the Info.plist file in a dummy folder and put it back to the app folder. After running GNATStudio, verify the toolchain in menushelp->about
andbuild->settings->toolchains
. - The first launch may take a long time before the GNATStudio window appears due to some macOS stuff. If a popup window appears asking for acknowledgement to access your Documents folder then clic on button OK.
-
In case of issues, I advise to launch the app for the first time in the Terminal to watch logs:
% $HOME/Applications/GNATStudio.app/Contents/MacOS/gnatstudio_launcher
or
% open -a $HOME/Applications/GNATStudio.app --stdout=`tty` --stderr=`tty`
Take care of you PATH contents. Keep your path list to the minimum. Avoid Python, MacPorts, Brew paths. With the first command line, toolchains will be searched only in curent PATH. With the second command line, toolchains will be search in
GS_GNAT_PATH
andGS_GPR_PATH
or in PATH if defined ingnatstudio_launcher.rc
.
Known limitations:
There could be some limitations that you might meet. Feel free to report them on MacAda list. Any help will be really appreciated.
History
- 20240623 : Initial GNATStudio 25.0wa release.
Pascal Pignard, June 2024.