-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[bug] linker can't find downloaded libraries #8417
Comments
Can you post the generated Also, can you post the section from your |
conanbuildinfo.cmakeCMakeLists.txt |
Everything looks good in these files. Line 43 of
Line 49 is here:
So, in theory, there should be a Then, there's this line from
In theory, Cmake should be generating a It would be helpful to see the actual linker command or the flags. You can tell CMake and make to be more verbose using this CMake variable (and then re-running your cmake command): Alternatively, you can just look into the We need to figure out where the ball is being dropped exactly. |
Well, I checked a folder, and all these libraries in there. Here is more verbose output: |
Ok, so now we have it narrowed to this line:
|
Seems this is duplicate issue: It seems you need to add this line to your profile:
Quote from @memsharded regarding the background:
|
It's working now. Thank you so much! |
Hello, I just tried to build test example from getting started page in conan, but for some reason linker does not see downloaded libraries, even that according to conan they were downloaded
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Just exact same steps from this example https://docs.conan.io/en/latest/getting_started.html
Logs (Executed commands with output) (Include/Attach if Applicable)
user@user:~/Documents/cpp/conan-test/build$ cmake --build .
gmake[1]: Entering directory '/home/user/Documents/cpp/conan-test/build'
gmake[2]: Entering directory '/home/user/Documents/cpp/conan-test/build'
Scanning dependencies of target md5
gmake[2]: Leaving directory '/home/user/Documents/cpp/conan-test/build'
gmake[2]: Entering directory '/home/user/Documents/cpp/conan-test/build'
[ 50%] Building CXX object CMakeFiles/md5.dir/md5.cpp.o
[100%] Linking CXX executable bin/md5
/usr/bin/ld: CMakeFiles/md5.dir/md5.cpp.o: in function
main': md5.cpp:(.text.startup+0xb5): undefined reference to
Poco::DigestEngine::digestToHex[abi:cxx11](std::vector<unsigned char, std::allocator > const&)'collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/md5.dir/build.make:84: bin/md5] Error 1
gmake[2]: Leaving directory '/home/user111/Documents/cpp/conan-test/build'
gmake[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/md5.dir/all] Error 2
gmake[1]: Leaving directory '/home/user111/Documents/cpp/conan-test/build'
gmake: *** [Makefile:84: all] Error 2
The text was updated successfully, but these errors were encountered: