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

Ubuntu 18.04 LTS fails to build correctly: undefined symbol: udev_device_get_devnode #7

Open
martinRenou opened this issue Jul 10, 2019 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@martinRenou
Copy link

Importing neoradio2 fails with:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/martin/miniconda3/envs/fun/lib/python3.7/site-packages/neoradio2.cpython-37m-x86_64-linux-gnu.so: undefined symbol: udev_device_get_devnode

Ubuntu version:

NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
@martinRenou
Copy link
Author

It's apparently a linking issue:

patchelf --add-needed /lib/x86_64-linux-gnu/libudev.so.1 neoradio2.cpython-37m-x86_64-linux-gnu.so

Fixed it.

Maybe installing neoradio2 in a conda environment was the root cause of the issue?

@scollis
Copy link

scollis commented Jul 11, 2019

I have this issue.. libudev-dev installed using apt-get libneoradio2 installed using pip+git

on a raspberry pi

drebbe-intrepid added a commit that referenced this issue Jul 11, 2019
-This should fix Issue #7.
-Added Check to make sure libudev is found.
-Added check to only link against udev if under linux.
-Fixed a build issue with the example not building.
-Added option to make sure compiler uses c++14 standard minimum.
-Added hid.c include for mac as prelimiary fix for issue #5.

Signed-off-by: David Rebbe <[email protected]>
@drebbe-intrepid
Copy link
Collaborator

@martinRenou
@scollis

Please try building from latest.

pip install git+https://github.com/intrepidcs/libneoradio2

@scollis Please note I haven't had time to officially test on a raspberry pi yet. I plan on getting to it after the conference is over and I'm back at home.

@drebbe-intrepid drebbe-intrepid changed the title Import failing Ubuntu 18.04 LTS fails to build correctly: undefined symbol: udev_device_get_devnode Jul 11, 2019
@drebbe-intrepid drebbe-intrepid self-assigned this Jul 11, 2019
@drebbe-intrepid drebbe-intrepid added the bug Something isn't working label Jul 11, 2019
@scollis
Copy link

scollis commented Jul 11, 2019

Thanks @drebbe-intrepid ! Let me know if you want a new issue opened narrowed to RPi. FYI I reinstalled the github code and still get the same error.

@drebbe-intrepid
Copy link
Collaborator

Thanks @drebbe-intrepid ! Let me know if you want a new issue opened narrowed to RPi. FYI I reinstalled the github code and still get the same error.

Yes please do, I don't have a raspberry pi with me on this trip so it will have to wait until I get home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants