• GtkAda on macOS Big Sur

    From Simon Wright@21:1/5 to Gareth Baker on Fri Aug 27 20:48:39 2021
    Gareth Baker <garethbaker60@gmail.com> writes:

    Humm - not sure why but removing the security attribute does not work
    for me.

    Without removing it the programs won't run at all, unless you've turned
    off system integrity protection (bad idea).

    And having removed it, as I said, I see the same unexpected behaviour
    you do.

    Pascal, I'm on a MacBook Pro (Retina, 13-inch, Early 2015)

    On Friday, 27 August 2021 at 18:12:31 UTC+1, Simon Wright wrote:
    Gareth Baker writes:

    Pascal,

    Okay - thanks for replying.

    The testgtk program does the same thing, a window opens up with the
    program shrunk to 1/4 size against a black background.

    The gtk3-demo is slightly different in that it opens up on its own but
    I think again it is 1/4 of the size it should be and the mouse clicks
    do not work where they should.
    Same here.
    I’m on macOS 15.5.2.
    11.5.2 I think!

    I had to run "sudo xattr -d com.apple.quarantine" on bin/*, lib/*.dylib,
    lib/*.so, and the testgtk program.

    Also, on page 2 of
    https://blady.pagesperso-orange.fr/telechargements/gtkada/gtk-ada.pdf,
    it should say
    $ PATH=/opt/gnat-ce-2021/bin:$PATH
    not
    $ PATH=/opt/gnat-ce-2021:$PATH

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gareth Baker@21:1/5 to Simon Wright on Fri Aug 27 13:05:11 2021
    Simon,

    Ahh - okay I did not read your reply correctly.

    Perhaps I should turn gatekeeper back on :-) I've had it turned off for a while to, as you point out, get ada programmes running at all.

    Gareth
    On Friday, 27 August 2021 at 20:48:43 UTC+1, Simon Wright wrote:
    Gareth Baker writes:

    Humm - not sure why but removing the security attribute does not work
    for me.
    Without removing it the programs won't run at all, unless you've turned
    off system integrity protection (bad idea).

    And having removed it, as I said, I see the same unexpected behaviour
    you do.

    Pascal, I'm on a MacBook Pro (Retina, 13-inch, Early 2015)
    On Friday, 27 August 2021 at 18:12:31 UTC+1, Simon Wright wrote:
    Gareth Baker writes:

    Pascal,

    Okay - thanks for replying.

    The testgtk program does the same thing, a window opens up with the
    program shrunk to 1/4 size against a black background.

    The gtk3-demo is slightly different in that it opens up on its own but >> > I think again it is 1/4 of the size it should be and the mouse clicks >> > do not work where they should.
    Same here.
    I’m on macOS 15.5.2.
    11.5.2 I think!

    I had to run "sudo xattr -d com.apple.quarantine" on bin/*, lib/*.dylib, >> lib/*.so, and the testgtk program.

    Also, on page 2 of
    https://blady.pagesperso-orange.fr/telechargements/gtkada/gtk-ada.pdf,
    it should say
    $ PATH=/opt/gnat-ce-2021/bin:$PATH
    not
    $ PATH=/opt/gnat-ce-2021:$PATH

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Blady@21:1/5 to All on Sat Aug 28 15:42:52 2021
    Le 27/08/2021 à 19:12, Simon Wright a écrit :
    Gareth Baker <garethbaker60@gmail.com> writes:

    Pascal,

    Okay - thanks for replying.

    The testgtk program does the same thing, a window opens up with the
    program shrunk to 1/4 size against a black background.

    The gtk3-demo is slightly different in that it opens up on its own but
    I think again it is 1/4 of the size it should be and the mouse clicks
    do not work where they should.

    Same here.

    I’m on macOS 15.5.2.

    11.5.2 I think!

    macOS 11.5.2 too.

    I had to run "sudo xattr -d com.apple.quarantine" on bin/*, lib/*.dylib, lib/*.so, and the testgtk program.

    I forgot to mention that in Readme, I'll change it on SF.
    I should package the whole as you do for GNAT.

    Also, on page 2 of https://blady.pagesperso-orange.fr/telechargements/gtkada/gtk-ada.pdf,
    it should say
    $ PATH=/opt/gnat-ce-2021/bin:$PATH
    not
    $ PATH=/opt/gnat-ce-2021:$PATH

    Thanks for the typo, fixed in source text.

    The reported behavior by Gareth and you is quite puzzling.
    Maybe one configuration difference could be Xcode.
    I installed only Xcode (no CL tools):
    % xcodebuild -version
    Xcode 12.5.1
    Build version 12E507
    % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
    No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
    % xcode-select -p
    /Applications/Xcode.app/Contents/Developer

    I guess nothing relevant was printed in the Terminal.
    However, could you check the dylib loading with DYLD_PRINT_LIBRARIES?
    For instance:
    % DYLD_PRINT_LIBRARIES=1 ./gtk3-demo

    Other ideas are welcome :-)

    Pascal.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)