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

chrv80

macrumors newbie
Original poster
Sep 15, 2020
10
11
Greece
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

chrv80

macrumors newbie
Original poster
Sep 15, 2020
10
11
Greece
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.
 

chrv80

macrumors newbie
Original poster
Sep 15, 2020
10
11
Greece
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..
 

barracuda156

macrumors 68000
Sep 3, 2021
1,736
1,268
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.
 

barracuda156

macrumors 68000
Sep 3, 2021
1,736
1,268
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.
 

barracuda156

macrumors 68000
Sep 3, 2021
1,736
1,268
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.)
 

barracuda156

macrumors 68000
Sep 3, 2021
1,736
1,268
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

galgot

macrumors 6502
May 28, 2015
486
898

chrv80

macrumors newbie
Original poster
Sep 15, 2020
10
11
Greece
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.
 

barracuda156

macrumors 68000
Sep 3, 2021
1,736
1,268
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

galgot

macrumors 6502
May 28, 2015
486
898
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

galgot

macrumors 6502
May 28, 2015
486
898
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.