Sorry. I found I had introduced a bug into pacman awhile ago and it
wouldn't download Qt lib for mac (intel and arm).  To workaround, follow
these steps.

Open and edit the file pacman.ijs inside the folder system/util

scroll down to around line 1692 you will see

if. IFUNIX do.
  qt_ldd_test d1
  smoutput 'If libjqt cannot be loaded, see this guide for installing the
Qt library'
  smoutput 'https://code.jsoftware.com/wiki/Guides/Linux_Installation'
  return.
end.

change to first line of it to

if. 'Linux'-:UNAME do.
  qt_ldd_test d1
  smoutput 'If libjqt cannot be loaded, see this guide for installing the
Qt library'
  smoutput 'https://code.jsoftware.com/wiki/Guides/Linux_Installation'
  return.
end.

run jconsole and install qt binaries eg,
install 'qtide'

you may need to run macos-fix.command again


On Sat, Nov 20, 2021 at 4:06 PM Oliver Mooney <[email protected]>
wrote:

> Hi all,
>
> I thought I’d try installing J on a new M1-based apple laptop. I tried the
> current 903 beta as I’m interested in the new tacit stuff.
>
> Following the installation via downloading the .zip for macOS and the wiki
> instructions in general works fine. I could fire up my local jconsole to
> finish the installation and then click on the desktop icons for the
> jconsole or jhs and both run successfully.
>
> jqt refuses to launch. I don’t think this is due to the location of the
> installed binaries (as some other users have found) though I did move the
> installation folder to my home directory to rule out permissions issues
> around using the Documents folder.
>
> If I open up the jqt903 app by right-clicking and navigate to the apprun
> binary hidden within, the error message reported in the terminal reads:
>
> ❯ /Users/olivermooney/Desktop/jqt903.app/Contents/MacOS/apprun ; exit;
> dyld[45858]: Library not loaded: @rpath/QtGui.framework/Versions/5/QtGui
>   Referenced from: /Users/olivermooney/j903/bin/jqt
>   Reason: tried:
> '/Users/olivermooney/j903/bin/../Qt/Frameworks/QtGui.framework/Versions/5/QtGui'
> (no such file),
> '/Users/olivermooney/j903/bin/../Frameworks/QtGui.framework/Versions/5/QtGui'
> (no such file),
> '/Users/drinkwater/Qt/5.15.2/clang_64/lib/QtGui.framework/Versions/5/QtGui'
> (no such file),
> '/Users/olivermooney/j903/bin/../Qt/Frameworks/QtGui.framework/Versions/5/QtGui'
> (no such file),
> '/Users/olivermooney/j903/bin/../Frameworks/QtGui.framework/Versions/5/QtGui'
> (no such file),
> '/Users/drinkwater/Qt/5.15.2/clang_64/lib/QtGui.framework/Versions/5/QtGui'
> (no such file), '/Library/Frameworks/QtGui.framework/Versions/5/QtGui' (no
> such file), '/System/Library/Frameworks/QtGui.framework/Versions/5/QtGui'
> (no such file)
> /users/olivermooney/j903/bin/jqt.command: line 4: 45858 Abort trap: 6
>      bin/jqt
>
> Saving session...completed.
>
>
> So it looks like J expects Qt5 to be installed. I tried installing Qt6 via
> homebrew (the mac’s commandline package manager) which installed Qt6.2
> successfully (Qt6.2 is the first M1 native release of Qt), but it looks
> like jqt wants version 5.
>
> So, I tried installing Qt5 via brew which installed successfully. But
> trying jqt still failed with the same error message.
>
> So (just in case) I tried re-installing J, rerunning pacman and the
> library installation etc. But after that jqt still failed with the same
> error message.
>
> I’m not sure what else I should try at this stage. I’m happy enough to
> keep using the console and jhs interfaces, but some of the nice demos are
> qt-only, and sometimes the J docs seem to assume you’ve access to jqt.
>
> Regardless I’m enjoying learning J - thank you, all involved!
>
> Oliver.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to