* * *

Author Topic: fp ide missing in homebrew install  (Read 1356 times)

TrickyDicky

  • Newbie
  • Posts: 4
fp ide missing in homebrew install
« 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?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 584
Re: fp ide missing in homebrew install
« Reply #1 on: May 27, 2018, 08:46:42 pm »
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.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: fp ide missing in homebrew install
« Reply #2 on: May 27, 2018, 08:46:51 pm »
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.


TrickyDicky

  • Newbie
  • Posts: 4
Re: fp ide missing in homebrew install
« Reply #3 on: May 27, 2018, 10:40:21 pm »
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.

TrickyDicky

  • Newbie
  • Posts: 4
Re: fp ide missing in homebrew install
« Reply #4 on: May 27, 2018, 11:11:53 pm »
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.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: fp ide missing in homebrew install
« Reply #5 on: May 27, 2018, 11:18:02 pm »
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



TrickyDicky

  • Newbie
  • Posts: 4
Re: fp ide missing in homebrew install
« Reply #6 on: May 28, 2018, 12:31:55 am »
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.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: fp ide missing in homebrew install
« Reply #7 on: May 28, 2018, 12:36:19 am »
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus