Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake error #153

Closed
robellebor opened this issue Feb 8, 2018 · 20 comments
Closed

cmake error #153

robellebor opened this issue Feb 8, 2018 · 20 comments

Comments

@robellebor
Copy link

robellebor commented Feb 8, 2018

when i try to execute the command cmake ../ i get an error

 CMake Error at cmake/Modules/UHDComponent.cmake:51 (MESSAGE):
 Dependencies for required component LibUHD not met.
 Call Stack (most recent call first):
 CMakeLists.txt:351 (LIBUHD_REGISTER_COMPONENT)


  -- Configuring incomplete, errors occurred!
  See also "/home/robel/workarea-uhd/uhd/host/build/CMakeFiles/CMakeOutput.log".
  See also "/home/robel/workarea-uhd/uhd/host/build/CMakeFiles/CMakeError.log".

what should i do i tried many things but ....

@dkozel
Copy link
Contributor

dkozel commented Feb 8, 2018

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 [email protected] email address are better places to get fast help for installation and application development.

@robellebor
Copy link
Author

robellebor commented Feb 8, 2018

screenshot from 2018-02-08 11-55-23

i use ubuntu 17.10

@robellebor
Copy link
Author

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)

@dkozel
Copy link
Contributor

dkozel commented Feb 8, 2018

@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.

https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux#Update_and_Install_dependencies

I hope this works for you. If you have any other questions the mailing list is a great resource and has a good community.

@audiohacked
Copy link

@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"

@noc0lour
Copy link
Contributor

@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.

@mbr0wn
Copy link
Contributor

mbr0wn commented Feb 12, 2018

Hm yeah, this is hard to fix from our end.

@audiohacked
Copy link

audiohacked commented Feb 12, 2018

@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.

@rjzak
Copy link

rjzak commented May 8, 2019

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.

@mbr0wn
Copy link
Contributor

mbr0wn commented May 9, 2019

Boost.Python was removed from UHD (and replaced with PyBind11).

@rjzak
Copy link

rjzak commented May 9, 2019

In which version? I'm pretty sure that's not documented. I was going over the compilation instructions.

@mbr0wn
Copy link
Contributor

mbr0wn commented May 9, 2019

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?

@awilliamson
Copy link

awilliamson commented Jul 13, 2019

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.

@mkdthanga
Copy link

"Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_MAKO" OFF ON

Can please tell me how and where did you change it?

@joeldelosangeles
Copy link

"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

@hanghoo
Copy link

hanghoo commented Jun 21, 2023

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)

@kraj
Copy link

kraj commented Jul 8, 2023

I think you are missing a dependency python-mako once its installed on the system this error should go away

@mbr0wn
Copy link
Contributor

mbr0wn commented Jul 10, 2023

Yeah you really don't have to modify CMakeLists.txt files if you're on a standard Ubuntu or similar

@K0zero
Copy link

K0zero commented Aug 29, 2023

kraj

this is worked to me thanks a lot

@RRoHES
Copy link

RRoHES commented Feb 18, 2024

I did
pip install mako
to resolve this issue which download the missing mako module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests