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

LIBIIO_INCLUDEDIR error installing from source. #51

Closed
GlenLangston opened this issue Nov 26, 2019 · 9 comments
Closed

LIBIIO_INCLUDEDIR error installing from source. #51

GlenLangston opened this issue Nov 26, 2019 · 9 comments

Comments

@GlenLangston
Copy link

Trying to install the latest adi code for pluto SDR on a raspberry pi 4,
but am having some configuration problems.

First tried packages, but the linux versions seem to have ADM devices built into the assumptions.
So tried from source, but get an error at the CMAKE step,
pi@raspberrypi:~/libad9361-iio-0.2/build $ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version "2.20.1")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen dot
-- Using default dependencies for packaging
-- Package dependencies: libc6-dev (>= 2.19)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBIIO_INCLUDEDIR
used as include directory in directory /home/pi/libad9361-iio-0.2
used as include directory in directory /home/pi/libad9361-iio-0.2
used as include directory in directory /home/pi/libad9361-iio-0.2

My configuration is as follows:
pi@raspberrypi:~/libad9361-iio-0.2/build $ uname -a
Linux raspberrypi 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l GNU/Linux

Googling has not yielded me any hints yet.

Suggestions?

Thanks
Glen

@tfcollins
Copy link
Contributor

How did you install libiio?

@GlenLangston
Copy link
Author

GlenLangston commented Nov 26, 2019 via email

@GlenLangston
Copy link
Author

GlenLangston commented Nov 26, 2019 via email

@tfcollins
Copy link
Contributor

So let me address issues related to libad9361-iio here, if you have questions about other software components please ask them in our support forum for Pluto here: https://ez.analog.com/adieducation/university-program , GitHub is more for bugs, but I am happy to help on EngineerZone.

Part of the problem seems to be some versioning of python. Do you happen to know if
the ADI code is compatible with python2.7 or only python3?

I found that an apt-get install of libiio-utils is not compatible with the latest version of

Mixing and matching apt and source(or a different package source) is generally not a good idea. When you install libiio from github it will include the libiio-utils. I generally don't use apt for libiio since the packages are usually ancient.

@GlenLangston
Copy link
Author

GlenLangston commented Nov 27, 2019 via email

@tfcollins
Copy link
Contributor

Yes, or just use the packages from one source.

-Travis

@GlenLangston
Copy link
Author

GlenLangston commented Dec 7, 2019 via email

@tfcollins
Copy link
Contributor

Glen,

Please direct those questions here: https://ez.analog.com/adieducation/university-program
libad9361 is really unrelated.

-Travis

@tfcollins
Copy link
Contributor

I think the libad9361 specific aspects are answered here. Closing for now. Reopen if this is still an issue.

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

2 participants