pforth icon indicating copy to clipboard operation
pforth copied to clipboard

Suggest readme.txt be more explicit about running 'pforth -i system.fth'

Open MaxBarraclough opened this issue 3 years ago • 1 comments

I suggest the readme.txt file be more explicit about how to build the dictionary file (pforth -i system.fth), as it's currently not very 'discoverable' for newcomers. Personally I googled it and found my way to this site, which spells out the steps.

MaxBarraclough avatar Dec 19 '21 16:12 MaxBarraclough

Hey. Thank you for this project. I was able to build it and work with pforth, great experience. I used cmake for the build, which is where I came across initial issues with the dictionary file build.

Updating the readme.txt is one approach here, modifying CMakeLists.txt to support building in a non-root directory may also work. I could submit a PR for that if you wanted.

Have a great weekend.

jgerrish avatar Feb 26 '22 15:02 jgerrish

I improved the README in #124

@jgerrish wrote:

modifying CMakeLists.txt to support building in a non-root directory may also work. I could submit a PR for that if you wanted.

Yes, I would appreciate any help you can offer with CMAKE.

philburk avatar Dec 05 '22 16:12 philburk

If I wanted to install pForth in /usr/local/bin, where is pForth going to find the dictionary file? Where is it going to write it? Perhaps env variables?

I think it might be useful to be able to run a turnkey forth application from any directory…. Like we have save-Forth built in, maybe some kind of installer word built-in, too?

is shebang supported? Something like this would work:

somefile.f (chmod 755):

#!/usr/local/bin/pforth -i path-to-application forth code here (ASCII)

Just thinking out loud here…

mschwartz avatar Dec 11 '22 00:12 mschwartz

@mscwartz - I created a new Issue for your topic. 3146 This topic is about compiling the original Forth code. Your topic is about loading pre-compiled dictionary files.

philburk avatar Jan 08 '23 19:01 philburk

I am closing this because the docs have been modified. If jgerrish wants to submit a modified CMake file then that would be most welcome.

philburk avatar Jan 08 '23 19:01 philburk