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

fix a build error, /usr/bin/ld: cannot find -ledlib #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moold
Copy link

@moold moold commented May 24, 2022

I can't build edlib-rs successfully due to this error:

note: /usr/bin/ld: cannot find -ledlib
  collect2: error: ld returned 1 exit status

After checking the edlib-c build directory:

bindings.rs
build
include
lib64
wrapper.h

there is no lib directory (I don't know why), but there is a directory lib64, so I added this line println!("{}64",libdir); to build.rs and it fixed this error.

fix buding error, `/usr/bin/ld: cannot find -ledlib`
@moold moold changed the title fix buding error, /usr/bin/ld: cannot find -ledlib fix a build error, /usr/bin/ld: cannot find -ledlib May 24, 2022
Copy link
Owner

@jean-pierreBoth jean-pierreBoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose you have a configuration of cmake that make it create lib instead of lib64

@moold
Copy link
Author

moold commented May 30, 2022

In fact, I didn't change any code from edlib-rs.

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

Successfully merging this pull request may close these issues.

2 participants