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

Work around libudev naming issues #209

Closed
koraa opened this Issue Aug 23, 2015 · 6 comments

Comments

Projects
None yet
4 participants
@koraa
Copy link
Contributor

koraa commented Aug 23, 2015

We ran into this problem: http://magpcss.org/ceforum/viewtopic.php?f=6

Our libcef.so is built with libudev.so.0. However, libudev was renamed to libudev.so.1 on some systems.

Work around this by explicitly linking against libudev:

  • Write a libudev_config in the libraries CMake file
  • This just searches for libudev find_libs(UDEV_LIBS udev) and links against them
  • Call libudev_config from the cef_config for the passed target and for the ui_module, so we get rid of the linker error

It might still show an error that libudev.so.0 was not found; if so, find out why.

@koraa

This comment has been minimized.

Copy link
Contributor

koraa commented Aug 24, 2015

@Fohlen Another question: Did that occur during compilation or at runtime?

@Fohlen

This comment has been minimized.

Copy link
Member

Fohlen commented Aug 24, 2015

Am 24.08.2015 um 13:15 schrieb Karolin Varner:

@Fohlen https://github.com/Fohlen Another question: Did that occur
during compilation or at runtime?


Reply to this email directly or view it on GitHub
#209 (comment).

During compilation

@koraa

This comment has been minimized.

Copy link
Contributor

koraa commented Aug 24, 2015

ok. good.

@Boom-Rang

This comment has been minimized.

Copy link

Boom-Rang commented Aug 27, 2015

Not a real long term solution but this worked for me:

sudo ln -sf /lib/$(arch)-linux-gnu/libudev.so.1 /lib/$(arch)-linux-gnu/libudev.so.0

Installing the actual package (for ubuntu http://packages.ubuntu.com/precise/libudev0) with:

dpkg -i libudev0_175-0ubuntu9_*.deb

is probably a cleaner solution

@Fohlen

This comment has been minimized.

Copy link
Member

Fohlen commented Aug 27, 2015

I can confirm this workaround.
The best solution would be writting a config in CMake for libudev and libcef

@Fohlen

This comment has been minimized.

Copy link
Member

Fohlen commented Sep 9, 2015

Will, should, shall be closed with #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment