Building Catalina on the Mac
David Betz
Posts: 14,516
in Propeller 2
I tried building Catalina on the Mac today and so far haven't had any success. I tried running the Linux build but when I follow the instructions I get an error indicating that it can't find catalina_env. Where is that file supposed to come from? It isn't in the distribution that I downloaded.
Comments
Sorry, I answered in the original thread.
If you have not installed Catalina to the default location (/opt/catalina) then you need to manually set the LCCDIR environment variable.
There are additional instructions (albeit brief!) in the README.Linux file.
The catalina_env batch file is in the bin directory. You may need to set permissions. There is a Set_Linux_Permissions batch script in the same directory that works on Linux. You may need to do some manual tweaking on MacOS.
Ross.
Here are the steps I took: FYI, it does get as far as building the catalina, catbind, and spinnaker executables.
I just downloaded Catalina 4.3_Linux.tar.gz again from SourceForge and catalina_env is definitely in there.
What version did you download?
That looks right. What happens after that? Can you post the output?
I am by no means a Mac expert, but I just read that Xcode now uses Clang as its default compiler. You may have to download and install gcc manually.
EDIT: Also, Clang apparently "pretends" to be gcc - i.e. it can be invoked via the command "gcc". But you will probably need the "real" gcc.
Catalina itself will probably compile, but possibly not some of the additional software it uses. For instance, I think your linker issue with "-E" may have been compiling Lua? I have no idea why Lua would need that particular linker option, but I wouldn't be confident I could ever change it, so I think you have to use gcc.
The last time I tried compiling on a Mac (with gcc), everything compiled except Code::Blocks, which just required too much other software to be bothered with! I haven't tried compiling Geany on a Mac, but that is supposed to be possible.
Next time I have access to a Macintosh, I will try it again. I almost bought one about a year ago, but we were short of money at the time, and I couldn't figure out how I could smuggle it in past my wife!
In the meantime, you could just run Linux in a virtual machine on a Mac - https://www.wikihow.com/Run-Linux-on-a-Mac
Ross.
But it is possible there are also other bits of software that won't compile using Clang.