Closed nzqo closed 1 year ago
@nzqo Did your build include c385d20eeea717b3859ac6a2bcc247b69fc66003? You may have missed it by a few days. That could be the solution.
(the code you mention in the top post was updated in that commit)
It seems I did miss it, although I dont really understand since I am sure I tested this on master and, judging from the commit date, should have had that commit already...
I will test once more once I find time in the coming days and let you know.
@nzqo there's often a delay between the commit date and when we push it to this public remote (we have an internal remote for CI etc.). Seems you got really unlucky based on the date though.
FYI think this is a dupe of https://github.com/EttusResearch/uhd/issues/628
FYI think this is a dupe of https://github.com/EttusResearch/uhd/issues/628
Not sure about that, my issue came about without the use of a custom install path. But maybe related, havent taken that close of a look into the other issue..
Anyway, you were right. I did not have those changes because this issue does not persist and is fixed on the current master. I am hence closing this.
Issue Description
I am trying to build and install uhd from source but am facing an error during the installation, specifically:
Setup Details
I am on a mac m1, Ventura 13.3 with CMake 3.26.3, python 3.11 (both installed as brew packages) and am trying to build from source on master. I tried setting the
PYTHONPATH
variable but that didnt help, I need to manually fix the paths in the generatedcmake_install
scripts.The issue is already apparent in the configuration phase, specifically from the CMake output:
And I can indeed confirm that the script used to find the site-packages (see host root
CMakeLists.txt
)produces this wrong path on my machine, specifically due to
This seems to be a general issue in portability. Without diving into this more deeply, why isnt the
prefix
(which is in fact just the platlib path) used directly as absolute path? Some more discussion can be found on this SO postExpected Behavior
To have the uhd components installed properly, specifically the site-package directory
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
or equivalently/opt/homebrew/lib/python3.11/site-packages
be recognized.Actual Behaviour
Python packages aren't installed properly due to false site-packages path being recognized
Steps to reproduce the problem
I did nothing fancy, just
Additional Information
unrelated fyi: It seems that the provided mailing list link from the issue template is broken, I am getting a 404 from it.