-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can one run it on macOS? #1
Comments
Hi Ondrej,
can you run it via "wish"? Normally, the Tcl installation includes both the
tclsh and the wish shells. wish contains the Tk package by default. If that
is not the case, you could add the command "package require Tk" at the
start.
Let me know how that goes. I am not a OSX user and have no access to it,
alas, but I can ask some friends from the Tcl/Tk community ;).
Regards,
Arjen
Op vr 15 okt. 2021 om 13:39 schreef Ondřej Čertík ***@***.***
…:
I tried:
fortran-lang/fpm-gui(main) $ tclsh fpm-gui.tcl
Cloning into 'fpm-registry'...
remote: Enumerating objects: 374, done.
remote: Counting objects: 100% (162/162), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 374 (delta 98), reused 116 (delta 65), pack-reused 212
Receiving objects: 100% (374/374), 88.19 KiB | 1.14 MiB/s, done.
Resolving deltas: 100% (196/196), done.
invalid command name "wm"
while executing
"wm title . "fpm - Fortran package manager""
(procedure "mainWindow" line 2)
invoked from within
"mainWindow $packageNames"
(file "fpm-gui.tcl" line 312)
So I think we need to figure out how to install the Tk? How can one
install it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YR6HQK3DDN7SQQLR6R3UHAHHZANCNFSM5GBY6QPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
That worked! Very cool. Here is a screenshot on Apple M1: Two issues: Major: it looks like Tk is deprecated on macOS, and will eventually stop working. $ wish fpm-gui.tcl
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning. Minor: It could not find
Although when I install it, I would just put |
P.S. I see that it created |
Hi Ondrej,
well, it says the "system version" - when I pack it all in it will have all
the necessities in the one executable. I may have time this weekend to pick
up the work again. It has been quite a while.
Regards,
Arjen
Op vr 15 okt. 2021 om 15:33 schreef Ondřej Čertík ***@***.***
…:
That worked! Very cool. Here is a screenshot on Apple M1:
[image: Screen Shot 2021-10-15 at 7 30 23 AM]
<https://user-images.githubusercontent.com/20568/137495074-0b596c8f-5360-48d9-857f-0cf7571e9ad2.png>
Two issues:
Major: it looks like Tk is deprecated on macOS, and will eventually stop
working.
$ wish fpm-gui.tcl DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Minor: It could not find fpm, but I think I actually don't have it
installed anyway right now:
couldn't execute "\Users\certik\fpm\fpm.exe": no such file or directory
couldn't execute "\Users\certik\fpm\fpm.exe": no such file or directory
while executing
"open "|$cmd ***@***.***" "r""
(procedure "runCommand" line 38)
invoked from within
"runCommand build"
invoked from within
".buttons.build invoke "
invoked from within
".buttons.build instate {pressed !disabled} { .buttons.build state !pressed; .buttons.build invoke } "
(command bound to event)
Although when I install it, I would just put fpm into my $PATH.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YRYCCRF37ZQ2SIYRI2LUHAUSHANCNFSM5GBY6QPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
If you give me instructions how to do it on macOS, I can try. If we can create a binary tarball that one just unpacks and it will work, that is the way to go. We'll then setup our CI to do that automatically. I can help too, but will need some guidance from you. |
Hi Ondrej,
wonderful, I will go and work on this this weekend :). The steps are not
too difficult, but it is always easier to do it in a haphazard way and rely
on muscle memory than to write down the proper steps so somebody (or a
machine) can do it.
Regards,
Arjen
Op vr 15 okt. 2021 om 16:40 schreef Ondřej Čertík ***@***.***
…:
If you give me instructions how to do it on macOS, I can try. If we can
create a binary tarball that one just unpacks and it will work, that is the
way to go. We'll then setup our CI to do that automatically.
I can help too, but will need some guidance from you.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YR2P7W3F4ULUNJZRRQLUHA4NTANCNFSM5GBY6QPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Ok, perfect! Looking forward. |
Hi Ondrej,
I have updated the GUI: some menu items (the ones under File and Help now
work), some management improvements (options for fpm) and also a script
plus a readme.txt file that show how to create standalone executables. You
need the proper tclkits as indicated in the readme.txt files and probably a
translation of the batch file/script buildkit.bat, as that is geared to
Windows. I have tried to describe the details but here are a few important
points:
- You can build the executables on any platform for any platform, as long
as you have the tclkit for the host and the tclkit for the target platform
- On Windows there is a bizarre problem: you cannot use the same tclkit
file (!) for both the build step and the run-time. I have avoided that by
using a tclkit without Tk support, so that the build step is completely
automatic (rather useful for CI as well) and a tclkit that does have it.
Installation is very very basic - I am looking for something fancier.
- You will need to retrieve the tclkit executables and rename them or
adjust the commands.
Regards,
Arjen
Op vr 15 okt. 2021 om 17:27 schreef Ondřej Čertík ***@***.***
…:
Ok, perfect! Looking forward.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YR4AEXOXJF64QRHOCOLUHBB7JANCNFSM5GBY6QPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I tried:
So I think we need to figure out how to install the Tk? How can one install it?
The text was updated successfully, but these errors were encountered: