-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[question] Invalid: 'settings.compiler.runtime' value not defined #608
Comments
Hi @0xlitf Thanks very much for your report. |
@memsharded Thanks for the kind help |
Hi @0xlitf I am having a look trying to understand where is the gap. if(CMAKE_MSVC_RUNTIME_LIBRARY)
if(CMAKE_MSVC_RUNTIME_LIBRARY MATCHES ".*DLL$")
set(_COMPILER_RUNTIME "dynamic")
else()
set(_COMPILER_RUNTIME "static")
endif() So in theory it should be able to set the runtime too, I don't know why it is not working in your case. Lets try the following:
|
Hi @memsharded, Things got mess up, because when I remove all the caches and settings of QtCreator(by deleting Then I test QtCreator 12.0.0/12.0.1 + conan 2.0.16~conan 2.0.14, all of the cases failed with error I mentioned above.
|
As of now, this problem still exists on me, but it can be bypassed:
Then it works. |
Uhm, now I am little confused. I see in the first trace that there was a message with:
But for some reason later the CMAKE_MSVC_RUNTIME_LIBRARY is empty. Maybe your |
@memsharded Sorry about that, I delete that code and forget to push. This is the repo UsingSpdlog It can be build at QtCreator 11.0.3 and conan 2.0.9 now. CMakeLists.txt is simple:
|
It might be some interaction with QtCreator maybe, we need to investigate this, but it might take a bit more. You might be able to do some quick checks without QtCreator, just comment the Qt lines and call |
@memsharded Ok, thank you for taking the time to help me do this. |
Hi @0xlitf Sorry, I am a bit confused, is the issue solved now? Why did you close the ticket? I commented that this needs more investigation, but if it is not working, it should remain in "open" state in Github. Is the code that sets the MSVC_RUNTIME now pushed to the repo? If it is maybe we can try to reproduce. |
@memsharded I push a The code below is for test, it is useless:
This error can be easily reproduced by UsingSpdlog under Qt6.6.1, QtCreator 12.0.1 and conan 2.0.9(or 2.0.16 with the same error). |
@memsharded Hi, I do some logs, this is the difference between QtCreator 11.0.3(left) with 12.0.1(right) (conan version 2.0.9): I can not trace what happend in this line
but
|
I am checking your project. Your Then your If we want to do |
Thanks for help, Should I close this issue now? Or Close as not planned? |
As you wish. So feel free to close the issue or let me know if you still want to try to set the project up to work with Conan dependencies. |
Qt Creator uses the The fix was to forward From what I have seen conan is expecting:
when compiled with MSVC. This only works if the user would explicitly set I think these packages should work on MSVC without having the user to set explicitly |
Thanks @cristianadam for your feedback. Indeed, Conan needs the It is true that the |
Hi @cristianadam, thanks. |
Trying to improve the default in #609 |
We have added default It would be necessary:
I am closing this ticket as solved, but please do not hesitate to create a new ticket for any further issue or question. Many thanks! |
Thank you so much @memsharded @cristianadam , it is you who make Conan more excellent! |
What is your question?
Hello everyone,
I am trying to build a Qt application using Qt 6.6.1 and msvc on Windows.
I note the lack of 'compiler.runtime=dynamic' in Profile host, how can I fix it?
Version:
VS 2022
QtCreator 12.0.0
conan 2.0.16
cmake 3.27.7
conanfile.txt:
The first error is:
looking for help to resolve this issue .
Thanks in advance.
full output at QtCreator General Messages when run cmake:
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: