question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Is there a way to use full lib path instead of `-lname`?

See original GitHub issue

When I add

self.cpp_info.libs = ["name"]

then on macOS it is transformed to the option -lname.

All works fine except when I use a dylib with non standard name scheme (“name.plugin” instead of “libname.dylib”). Then I get the error “can not find …”.

I know that there is -l:name option but Apple binutils does not understand it.

CMake just generates the full lib path instead of -lname. So it can utilize it.

Is there a way to generate the full lib path in conanbuildinfo.xxx file?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Feb 29, 2020

I am a bit confused here. Conan does not generate -lxxx in the cmake generators. I guess this is talking about the other generators.

0reactions
jgsogocommented, Mar 9, 2020

Oh, I’ve just seen the PR https://github.com/conan-io/conan/pull/6600

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify preference of library path? - c++ - Stack Overflow
Use the rpath option via gcc to linker - runtime library search path, will be used instead of looking in standard dir (gcc...
Read more >
How to manually install a cpp library - Unix Stack Exchange
I am wondering where I have to put them in order for eclipse to find them with -lname . It seems that I...
Read more >
How are bash variables containing a file path with non-ascii ...
How are bash variables containing a file path with non-ascii characters and spaces used as input for commands, cat, exiftool, etc.? Ask Question....
Read more >
Installing GCC: Configuration - GNU Project
This is how we generally build GCC; building where srcdir == objdir should ... list may instead contain @name , to use the...
Read more >
An Introduction to GCC - Shared libraries and static libraries
Whenever a static library 'lib NAME .a' would be used for linking with the option -l NAME the compiler first checks for an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found