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

Building on Raspberry Pi 4B #380

Open
ESharpAB opened this issue Nov 12, 2024 · 1 comment
Open

Building on Raspberry Pi 4B #380

ESharpAB opened this issue Nov 12, 2024 · 1 comment

Comments

@ESharpAB
Copy link

Hi,
I have a hard time building libm2k on a Raspberry PI. The error I get is:

~/libm2k/build $ cmake ../
---- Building Python bindings
-- bin= lib= inc=
-- Python_EXECUTABLE /usr/bin/python3.9
---- Building C# bindings
-- Configuring done
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:
/home/accordion/libm2k/src/IIO_INCLUDE_DIRS
used as include directory in directory /home/accordion/libm2k/src
IIO_INCLUDE_DIRS
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp
used as include directory in directory /home/accordion/libm2k/bindings/csharp

CMake Error in src/CMakeLists.txt:
Target "libm2k" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/home/accordion/libm2k/src/IIO_INCLUDE_DIRS-NOTFOUND"

which is prefixed in the source directory.

I have successfully built and installed libiio and I can't figure out what I should do now to get it to build?

I have searched for an already made package for Rpi4 but it doesn't seem to exist.
Did anyone get libm2k to work on a Raspberry?
Thanks,
Daniel

@Adrian-Stanea
Copy link
Contributor

Hi Daniel,

Based on the error message you've provided, here are some steps you can take to resolve the issue:

  1. Ensure you are building a compatible version of libiio:
  • The current version of libm2k is compatible with libiio v0.26. Make sure your libiio build was done from that specific tag.
  1. Ensure libiio is installed in a system-visible path:
  • When you run make install for the libiio build, ensure it's installing to a directory that's included in your system's library and include paths.
    After installation, update the library cache: sudo ldconfig.
  1. Building C# bindings:
  • Your CMake output indicates that you are attempting to build the C# bindings.
  • If this is the case, ensure that libiio is also built with C# support.
  • Otherwise, make sure to clean the libm2k build directory and then run cmake again to configure the build.

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