Re: [USRP-users] Help on UHD Python API installation

2018-01-25 Thread Zhongyuan Zhao via USRP-users
I updated Ubuntu 14.04 LTS to 16.04 LTS, then the cmake passed with
python-api enabled.

Zhongyuan Zhao

PhD Candidate,
Department of Computer Science & Engineering,
University of Nebraska-Lincoln
Office Hour: WF 9:30-10:00am, Avery Hall 12,
Suite 117, Schorr Center,
Lincoln, Nebraska 68588-0115


On Wed, Jan 24, 2018 at 12:17 PM, Zhongyuan Zhao  wrote:

> Python2.7-dev is already installed, here is the full cmake print
>
> ==
> ➜  build cmake ..
> --
> -- Configuring the python interpreter...
> -- Python interpreter: /usr/bin/python
> -- Override with: -DPYTHON_EXECUTABLE=
> fatal: Not a git repository (or any of the parent directories): .git
> -- Could not determine git branch. Probably building from tarball.
> fatal: Not a git repository (or any of the parent directories): .git
> -- Using UHD Images Directory: OFF
> -- Build type not specified: defaulting to release.
> --
> -- Configuring Boost C++ Libraries...
> -- Looking for optional Boost components...
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> --   python
> -- Looking for required Boost components...
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> --   chrono
> --   date_time
> --   filesystem
> --   program_options
> --   regex
> --   system
> --   unit_test_framework
> --   serialization
> --   thread
> -- Boost include directories: /usr/include
> -- Boost library directories: /usr/lib/x86_64-linux-gnu
> -- Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/
> x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-
> linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/
> libboost_program_options.so;/usr/lib/x86_64-linux-gnu/
> libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_
> system.so;/usr/lib/x86_64-linux-gnu/libboost_unit_test_
> framework.so;/usr/lib/x86_64-linux-gnu/libboost_
> serialization.so;/usr/lib/x86_64-linux-gnu/libboost_thread.
> so;/usr/lib/x86_64-linux-gnu/libpthread.so
> --
> -- Python checking for Python version 2.7 or greater
> -- Python checking for Python version 2.7 or greater - found
> --
> -- Python checking for Mako templates 0.4.2 or greater
> -- Python checking for Mako templates 0.4.2 or greater - found
> --
> -- Python checking for requests 2.0 or greater
> -- Python checking for requests 2.0 or greater - found
> --
> -- Python checking for numpy 1.7 or greater
> -- Python checking for numpy 1.7 or greater - found
> --
> -- Configuring LibUHD support...
> --   Dependency Boost_FOUND = 1
> --   Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
> --   Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
> --   Enabling LibUHD support.
> --   Override with -DENABLE_LIBUHD=ON/OFF
> --
> -- Configuring LibUHD - C API support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling LibUHD - C API support.
> --   Override with -DENABLE_C_API=ON/OFF
> --
> -- Configuring LibUHD - Python API support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency BOOST_PYTHON_FOUND = ON
> --   Dependency HAVE_PYTHON_MODULE_NUMPY = TRUE
> --   Dependency PythonLibs_FOUND =
> --   Disabling LibUHD - Python API support.
> --   Override with -DENABLE_PYTHON_API=ON/OFF
> --
> -- Configuring Examples support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Examples support.
> --   Override with -DENABLE_EXAMPLES=ON/OFF
> --
> -- Configuring Utils support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Utils support.
> --   Override with -DENABLE_UTILS=ON/OFF
> --
> -- Configuring Tests support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Tests support.
> --   Override with -DENABLE_TESTS=ON/OFF
> --
> -- checking for module 'libgps'
> --   package 'libgps' not found
> -- checking for module 'libgps >= 3.11'
> --   package 'libgps >= 3.11' not found
> -- Could NOT find LIBGPS (missing:  LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR)
> --
> -- Configuring USB support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency LIBUSB_FOUND = TRUE
> --   Enabling USB support.
> --   Override with -DENABLE_USB=ON/OFF
> --
> -- Configuring GPSD support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency ENABLE_GPSD =
> --   Dependency LIBGPS_FOUND = FALSE
> --   Disabling GPSD support.
> --   Override with -DENABLE_GPSD=ON/OFF
> --
> -- Configuring B100 support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency ENABLE_USB = ON
> --   Enabling B100 support.
> --   Override with -DENABLE_B100=ON/OFF
> --
> -- Configuring B200 support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency ENABLE_USB = ON
> --   Enabling B200 support.
> --   Override with -DENABLE_B200=ON/OFF
> --
> -- Configuring E100 support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency LINUX = TRUE
> --   Disabling E100 support.
> --   Override with -DENABLE_E100=ON/OFF
> --
> -- Configuring E300 support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Disabling E300 support.
> --   Override with -DENABLE_E300=ON/OFF
> --
> -- Configuring USRP1 

Re: [USRP-users] Help on UHD Python API installation

2018-01-25 Thread Ron Economos via USRP-users

This is just a guess, but you may want to try:

sudo apt-get install python-dev

Ron

On 01/24/2018 10:17 AM, Zhongyuan Zhao via USRP-users wrote:

Python2.7-dev is already installed, here is the full cmake print

==
➜ build cmake ..
--
-- Configuring the python interpreter...
-- Python interpreter: /usr/bin/python
-- Override with: -DPYTHON_EXECUTABLE=
fatal: Not a git repository (or any of the parent directories): .git
-- Could not determine git branch. Probably building from tarball.
fatal: Not a git repository (or any of the parent directories): .git
-- Using UHD Images Directory: OFF
-- Build type not specified: defaulting to release.
--
-- Configuring Boost C++ Libraries...
-- Looking for optional Boost components...
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- python
-- Looking for required Boost components...
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- chrono
-- date_time
-- filesystem
-- program_options
-- regex
-- system
-- unit_test_framework
-- serialization
-- thread
-- Boost include directories: /usr/include
-- Boost library directories: /usr/lib/x86_64-linux-gnu
-- Boost libraries: 
/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libpthread.so

--
-- Python checking for Python version 2.7 or greater
-- Python checking for Python version 2.7 or greater - found
--
-- Python checking for Mako templates 0.4.2 or greater
-- Python checking for Mako templates 0.4.2 or greater - found
--
-- Python checking for requests 2.0 or greater
-- Python checking for requests 2.0 or greater - found
--
-- Python checking for numpy 1.7 or greater
-- Python checking for numpy 1.7 or greater - found
--
-- Configuring LibUHD support...
-- Dependency Boost_FOUND = 1
-- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
-- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
-- Enabling LibUHD support.
-- Override with -DENABLE_LIBUHD=ON/OFF
--
-- Configuring LibUHD - C API support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling LibUHD - C API support.
-- Override with -DENABLE_C_API=ON/OFF
--
-- Configuring LibUHD - Python API support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency BOOST_PYTHON_FOUND = ON
-- Dependency HAVE_PYTHON_MODULE_NUMPY = TRUE
-- Dependency PythonLibs_FOUND =
-- Disabling LibUHD - Python API support.
-- Override with -DENABLE_PYTHON_API=ON/OFF
--
-- Configuring Examples support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling Examples support.
-- Override with -DENABLE_EXAMPLES=ON/OFF
--
-- Configuring Utils support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling Utils support.
-- Override with -DENABLE_UTILS=ON/OFF
--
-- Configuring Tests support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling Tests support.
-- Override with -DENABLE_TESTS=ON/OFF
--
-- checking for module 'libgps'
-- package 'libgps' not found
-- checking for module 'libgps >= 3.11'
-- package 'libgps >= 3.11' not found
-- Could NOT find LIBGPS (missing:  LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR)
--
-- Configuring USB support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency LIBUSB_FOUND = TRUE
-- Enabling USB support.
-- Override with -DENABLE_USB=ON/OFF
--
-- Configuring GPSD support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_GPSD =
-- Dependency LIBGPS_FOUND = FALSE
-- Disabling GPSD support.
-- Override with -DENABLE_GPSD=ON/OFF
--
-- Configuring B100 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = ON
-- Enabling B100 support.
-- Override with -DENABLE_B100=ON/OFF
--
-- Configuring B200 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = ON
-- Enabling B200 support.
-- Override with -DENABLE_B200=ON/OFF
--
-- Configuring E100 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency LINUX = TRUE
-- Disabling E100 support.
-- Override with -DENABLE_E100=ON/OFF
--
-- Configuring E300 support...
-- Dependency ENABLE_LIBUHD = ON
-- Disabling E300 support.
-- Override with -DENABLE_E300=ON/OFF
--
-- Configuring USRP1 support...
-- Dependency ENABLE_LIBUHD = ON
-- Dependency ENABLE_USB = ON
-- Enabling USRP1 support.
-- Override with -DENABLE_USRP1=ON/OFF
--
-- Configuring USRP2 support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling USRP2 support.
-- Override with -DENABLE_USRP2=ON/OFF
--
-- Configuring X300 support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling X300 support.
-- Override with -DENABLE_X300=ON/OFF
--
-- Configuring N230 support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling N230 support.
-- Override with -DENABLE_N230=ON/OFF
--
-- Configuring OctoClock support...
-- Dependency ENABLE_LIBUHD = ON
-- Enabling 

Re: [USRP-users] Help on UHD Python API installation

2018-01-25 Thread Brent Stapleton via USRP-users
Hi Zhongyuan,

CMake couldn't determine the Git hash. Not sure why that is; it should say
something like "Working off of feature or development branch. Updating
version number." Is there a .git/ directory in your UHD source directory?

It looks like the CMake module FindPythonLibs [1] can't find your Python
installation for some reason. I find that the program ccmake (a Curses
interface for CMake) [2] is really useful for configuring and debugging
CMake. You should verify that the relevant CMake variables [3] have the
correct values.

If debugging CMake sounds like a lot, you might want to just start fresh
and make sure that all the steps in the installation guide were done
correctly.

Regards,
Brent

[1] https://cmake.org/cmake/help/v3.0/module/FindPythonLibs.html
[2] https://cmake.org/cmake/help/v3.5/manual/ccmake.1.html
[3] ENABLE_PYTHON_API, PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and
PYTHON_LIBRARY are good ones to start with.

On Wed, Jan 24, 2018 at 10:17 AM, Zhongyuan Zhao via USRP-users <
usrp-users@lists.ettus.com> wrote:

> Python2.7-dev is already installed, here is the full cmake print
>
> ==
> ➜  build cmake ..
> --
> -- Configuring the python interpreter...
> -- Python interpreter: /usr/bin/python
> -- Override with: -DPYTHON_EXECUTABLE=
> fatal: Not a git repository (or any of the parent directories): .git
> -- Could not determine git branch. Probably building from tarball.
> fatal: Not a git repository (or any of the parent directories): .git
> -- Using UHD Images Directory: OFF
> -- Build type not specified: defaulting to release.
> --
> -- Configuring Boost C++ Libraries...
> -- Looking for optional Boost components...
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> --   python
> -- Looking for required Boost components...
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> --   chrono
> --   date_time
> --   filesystem
> --   program_options
> --   regex
> --   system
> --   unit_test_framework
> --   serialization
> --   thread
> -- Boost include directories: /usr/include
> -- Boost library directories: /usr/lib/x86_64-linux-gnu
> -- Boost libraries: /usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/
> x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-
> linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/
> libboost_program_options.so;/usr/lib/x86_64-linux-gnu/
> libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_
> system.so;/usr/lib/x86_64-linux-gnu/libboost_unit_test_
> framework.so;/usr/lib/x86_64-linux-gnu/libboost_
> serialization.so;/usr/lib/x86_64-linux-gnu/libboost_thread.
> so;/usr/lib/x86_64-linux-gnu/libpthread.so
> --
> -- Python checking for Python version 2.7 or greater
> -- Python checking for Python version 2.7 or greater - found
> --
> -- Python checking for Mako templates 0.4.2 or greater
> -- Python checking for Mako templates 0.4.2 or greater - found
> --
> -- Python checking for requests 2.0 or greater
> -- Python checking for requests 2.0 or greater - found
> --
> -- Python checking for numpy 1.7 or greater
> -- Python checking for numpy 1.7 or greater - found
> --
> -- Configuring LibUHD support...
> --   Dependency Boost_FOUND = 1
> --   Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
> --   Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
> --   Enabling LibUHD support.
> --   Override with -DENABLE_LIBUHD=ON/OFF
> --
> -- Configuring LibUHD - C API support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling LibUHD - C API support.
> --   Override with -DENABLE_C_API=ON/OFF
> --
> -- Configuring LibUHD - Python API support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency BOOST_PYTHON_FOUND = ON
> --   Dependency HAVE_PYTHON_MODULE_NUMPY = TRUE
> --   Dependency PythonLibs_FOUND =
> --   Disabling LibUHD - Python API support.
> --   Override with -DENABLE_PYTHON_API=ON/OFF
> --
> -- Configuring Examples support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Examples support.
> --   Override with -DENABLE_EXAMPLES=ON/OFF
> --
> -- Configuring Utils support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Utils support.
> --   Override with -DENABLE_UTILS=ON/OFF
> --
> -- Configuring Tests support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Enabling Tests support.
> --   Override with -DENABLE_TESTS=ON/OFF
> --
> -- checking for module 'libgps'
> --   package 'libgps' not found
> -- checking for module 'libgps >= 3.11'
> --   package 'libgps >= 3.11' not found
> -- Could NOT find LIBGPS (missing:  LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR)
> --
> -- Configuring USB support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency LIBUSB_FOUND = TRUE
> --   Enabling USB support.
> --   Override with -DENABLE_USB=ON/OFF
> --
> -- Configuring GPSD support...
> --   Dependency ENABLE_LIBUHD = ON
> --   Dependency ENABLE_GPSD =
> --   Dependency LIBGPS_FOUND = FALSE
> --   Disabling GPSD support.
> --   Override with -DENABLE_GPSD=ON/OFF
> --
> -- Configuring B100 support...
> --   Dependency 

Re: [USRP-users] Help on UHD Python API installation

2018-01-24 Thread Zhongyuan Zhao via USRP-users
Python2.7-dev is already installed, here is the full cmake print

==
➜  build cmake ..
-- 
-- Configuring the python interpreter...
-- Python interpreter: /usr/bin/python
-- Override with: -DPYTHON_EXECUTABLE=
fatal: Not a git repository (or any of the parent directories): .git
-- Could not determine git branch. Probably building from tarball.
fatal: Not a git repository (or any of the parent directories): .git
-- Using UHD Images Directory: OFF
-- Build type not specified: defaulting to release.
-- 
-- Configuring Boost C++ Libraries...
-- Looking for optional Boost components...
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   python
-- Looking for required Boost components...
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   chrono
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   unit_test_framework
--   serialization
--   thread
-- Boost include directories: /usr/include
-- Boost library directories: /usr/lib/x86_64-linux-gnu
-- Boost libraries:
/usr/lib/x86_64-linux-gnu/libboost_chrono.so;/usr/lib/x86_64-linux-gnu/libboost_date_time.so;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;/usr/lib/x86_64-linux-gnu/libboost_regex.so;/usr/lib/x86_64-linux-gnu/libboost_system.so;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so;/usr/lib/x86_64-linux-gnu/libboost_serialization.so;/usr/lib/x86_64-linux-gnu/libboost_thread.so;/usr/lib/x86_64-linux-gnu/libpthread.so
-- 
-- Python checking for Python version 2.7 or greater
-- Python checking for Python version 2.7 or greater - found
-- 
-- Python checking for Mako templates 0.4.2 or greater
-- Python checking for Mako templates 0.4.2 or greater - found
-- 
-- Python checking for requests 2.0 or greater
-- Python checking for requests 2.0 or greater - found
-- 
-- Python checking for numpy 1.7 or greater
-- Python checking for numpy 1.7 or greater - found
-- 
-- Configuring LibUHD support...
--   Dependency Boost_FOUND = 1
--   Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
--   Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
--   Enabling LibUHD support.
--   Override with -DENABLE_LIBUHD=ON/OFF
-- 
-- Configuring LibUHD - C API support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling LibUHD - C API support.
--   Override with -DENABLE_C_API=ON/OFF
-- 
-- Configuring LibUHD - Python API support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency BOOST_PYTHON_FOUND = ON
--   Dependency HAVE_PYTHON_MODULE_NUMPY = TRUE
--   Dependency PythonLibs_FOUND =
--   Disabling LibUHD - Python API support.
--   Override with -DENABLE_PYTHON_API=ON/OFF
-- 
-- Configuring Examples support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling Examples support.
--   Override with -DENABLE_EXAMPLES=ON/OFF
-- 
-- Configuring Utils support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling Utils support.
--   Override with -DENABLE_UTILS=ON/OFF
-- 
-- Configuring Tests support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling Tests support.
--   Override with -DENABLE_TESTS=ON/OFF
-- 
-- checking for module 'libgps'
--   package 'libgps' not found
-- checking for module 'libgps >= 3.11'
--   package 'libgps >= 3.11' not found
-- Could NOT find LIBGPS (missing:  LIBGPS_LIBRARY LIBGPS_INCLUDE_DIR)
-- 
-- Configuring USB support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency LIBUSB_FOUND = TRUE
--   Enabling USB support.
--   Override with -DENABLE_USB=ON/OFF
-- 
-- Configuring GPSD support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency ENABLE_GPSD =
--   Dependency LIBGPS_FOUND = FALSE
--   Disabling GPSD support.
--   Override with -DENABLE_GPSD=ON/OFF
-- 
-- Configuring B100 support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency ENABLE_USB = ON
--   Enabling B100 support.
--   Override with -DENABLE_B100=ON/OFF
-- 
-- Configuring B200 support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency ENABLE_USB = ON
--   Enabling B200 support.
--   Override with -DENABLE_B200=ON/OFF
-- 
-- Configuring E100 support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency LINUX = TRUE
--   Disabling E100 support.
--   Override with -DENABLE_E100=ON/OFF
-- 
-- Configuring E300 support...
--   Dependency ENABLE_LIBUHD = ON
--   Disabling E300 support.
--   Override with -DENABLE_E300=ON/OFF
-- 
-- Configuring USRP1 support...
--   Dependency ENABLE_LIBUHD = ON
--   Dependency ENABLE_USB = ON
--   Enabling USRP1 support.
--   Override with -DENABLE_USRP1=ON/OFF
-- 
-- Configuring USRP2 support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling USRP2 support.
--   Override with -DENABLE_USRP2=ON/OFF
-- 
-- Configuring X300 support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling X300 support.
--   Override with -DENABLE_X300=ON/OFF
-- 
-- Configuring N230 support...
--   Dependency ENABLE_LIBUHD = ON
--   Enabling N230 support.
--   Override with -DENABLE_N230=ON/OFF
-- 
-- Configuring OctoClock support...
--   Dependency ENABLE_LIBUHD = ON

Re: [USRP-users] Help on UHD Python API installation

2018-01-23 Thread Martin Braun via USRP-users
On Tue, Jan 23, 2018 at 04:36:13PM +, Zhongyuan Zhao wrote:
>Hi, 
>The CMAKE shows that Python API is disabled,
>I was unable to enable it. It shows 
>Dependency PythonLibs_FOUND =
>Is there anything missing? 

You need Python development libraries, e.g., python2.7-dev if you're on
Ubuntu.

-- Martin



signature.asc
Description: PGP signature
___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


Re: [USRP-users] Help on UHD Python API installation

2018-01-23 Thread Zhongyuan Zhao via USRP-users
CMAKE list Python API as disabled,

Moreover,
Dependency PythonLibs_FOUND =
Disabling LibUHD - Python API support.

Zhongyuan Zhao

PhD Candidate,
Department of Computer Science & Engineering,
University of Nebraska-Lincoln
Office Hour: WF 9:30-10:00am, Avery Hall 12,
Suite 117, Schorr Center,
Lincoln, Nebraska 68588-0115


On Tue, Jan 23, 2018 at 12:47 AM, Martin Braun via USRP-users <
usrp-users@lists.ettus.com> wrote:

> Zhao,
>
> you need to first install Boost, then UHD. When you run CMake on UHD,
> does it list the Python API as an enabled component?
>
> -- M
>
> On 01/22/2018 02:43 PM, Zhongyuan Zhao via USRP-users wrote:
> > Could anyone provide a complete guidance of installation of UHD Python
> > API on Ubuntu?
> >
> > I cloned the python api repo, and followed this installation of UHD from
> > source
> >  USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux>
> >
> > Then I installed Boost.Python followed here
> > , with these
> > commands
> >
> > |cd path/to/boost_1_66_0 ./bootstrap.sh --help ./bootstrap.sh
> > --prefix=/usr/local/lib/boost --with-libraries=python |
> >
> > However, when I run 'import uhd' in python, it says 'no module named
> > uhd'. The OS is Ubuntu running on a Mac Mini.
> >
> > 1. The source is python-api branch,
> >
> > 2. Build and installed successfully
> >
> > 3. PYTHONPATH: I use cmake ../ to installed on default directory
> > (/usr/local/), and I put '/usr/local/bin/' to PYTHONPATH in .bashrc file
> >
> >
> > Thank you!
> >
> > Zhao
> >
> >
> >
> > ___
> > USRP-users mailing list
> > USRP-users@lists.ettus.com
> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >
>
>
> ___
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


Re: [USRP-users] Help on UHD Python API installation

2018-01-23 Thread Zhongyuan Zhao via USRP-users
Hi,

The CMAKE shows that Python API is disabled,

I was unable to enable it. It shows
Dependency PythonLibs_FOUND =

Is there anything missing?

Zhongyuan Zhao

PhD Candidate,
Department of Computer Science & Engineering,
University of Nebraska-Lincoln
Office Hour: WF 9:30-10:00am, Avery Hall 12,
Suite 117, Schorr Center,
Lincoln, Nebraska 68588-0115


On Tue, Jan 23, 2018 at 12:47 AM, Martin Braun via USRP-users <
usrp-users@lists.ettus.com> wrote:

> Zhao,
>
> you need to first install Boost, then UHD. When you run CMake on UHD,
> does it list the Python API as an enabled component?
>
> -- M
>
> On 01/22/2018 02:43 PM, Zhongyuan Zhao via USRP-users wrote:
> > Could anyone provide a complete guidance of installation of UHD Python
> > API on Ubuntu?
> >
> > I cloned the python api repo, and followed this installation of UHD from
> > source
> >  USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux>
> >
> > Then I installed Boost.Python followed here
> > , with these
> > commands
> >
> > |cd path/to/boost_1_66_0 ./bootstrap.sh --help ./bootstrap.sh
> > --prefix=/usr/local/lib/boost --with-libraries=python |
> >
> > However, when I run 'import uhd' in python, it says 'no module named
> > uhd'. The OS is Ubuntu running on a Mac Mini.
> >
> > 1. The source is python-api branch,
> >
> > 2. Build and installed successfully
> >
> > 3. PYTHONPATH: I use cmake ../ to installed on default directory
> > (/usr/local/), and I put '/usr/local/bin/' to PYTHONPATH in .bashrc file
> >
> >
> > Thank you!
> >
> > Zhao
> >
> >
> >
> > ___
> > USRP-users mailing list
> > USRP-users@lists.ettus.com
> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> >
>
>
> ___
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
>
___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


Re: [USRP-users] Help on UHD Python API installation

2018-01-22 Thread Martin Braun via USRP-users
Zhao,

you need to first install Boost, then UHD. When you run CMake on UHD,
does it list the Python API as an enabled component?

-- M

On 01/22/2018 02:43 PM, Zhongyuan Zhao via USRP-users wrote:
> Could anyone provide a complete guidance of installation of UHD Python
> API on Ubuntu?
> 
> I cloned the python api repo, and followed this installation of UHD from
> source
> 
> 
> Then I installed Boost.Python followed here
> , with these
> commands
> 
> |cd path/to/boost_1_66_0 ./bootstrap.sh --help ./bootstrap.sh
> --prefix=/usr/local/lib/boost --with-libraries=python |
> 
> However, when I run 'import uhd' in python, it says 'no module named
> uhd'. The OS is Ubuntu running on a Mac Mini.
> 
> 1. The source is python-api branch,
> 
> 2. Build and installed successfully
> 
> 3. PYTHONPATH: I use cmake ../ to installed on default directory
> (/usr/local/), and I put '/usr/local/bin/' to PYTHONPATH in .bashrc file
> 
> 
> Thank you!
> 
> Zhao
> 
> 
> 
> ___
> USRP-users mailing list
> USRP-users@lists.ettus.com
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
> 


___
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com