Lazarus
Installation => macOS / Mac OS X => Topic started by: TrickyDicky on May 27, 2018, 08:36:20 pm
-
Hi all, brand new user.
I installed fpc from homebrew, the compiler works fine with the examples. But I can't find the IDE, 'fp'.
I tried building the source from fpc-3.0.4.source.tar.gz (grep'ing for 'fp' is pretty difficult).
Is there an extra step or directory I should be adding to PATH?
-
The textmode IDE is not tested on macOS and hence not supported. That said, it should work equally well as on other platforms.
It is located in the "ide" subdirectory of the source distribution. Using "make all IDE=1" using the top-level Makefile will build the IDE. Afterwards, you can go in the "ide" subdirectory and should be able use something like "make install INSTALL_PREFIX=$HOME/homebrew/" to install it.
-
I installed fpc from homebrew, the compiler works fine with the examples. But I can't find the IDE, 'fp'.
I've never heard of anyone using that ancient thing on Mac. Maybe it doesn't work at all?
Perhaps it's time that you graduate to the Lazarus IDE. You'll get a lot more help with that here than with fp.
-
The textmode IDE is not tested on macOS and hence not supported. That said, it should work equally well as on other platforms.
It is located in the "ide" subdirectory of the source distribution. Using "make all IDE=1" using the top-level Makefile will build the IDE. Afterwards, you can go in the "ide" subdirectory and should be able use something like "make install INSTALL_PREFIX=$HOME/homebrew/" to install it.
Ah! I also found a wiki entry too. The IDE=1 flag is perfect. Thank you so much.
-
I've never heard of anyone using that ancient thing on Mac. Maybe it doesn't work at all?
I am currently trying to find out. Should be fun!
Perhaps it's time that you graduate to the Lazarus IDE. You'll get a lot more help with that here than with fp.
Maybe one day. The day job is Python and Java :'( I am starting with console games like text adventures. I last used Pascal in college a few decades ago, so fp is cozy on Windows.
-
The day job is Python
Don't forget that you can put Pascal in a dynamic library (.dll, .so, .dylib) and call it from Python via an extension module. See Pascal Dynamic Libraries articles here:
https://macpgmr.github.io
I'm looking at the Python interoperability that Google added to Apple's Swift language. This works well in my testing so far and is easy to try out on Mac and Linux. This would be another way to call a Pascal dynamic library from Swift (for example, if you have only a Python wrapper for the library and not the C header file and Swift wrapper described in the articles). More here:
https://github.com/tensorflow/swift/blob/master/docs/PythonInteroperability.md
-
The day job is Python
Don't forget that you can put Pascal in a dynamic library (.dll, .so, .dylib) and call it from Python via an extension module. See Pascal Dynamic Libraries articles here:
https://macpgmr.github.io
I'm looking at the Python interoperability that Google added to Apple's Swift language. This works well in my testing so far and is easy to try out on Mac and Linux. This would be another way to call a Pascal dynamic library from Swift (for example, if you have only a Python wrapper for the library and not the C header file and Swift wrapper described in the articles). More here:
https://github.com/tensorflow/swift/blob/master/docs/PythonInteroperability.md
Now that is interesting. I piss my colleagues off enough using Common Lisp.
-
Now that is interesting. I piss my colleagues off enough using Common Lisp.
You might find this related article interesting too, a discussion of the strengths and weaknesses of Python and Swift in the context of Google's TensorFlow maching learning project:
https://github.com/tensorflow/swift/blob/master/docs/WhySwiftForTensorFlow.md
It only took about 10 minutes to set up the tensorflow branch of Swift on Ubuntu by using this build if you want to play with it and Python together:
https://github.com/tensorflow/swift/blob/master/Installation.md
I was able then to call my Pascal library (via its Python wrapper class) from Swift code. Pretty straightforward.