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
# from dir with conanfile.py and cmakelists.txt in it...
mkdir build &&cd build
conan install .. --deployer=full_deploy -of .. -s build_type=Release --build=missing
...
-- Conan: Target declared 'xorg::xorg'
-- Configuring done
CMake Error in CMakeLists.txt:
Imported target "xorg::xorg" includes non-existent path
"/home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/build/Release/generators/../../../full_deploy/host/xorg/system/../../../../../../../usr/include/uuid"in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
Ultimately, the includedirs for the generated cmake support files end up with an erroneous relative path, similar to the linked vulkan issue at the beginning of my post:
I confirm (with some pprint(vars()) calls of the uuid dependency in the xorg and consuming recipes) that the modification happens during the deploy->generation process of conan install:
======== Finalizing install (deploy, generators) ========
conanfile.py (test_conan/None): Conan built-in full deployer to /home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp
conanfile.py (test_conan/None): Writing generators to /home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/build/Release/generators
conanfile.py (test_conan/None): Generator 'VirtualRunEnv' calling 'generate()'
conanfile.py (test_conan/None): Generator 'CMakeToolchain' calling 'generate()'
conanfile.py (test_conan/None): CMakeToolchain generated: conan_toolchain.cmake
conanfile.py (test_conan/None): Preset 'conan-release' added to CMakePresets.json. Invoke it manually using 'cmake --preset conan-release' if using CMake>=3.23
conanfile.py (test_conan/None): If your CMake version is not compatible with CMakePresets (<3.23) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/build/Release/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
conanfile.py (test_conan/None): CMakeToolchain generated: CMakePresets.json
conanfile.py (test_conan/None): CMakeToolchain generated: ../../../CMakeUserPresets.json
conanfile.py (test_conan/None): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (test_conan/None): Generator 'VirtualBuildEnv' calling 'generate()'
conanfile.py (test_conan/None): Calling generate()
conanfile.py (test_conan/None): Generators folder: /home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/build/Release/generators
{'_bindirs': ['/home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/full_deploy/host/xorg/system/bin'],
'_builddirs': [],
'_cflags': [],
'_cxxflags': [],
'_defines': [],
'_exelinkflags': [],
'_frameworkdirs': [],
'_frameworks': [],
'_includedirs': ['/home/spiderkeys/z/mr/git/mr-conan-index/temp/installtemp/full_deploy/host/xorg/system/../../../../../../../usr/include/uuid'],
(see last lines above)
It seems like something weird is happening with the uuid dependency of xorg in the full_deploy deployer, maybe relating to the fact that it is a system dependency, not sure. There was no modification to the xorg recipe I could make which fixed the issue besides removing uuid from the package_info() method (which broke xorg's tests, but allowed my consuming application to config cmake properly)
The text was updated successfully, but these errors were encountered:
Environment details
I ran into a similar problem as in #14022 when trying to use
full_deploy
with a package that depended onxorg
.I was able to reproduce the issue by creating a near-exact copy of the
xorg
test_package and building it like it was a normal consuming application:My conanfile.py:
My cmake file:
My source file:
conan install command:
cmake invocation:
Error output from cmake:
Ultimately, the includedirs for the generated cmake support files end up with an erroneous relative path, similar to the linked vulkan issue at the beginning of my post:
I confirm (with some
pprint(vars())
calls of theuuid
dependency in the xorg and consuming recipes) that the modification happens during the deploy->generation process of conan install:In the generate step of the consumer:
(see last lines above)
It seems like something weird is happening with the
uuid
dependency ofxorg
in thefull_deploy
deployer, maybe relating to the fact that it is a system dependency, not sure. There was no modification to the xorg recipe I could make which fixed the issue besides removinguuid
from thepackage_info()
method (which brokexorg
's tests, but allowed my consuming application to config cmake properly)The text was updated successfully, but these errors were encountered: