Closed matte86 closed 1 year ago
Coukd you please provide the full console log, so that we can find what the error is?
This is the output of the conan install step redirected to file:
Redirecting some things to file decluttered the console output and I can see now some errors like:
CMake Error in qtbase/src/gui/CMakeLists.txt:
Imported target "WrapFreetype::WrapFreetype" includes non-existent path
"C:/ProgramData/Anaconda3/Library/include/freetype2"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* The installation package was faulty and references files it does not
provide.
[...]
CMake Error at C:/.conan/80e304/1/Findharfbuzz.cmake:163 (set_property):
The link interface of target "harfbuzz::harfbuzz" contains:
Freetype::Freetype
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
Call Stack (most recent call first):
qtbase/cmake/FindWrapSystemHarfbuzz.cmake:9 (find_package)
qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
qtbase/src/gui/configure.cmake:45 (qt_find_package)
qtbase/cmake/QtFeature.cmake:573 (include)
qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)
I don't understand what's going on with freetype. I can see that conan is dragging it in as a dependency but cmake seems to be looking for it under some python interpreter folders.
please send the full console log, without modifications. I am missing some information to help you.
This is the entire console log of the conan install step (the rest of the log is in my previous comment):
ok, so not really any new information here. The easiest fix is to remove Anaconda3 from the environment (at least CMAKE_*_PATH and PATH)
I am a bit lost on how to do that... "C:/ProgramData/Anaconda3" is where my python interpreter is so I cannot remove it from the PATH. As for the CMAKE_* variables, this is the cmake context set up by the Qt recipe so I don't know how I can inject / remove things from variables configured there.
I'm currently trying the following change https://github.com/Ultimaker/conan-center-index/pull/13/commits/d23e2992b759d6b07fec4e0fedda0dc28a260f2c to prevent cmake from picking up dependencies from the environment. Could you please try this ?
Unfortunately I still have the same error: freetype is being searched for in the Anaconda3 path.
I could reproduce the problem on my machine by installing anaconda. It looks like the fix is https://github.com/ericLemanissier/conan-center-index/commit/8d455a7414d517713fe8961a3a405cd827b737cd. Could you please try it and tell me if it works for you too ?
Thanks for the suggestion! I confirm the fix works on my machine as well
@matte86 @EricAtORS could you please try with the recipe in https://github.com/conan-io/conan-center-index/pull/14592 ?
I'll give it a go tomorrow.
Thanks @ericLemanissier for helping out! I tried consuming qt/6.3.1 (and also qt/6.4.1) from conancenter but somehow I still have problems. In my application I had to enable some more additional components, although I am not sure that's the problem.
I might not have time to play more with this in the coming weeks but for the moment I got something working by integrating the changes from ericLemanissier@8d455a7 on top of the qt/6.4.0 recipe in qt/6.3.2 #12906.
This is the build log for qt/6.3.1:
Hey guys,
I have a small QML test project that I am able to build and run succesfully on MacOS.
When I am building however the same project on Windows, qt/6.3.1 fails to build and to be honest I am having a hard time understanding what's the reason (CMakeError and CMakeOutput do not really tell me much).
The profile I am using is as follows:
and I am configuring qt like this:
Did anyone successfully build qt/6.3.1 on Windows 11 with Visual Studio 2019?