You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full log is below but the issue is pretty straight-forward (after investigation) and happens when building some modules of Qt (here qtdeclarative & qtshadertools):
C:\Users\ContainerAdministrator\.conan2\p\b\qte71a581b20a17\b\build\Release\qtbase\include\QtPacketProtocol\6.6.1\QtPacketProtocol\private/qversionedpacket_p.h(1):
fatal error C1083: Cannot open include file: '../../../../../../../../../../../qt07c2f6ced99ef/s/src/qtdeclarative/src/plugins/qmltooling/packetprotocol/qversionedpacket_p.h':
No such file or directory
The situation is that a file in the build directory has a single line and includes the corresponding file in the source directory. The problem is that when the two paths are concatenated we obtain the following:
which exists in this case but is 266 characters long. The path limit for an include file seems to be 255-ish characters with MSVC (Linux build is fine btw). When moving the conan cache to the C:\.c\ location (as opposed to C:\Users\ContainerAdministrator) setting the CONAN_HOME environment variable to the appropriate value, I gain 26 characters which is still not enough to make the Windows build pass (error later one for another include).
I am aware that this might be an issue on Microsoft's side (see this issue) so maybe fixing the recipe is not the solution, at least I report the problem here so that others can find the problem sooner than I did :)
NB: I am still working on a work-around as reducing the conan cache path length is not enough.
Customize the recipe so that local build is possible (patch below) which makes the build directory closer to the source directory (not in the cache). This is enough (with a short-enough path for the source directory) to make the build pass.
By default it is not possible to do a local build with this recipe as the source() and generate () methods use attributes only defined when using conan create and not conan build:
About the removals above:
I do not understand the use of the toolchain variables removed as they seem defined by default to relative paths
The source method should test the platform directly without looking at conan settings as the long path issue is not about the profile but the actual OS we are running
NB: I can create a separate issue to enable local dev workflow with this recipe
I think I get the same issue with qt6.5.3: C:\Users\myuser\.conan2\p\b\qta1b31bca46b07\b\build\Debug\qtbase\include\QtLabsFolderListModel\6.5.3\QtLabsFolderListModel\private/qquickfolderlistmodel_p.h(1): fatal error C1083: Cannot open include file: '../../../../../../../../../../../qt8f084c48e3426/s/src/qtdeclarative/src/labs/folderlistmodel/qquickfolderlistmodel_p.h': No such file or directory
I confirm that using CONAN_HOME=C:\.c is not enough and fails later.
This is preventing us from using qtdeclarative module with conan2. @ericLemanissier do you have any help/workaround to provide?
Description
The full log is below but the issue is pretty straight-forward (after investigation) and happens when building some modules of Qt (here
qtdeclarative
&qtshadertools
):The situation is that a file in the build directory has a single line and includes the corresponding file in the source directory. The problem is that when the two paths are concatenated we obtain the following:
which exists in this case but is 266 characters long. The path limit for an include file seems to be 255-ish characters with MSVC (Linux build is fine btw). When moving the conan cache to the
C:\.c\
location (as opposed toC:\Users\ContainerAdministrator
) setting theCONAN_HOME
environment variable to the appropriate value, I gain 26 characters which is still not enough to make the Windows build pass (error later one for another include).I am aware that this might be an issue on Microsoft's side (see this issue) so maybe fixing the recipe is not the solution, at least I report the problem here so that others can find the problem sooner than I did :)
NB: I am still working on a work-around as reducing the conan cache path length is not enough.
Package and Environment Details
Conan profile
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=192
os=Windows
Steps to reproduce
conan create . --version=6.6.1 --profile=$CONAN_PROFILE --build=missing -o qtsvg=True -o qthttpserver=True -o qtdeclarative=True -o qtwebchannel=True -o qtactiveqt=True -o qtshadertools=True -o qt5compat=True -o qtwebsockets=True -o qttools=True
Logs
Build from local recipe:
Click to expand log
The text was updated successfully, but these errors were encountered: