EttusResearch / uhd

The USRP™ Hardware Driver Repository
http://uhd.ettus.com
Other
995 stars 666 forks source link

cmake error #153

Closed robellebor closed 6 years ago

robellebor commented 6 years ago

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

robellebor commented 6 years ago

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

i use ubuntu 17.10

robellebor commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

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

audiohacked commented 6 years ago

@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 commented 5 years ago

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 commented 5 years ago

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

rjzak commented 5 years ago

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

mbr0wn commented 5 years ago

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 commented 5 years ago

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 commented 3 years ago

"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 commented 3 years ago

"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 commented 1 year ago

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 commented 1 year ago

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

mbr0wn commented 1 year ago

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

K0zero commented 1 year ago

kraj

this is worked to me thanks a lot

RRoHES commented 8 months ago

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