Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alex_free

macrumors 65816
Original poster
Feb 24, 2020
1,121
2,380
DOWNLOAD

Welcome To The MacPorts GCC 4.9 Binary Installer For PowerPC Mac OS X Leopard Release 2
*Put together by Alex Free, many thanks to MacPorts for this compiler!*

Why...
Install GCC 4.9 In MINUTES, NOT DAYS! Just getting to the point of having GNU GCC 4.9 On Leopard can be a huge hassle, as no complete binary packages (including dependencies) are easily available. Even the MacPorts build bot and packages.macports.com do not have a complete set of binaries to truely install GCC 4.9 entirely from pre compiled binaries, without compiling source.

How...
1) Install the latest Xcode for Mac OS X 10.5 Leopard (version 3.1.4 https://macintoshgarden.org/sites/macintoshgarden.org/files/apps/xcode314_2809_developerdvd.dmg ).

2) Install the latest MacPorts for Mac OS X 10.5 Leopard ( https://www.macports.org/install.php#installing , this was tested with https://distfiles.macports.org/MacPorts/MacPorts-2.6.3-10.5-Leopard.dmg but all future versions of MacPorts should work as well, unless the config file syntax changes).

3) Run the 'install' script within this release, and wait for the complete message.

What Happened?
MacPorts now recognizes you have installed GNU GCC 4.9 and all of it's dependencies (current as of 11/01/2020 when I first started this build). It is literally no different then if you would have left your Mac compiling everything from source for days. You may be prompted in the future to update these ports, but as it is after running the script you have a complete compiler for PowerPC Leopard.
 
Last edited:
Release 2 is now available. Tiger version coming soon? First I want to try to port a game that requires C++11...

Changes From Release 1:
- No need to enable Web Sharing. Changed from local host to file:///.
- Clears half installed packages automatically.
- Always restores default config files (leaving you MacPorts untouched), even if an error occurs.
- Checks added for existence of MacPorts and Xcode.
 
Last edited:
DOWNLOAD

Welcome To The MacPorts GCC 4.9 Binary Installer For PowerPC Mac OS X Leopard Release 2
*Put together by Alex Free, many thanks to MacPorts for this compiler!*

Why...
Install GCC 4.9 In MINUTES, NOT DAYS! Just getting to the point of having GNU GCC 4.9 On Leopard can be a huge hassle, as no complete binary packages (including dependencies) are easily available. Even the MacPorts build bot and packages.macports.com do not have a complete set of binaries to truely install GCC 4.9 entirely from pre compiled binaries, without compiling source.

How...
1) Install the latest Xcode for Mac OS X 10.5 Leopard (version 3.1.4 https://macintoshgarden.org/sites/macintoshgarden.org/files/apps/xcode314_2809_developerdvd.dmg ).

2) Install the latest MacPorts for Mac OS X 10.5 Leopard ( https://www.macports.org/install.php#installing , this was tested with https://distfiles.macports.org/MacPorts/MacPorts-2.6.3-10.5-Leopard.dmg but all future versions of MacPorts should work as well, unless the config file syntax changes).

3) Run the 'install' script within this release, and wait for the complete message.

What Happened?
MacPorts now recognizes you have installed GNU GCC 4.9 and all of it's dependencies (current as of 11/01/2020 when I first started this build). It is literally no different then if you would have left your Mac compiling everything from source for days. You may be prompted in the future to update these ports, but as it is after running the script you have a complete compiler for PowerPC Leopard.

Hi alex_free,

perhaps you can help me. Can you make an installer vor cmake, because it is not compilable for around 8 weeks (but reported, but no reaction from owner since created the ticket).
Target is to install ffmpeg on my iMacG4, but the were bugs who stop the way again and again.

On my G5 i have installed ffmpeg without problems before the bugs. Sometimes there are fixable problems, but on the iMac G4 it is catastrophic. After a bug has fixed, the next is waiting. Then all is outdated before i get a working FFMPEG.

If possible i would copy the opt folder from my G5 but then the selfupdate dont work correctly.
 
  • Like
Reactions: alex_free
Hi alex_free,

perhaps you can help me. Can you make an installer vor cmake, because it is not compilable for around 8 weeks (but reported, but no reaction from owner since created the ticket).
Target is to install ffmpeg on my iMacG4, but the were bugs who stop the way again and again.

On my G5 i have installed ffmpeg without problems before the bugs. Sometimes there are fixable problems, but on the iMac G4 it is catastrophic. After a bug has fixed, the next is waiting. Then all is outdated before i get a working FFMPEG.

If possible i would copy the opt folder from my G5 but then the selfupdate dont work correctly.
Do you just want FFMPEG? In PowerPC Media Center, there is an option 'Open PPCMC Shell' which opens a Terminal window. In this Terminal window you can use the latest FFMPEG 4.3.1 (same version as MacPorts). The FFMPEG is at /Applications/PPCMC.app/bin/ffmpeg .
 
  • Like
Reactions: netsrot39
Do you just want FFMPEG? In PowerPC Media Center, there is an option 'Open PPCMC Shell' which opens a Terminal window. In this Terminal window you can use the latest FFMPEG 4.3.1 (same version as MacPorts). The FFMPEG is at /Applications/PPCMC.app/bin/ffmpeg .
i know, but my dream is to install it with macports, i also want to install some other tools like mediainfo for example
 
i know, but my dream is to install it with macports, i also want to install some other tools like mediainfo for example
Interesting, so you have Cmake on your G5? I think you can use that to your advantage, you already have a 'binary archive' architecture PPC for one of the last working Cmakes. On your G5, can you go to /opt/local/var/macports/software, zip the 'cmake' directory, and upload it here?
 
  • Like
Reactions: TzunamiOSX
Interesting, so you have Cmake on your G5? I think you can use that to your advantage, you already have a 'binary archive' architecture PPC for one of the last working Cmakes. On your G5, can you go to /opt/local/var/macports/software, zip the 'cmake' directory, and upload it here?

Here it is (cmake-3.18.4_0.darwin_9.ppc)
 

Attachments

  • cmake.zip
    11.4 MB · Views: 188
  • Like
Reactions: alex_free
Here it is (cmake-3.18.4_0.darwin_9.ppc)

This is untested (tons of dependencies would be compiled that I don't have) and by no means an 'official' release by me, but this should work for you.

This is just Cmake, not any of the dependencies. This installer should download and compile any Cmake dependencies, and then install the Cmake you provided me without any compiling. All you need to do is unzip the attached file, cd into the directory, and 'sudo ./install'.

Good luck, and let me know if it works.
 
  • Like
Reactions: TzunamiOSX
It worked?
Negative, after runnig you installer cmake is not in the list and is also not executable.

sudo port install ffmpeg +gpl2 ist starting with compiling cmake and the compiling ends with the known error.

i test the installer again.

Bildschirmfoto 2020-11-11 um 02.25.53.png
 
Pehaps sudo port clean --all cmake will help. Test it.
Like do a normal port install cmake, see the list of what it wants to install, don't install cmake, but install all of those dependencies listed manually, then run the installer.
 
I think this will nee some time. Send a message when done, or tomorrow if it needs too long.

And thanks for your time and help :)
Actually, try this I'm quite sure it will work and you don't need to do that :) I wish I had more time to put together something proper. @TzunamiOSX just leave this running till it finishes.
 

Attachments

  • macports_cmake4.zip
    11.4 MB · Views: 157
Last edited:
Actually, try this I'm pretty sure it will work and you don't need to do that :) I wish I had more time to put together something proper.

Looks like all needed files for cmake are installed. sudo port install cmake is running. If i get the error again, i will run your script.
 
Actually, try this I'm quite sure it will work and you don't need to do that :) I wish I had more time to put together something proper. @TzunamiOSX just leave this running till it finishes.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0DEBUG: Fetching archive failed: The requested URL returned error: 404
Error: Failed to archivefetch cmake: version @3.18.4_0: The requested URL returned error: 404
DEBUG: Error code: NONE
DEBUG: Backtrace: version @3.18.4_0: The requested URL returned error: 404
while executing
"error [msgcat::mc "version @[option version]_[option revision][option portvariants]: %s" $lastError]"
(procedure "portarchivefetch::fetchfiles" line 142)
invoked from within
"portarchivefetch::fetchfiles"
(procedure "portarchivefetch::archivefetch_main" line 5)
invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port cmake failed
 
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0DEBUG: Fetching archive failed: The requested URL returned error: 404
Error: Failed to archivefetch cmake: version @3.18.4_0: The requested URL returned error: 404
DEBUG: Error code: NONE
DEBUG: Backtrace: version @3.18.4_0: The requested URL returned error: 404
while executing
"error [msgcat::mc "version @[option version]_[option revision][option portvariants]: %s" $lastError]"
(procedure "portarchivefetch::fetchfiles" line 142)
invoked from within
"portarchivefetch::fetchfiles"
(procedure "portarchivefetch::archivefetch_main" line 5)
invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port cmake failed
That's version 4?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.