-
Notifications
You must be signed in to change notification settings - Fork 992
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
[question] Defining shared libraries windows #17248
Comments
Hi @chfuerst Thanks for your question.
Indeed, this serves to define "linkable" libraries. In windows it means that it should have a "import" library such as mylib.lib.
Please try that and let us know. |
Thank you @memsharded for your quick feedback. I am working on the topic; I indeed need the CMake interface, and i am in the process of analyzing the generated FindFiles; If the dll files are only needed at runtime, but not at linking time, i will need to create a cmake build module with the necessary install commands. Working on this, give the final feedback by begin / mid of next week. BR, Christoph |
Hello again - During my analysis, i found, that i have a certain include directory, and there are some functions implemented in the header and that the shared libraries were not actually used for linking but are dynamically loaded (with dlopen / LoadLibrary) at runtime. My solution to problem was that i implemented a cmake_build_module that installs the so-files that are needed at runtime but not for linking. The cmake_build_module is on global scope available, self.cpp_info.set_properties("cmake_build_modules", ["custom_script1.cmake", "custom_script2.cmake"]) but are not available on component level. Is this intended? BR, PS.: Ticket can be closed. |
Just in case, there are some tools that can help to gather or locate things for runtime:
Yes, the I am closing the ticket as you suggested, but don't hesitate to re-open or create new tickets for any further question or issue. Thanks very much for your feedback! |
What is your question?
Hi! I have a question regarding definition of a conan recipe for a shared library.
We've purchased a third party library, where we only get delivered a *.dll File in windows.
Is my understanding correct, that when defining package info
self.cpp_info.components["compname"].libs = ["name"]
Conanv2 assumes that in the "lib" directory there is a file named "name.lib" and in the "bin" directory there is
"name.dll" in windows? If so, what is the appropriate way of defining "only" the shared library "name.dll" ? Might also
related to #16926
BR,
Christoph
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: