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

chrv80

macrumors newbie
Original poster
Sep 15, 2020
10
11
Greece
Although this is my first post, I am a reader of this forum for years! I have a powerbook g4 1.5ghz, and I am trying to install yewtube, former mps-youtube.. It has a dependency, pycryptodomex, but I cannot install it because it throws error that there is no routines for aligned memory. I tried through macports with gcc12, and through pip from python311.. is there any way to install it? I also tried to install pycryptodome, but it throws the same error..
 
  • Like
Reactions: galgot
I didn't know this one, I will definitely try it! It would be great if there was a thread with the available options for youtube clients.
 
Last edited:
  • Like
Reactions: barracuda156
I tried installing youtube-viewer but it needs the svt-av1 package, which throws this error:
Code:
Undefined symbols:
  "_posix_memalign", referenced from:
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _svt_reference_object_ctor in EbReferenceObject.c.o
      _rest_context_ctor in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _svt_aom_noise_model_update in noise_model.c.o
      _svt_aom_noise_model_update in noise_model.c.o
ld: symbol(s) not found

Any idea why I have errors about "_posix_memalign"?
 
I tried installing youtube-viewer but it needs the svt-av1 package, which throws this error:
Code:
Undefined symbols:
  "_posix_memalign", referenced from:
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _svt_reference_object_ctor in EbReferenceObject.c.o
      _rest_context_ctor in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _svt_aom_noise_model_update in noise_model.c.o
      _svt_aom_noise_model_update in noise_model.c.o
ld: symbol(s) not found

Any idea why I have errors about "_posix_memalign"?

I’m not a developer, so I might not know wth I’m talking about here when I ask why yewtube (or any yt-oriented video viewer geared for PowerPC systems) would need anything related to the AV1 codec? I sincerely don’t know how far down the OS X/macOS stack one can go and still be able to view an AV1-encoded media.

For Macs, something tells me (without knowing definitively) the ability to use av1 media is probably some threshold OS version like Mavericks, Sierra, or Mojave — i.e., middle-aged builds of OS X/macOS which changed direction paradigmatically in some key ways, especially where graphics/GPU support was involved.

I don’t have much of a way to test this presently, but if the yewtube compile fails on this, it’s probably because svt-av1 is calling on dependencies and/or looking for components which simply do not exist on older, PowerPC-oriented builds of OS X.
 
Actually yewtube works without svt-av1, the only problem it had was the pycryptodomex. The youtube-viewer app needs it. I don't know why, and if it is necessary..

As for the svt-av1 I saw the portfile has checks to build for powerpc, I don't know if it builds in general and fails on my system or it has dependency problems in general..
 
I tried installing youtube-viewer but it needs the svt-av1 package, which throws this error:
Code:
Undefined symbols:
  "_posix_memalign", referenced from:
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _svt_reference_object_ctor in EbReferenceObject.c.o
      _rest_context_ctor in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _svt_aom_noise_model_update in noise_model.c.o
      _svt_aom_noise_model_update in noise_model.c.o
ld: symbol(s) not found

Any idea why I have errors about "_posix_memalign"?

I will submit a fix today. It needs legacysupport PG for 10.5.
 
As for the svt-av1 I saw the portfile has checks to build for powerpc, I don't know if it builds in general and fails on my system or it has dependency problems in general..

Well, I test on 10.6 PPC, so 10.5.8-specific errors may go unnoticed.
 
I tried installing youtube-viewer but it needs the svt-av1 package, which throws this error:
Code:
Undefined symbols:
  "_posix_memalign", referenced from:
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor_noy8b in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _svt_recon_picture_buffer_desc_ctor in EbPictureBufferDesc.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _mode_decision_context_ctor in EbModeDecisionProcess.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _picture_control_set_ctor in EbPictureControlSet.c.o
      _svt_reference_object_ctor in EbReferenceObject.c.o
      _rest_context_ctor in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _copy_recon_enc in EbRestProcess.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _produce_temporally_filtered_pic.isra.0 in EbTemporalFiltering.c.o
      _svt_aom_noise_model_update in noise_model.c.o
      _svt_aom_noise_model_update in noise_model.c.o
ld: symbol(s) not found

Any idea why I have errors about "_posix_memalign"?

Try this: https://github.com/macports/macports-ports/pull/18265
(Or wait until the PR is merged.)
 
This did the trick, svt-av1 compiled successfully using gcc12! Thasnks! Now I will try again the youtube-viewer.

So the packages that have errors about _posix_memalign need to add legacy support to port file? Did I understood correctly?

That should work, yes. Please also open a ticket on Trac to inform Macports folks about the needed fix or open a PR directly.
 
  • Like
Reactions: chrv80
In order to access the portfile you need to use edit, here
Code:
sudo port edit py311-pycryptodomex

and add the following line

Code:
configure.cc         ${configure.cc} -std=c99 -Wl,-lMacportsLegacySupport

I added it below "livecheck.type none". Then you install the package as usual.

PS-Update on youtube-viewer, libaacs throws error "Building libaacs @0.11.1 on Mac OS X 10.6 requires the MacOSX10.7.sdk to be present in /Developer/SDKs/". I tried to put the SDK in Developer folder, but then the macports broke with error that the xcode was not installed, until I removed the SDK again.
 
In order to access the portfile you need to use edit, here
Code:
sudo port edit py311-pycryptodomex

and add the following line

Code:
configure.cc         ${configure.cc} -std=c99 -Wl,-lMacportsLegacySupport

I added it below "livecheck.type none". Then you install the package as usual.

PS-Update on youtube-viewer, libaacs throws error "Building libaacs @0.11.1 on Mac OS X 10.6 requires the MacOSX10.7.sdk to be present in /Developer/SDKs/". I tried to put the SDK in Developer folder, but then the macports broke with error that the xcode was not installed, until I removed the SDK again.

1. Alternative option is using overlay repo.

2. Judging from this: https://forums.macrumors.com/thread...-rosetta.2332711/?post=30812454#post-30812454
I have libaacs built for PPC on 10.6. I have no time to rebuild it right now, but will check it in coming days and maybe submit a PR. From a quick look at the patch it appears sensible and not too invasive.
(P. S. I refer to the post, since I am away from the Quad, so do not have live access to what is there.)
 
  • Like
Reactions: chrv80
In order to access the portfile you need to use edit, here
Code:
sudo port edit py311-pycryptodomex

and add the following line

Code:
configure.cc         ${configure.cc} -std=c99 -Wl,-lMacportsLegacySupport

I added it below "livecheck.type none". Then you install the package as usual.

PS-Update on youtube-viewer, libaacs throws error "Building libaacs @0.11.1 on Mac OS X 10.6 requires the MacOSX10.7.sdk to be present in /Developer/SDKs/". I tried to put the SDK in Developer folder, but then the macports broke with error that the xcode was not installed, until I removed the SDK again.

Thank you :)
 
  • Like
Reactions: chrv80
Wanted to report that I installed YewTube on 10.4.11 using the same recipe.
Only change was on that particular 10.4.11, Python310 was active, so had to install py310-pycryptodomex, which failed just like py311-pycryptodomex when using the default install.
Adding :
Code:
configure.cc         ${configure.cc} -std=c99 -Wl,-lMacportsLegacySupport
with
sudo port edit py310-pycryptodomex
solved the thing.
Then could install with pip.
Only problem was that the binary was in
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin
so instead of adding that to my path, just a
Code:
sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/yt /usr/local/bin/yt
worked. Still has problem reading some vids tho, I think mostly the wbmp, but maybe due to the old mplayer 1.3 version I have installed. That don't bothers me much as I use it only for audio.

Walter-Sobchak-280523.jpg

Thanks again.
 
Wanted to report that I installed YewTube on 10.4.11 using the same recipe.
Only change was on that particular 10.4.11, Python310 was active, so had to install py310-pycryptodomex, which failed just like py311-pycryptodomex when using the default install.
Adding :
Code:
configure.cc         ${configure.cc} -std=c99 -Wl,-lMacportsLegacySupport
with
sudo port edit py310-pycryptodomex
solved the thing.
Then could install with pip.
Only problem was that the binary was in
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin
so instead of adding that to my path, just a
Code:
sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/yt /usr/local/bin/yt
worked. Still has problem reading some vids tho, I think mostly the wbmp, but maybe due to the old mplayer 1.3 version I have installed. That don't bothers me much as I use it only for audio.

View attachment 2194921

Thanks again.

It took forever, but: https://github.com/macports/macports-ports/pull/26565
And yes, there are some issues with it, should be dealt with upstream.
But it works now.

yt.png
 
  • Like
Reactions: galgot
PS-Update on youtube-viewer, libaacs throws error "Building libaacs @0.11.1 on Mac OS X 10.6 requires the MacOSX10.7.sdk to be present in /Developer/SDKs/". I tried to put the SDK in Developer folder, but then the macports broke with error that the xcode was not installed, until I removed the SDK again.

Hopefully this was solved back then, but in any case, MacPorts has a fallback version which should build on 10.5–10.6.
If it fails for you, please let me know.
 
I have fixed YouTube search and playback from within QMPlay2, directly (no more buggy smtube).
At the moment it streams in 360p (well, like yewtube either), but hopefully I can fix that as well. If HD streaming is fixed, I will consider the matter resolved for PowerPC, at least until YouTube again breaks something in their API.
 
  • Like
Reactions: Dronecatcher
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.