Closed robellebor closed 6 years ago
Hello @robellebor We will need more information before being able to help. Can you please post the entire output from your CMake command? What operating system are you running on?
We use the GitHub issues to track UHD development issues, the USRP-users mailing list and the support@ettus.com email address are better places to get fast help for installation and application development.
i use ubuntu 17.10
thanks i fixed by changing
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" OFF ON) to this
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" ON ON)
@robellebor That looks like you do not have all the dependencies installed. Here is a guide which contains all the dependencies listed. The Ubuntu 17.04 list will almost certainly work for 17.10.
I hope this works for you. If you have any other questions the mailing list is a great resource and has a good community.
@robellebor @dkozel The problem is Ubuntu has a different naming scheme for the libboost_python library so CMake is unable to find the proper libraries. Normal naming scheme is "libboost_python2.7" and "libboost_python3.5" but Ubuntu names the libaries "libboost_python-py27" and "libboost_python-py35"
@audiohacked If that is the case this is most likely a cmake
bug in Ubuntu since the functionality in the distribution shipped FindBoost
cmake
is used. If Ubuntu changes naming for Boost libraries it should account for it in the cmake
Module.
Hm yeah, this is hard to fix from our end.
@mbr0wn One way to "fix" it is to include a patched FindBoost.cmake module in uhd. Another fix is to revoke support of Python 3.
I had this same error, and had to edit the cmake file to ON ON in the Win32 If/Else block. It seems stupid that the else block disables the Python API, despite the required libraries being found.
What's up with this? Could NOT find Boost
then Boost version: 1.58.0
.
-- Boost version: 1.58.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- program_options -- python-py35 -- python -- regex -- system -- unit_test_framework -- serialization -- thread -- atomic -- Boost include directories: /usr/include -- Boost library directories: /usr/lib/aarch64-linux-gnu
Then... Dependency BOOST_PYTHON_FOUND =
The cmake file isn't well done and needs some TLC.
Boost.Python was removed from UHD (and replaced with PyBind11).
In which version? I'm pretty sure that's not documented. I was going over the compilation instructions.
You're right, it's on master. Anyhow, I'm not sure what your exact problem is (given the history of this issue), can you please open a new one?
This definitely needs to be fixed in documentation, or more easily accessible. This has bitten me twice now, from two separate installations.
In addition, the cmake ..
output may fail to find mako ( solved by pip install mako
) and requests ( pip install requests
), alongside the installation of pybind11 at the system level.
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" OFF ON
Can please tell me how and where did you change it?
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" OFF ON
Can please tell me how and where did you change it?
vim /usr/local/src/uhd/host/CMakeLists.txt
thanks i fixed by changing
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" OFF ON) to this
"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" ON ON)
Thank you very much for sharing the solutions. (Modify CMakeLists.txt at /home/uhd/host/CMakeLists.txt)
I think you are missing a dependency python-mako
once its installed on the system this error should go away
Yeah you really don't have to modify CMakeLists.txt files if you're on a standard Ubuntu or similar
kraj
this is worked to me thanks a lot
I did
pip install mako
to resolve this issue which download the missing mako module
when i try to execute the command cmake ../ i get an error
what should i do i tried many things but ....