Installing FreeCiv on Apple Silicon

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
mkd
Posts: 8
Joined: Tue Jun 18, 2024 4:50 pm

Re: Installing FreeCiv on Apple Silicon

Post by mkd »

I see, I really appreciate your help, especially given that you are not a Mac user. I wish I had a Windows where things would be much easier, I presume... At the same time I enjoy learning all this stuff about compiling gnu packages manually.
Elefant
Hardened
Posts: 239
Joined: Sat May 28, 2022 3:55 am

Re: Installing FreeCiv on Apple Silicon

Post by Elefant »

No problem :D. You could also try

Code: Select all

 jhbuild build freeciv
That should build freeciv and it's dependencies, according to the jhbuild readme, but I don't know if freeciv is compatible with the automation tools.
Civ 3 tileset: viewtopic.php?t=92953
3d Irrlicht desktop client development: viewtopic.php?t=92289&start=20
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Installing FreeCiv on Apple Silicon

Post by cazfi »

mkd wrote: Wed Jun 19, 2024 5:59 amWhat confuses me now is that the config.log is now complaining about not finding zlib.pc while checking for gtk+-3.0:
There must be (recursively) a dependency for zlib defined in the gtk+-3.0.pc you are using, causing it to look for zlib.pc. The freeciv configure itself checks for zlib by other means (doesn't require .pc file for zlib)
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: Installing FreeCiv on Apple Silicon

Post by cazfi »

If following that specific method is not important to you, but you want to get freeciv working by any means, I would recommend trying using homebrew. That's what our CI (continuous integration) tests to be working after every change that gets in.

See https://github.com/freeciv/freeciv/blob ... ows/ci.yml and https://github.com/freeciv/freeciv/blob ... i-build.sh for reference for how CI does it.

Maybe also https://github.com/freeciv/freeciv/blob ... pbundle.sh is worth checking out.
mkd
Posts: 8
Joined: Tue Jun 18, 2024 4:50 pm

Re: Installing FreeCiv on Apple Silicon

Post by mkd »

Elefant wrote: Wed Jun 19, 2024 4:48 pm No problem :D. You could also try

Code: Select all

 jhbuild build freeciv
That should build freeciv and it's dependencies, according to the jhbuild readme, but I don't know if freeciv is compatible with the automation tools.
Actually, running ~/.new_local/bin/jhbuild shell and then ./configure in that shell worked! It's all compiled and installed now and running fine! :D Except there's no sound but I am working on that as well...
mkd
Posts: 8
Joined: Tue Jun 18, 2024 4:50 pm

Re: Installing FreeCiv on Apple Silicon

Post by mkd »

cazfi wrote: Wed Jun 19, 2024 9:57 pm If following that specific method is not important to you, but you want to get freeciv working by any means, I would recommend trying using homebrew. That's what our CI (continuous integration) tests to be working after every change that gets in.
I understand and I get that it is usually much easier with package managers but I have an aversion to macports and homebrew...
Post Reply