Open TrevorCash opened 1 month ago
Hi @TrevorCash thanks for the report - I've tried to reproduce this locally and I can't reproduce. I suspect it might have something to do with the opengl recipe being a system one, so we'd need to reduce the example to find the root issue
Could you clone this repository and in recipes/opengl/all
, run conan create . --version=system -b=missing -c:a=""
? Does this reproduce your error?
Thanks!
Hi @AbrilRBS ,
Opening a new terminal on ubuntu I get similar error:
(base) builds@Clotho:~/tmp/conan-center-index/recipes/opengl/all$ export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"
(base) builds@Clotho:~/tmp/conan-center-index/recipes/opengl/all$
(base) builds@Clotho:~/tmp/conan-center-index/recipes/opengl/all$
(base) builds@Clotho:~/tmp/conan-center-index/recipes/opengl/all$ conan create . --version=system -b=missing -c:a=""
======== Exporting recipe to the cache ========
opengl/system: Exporting package recipe: /home/builds/tmp/conan-center-index/recipes/opengl/all/conanfile.py
opengl/system: Copied 1 '.py' file: conanfile.py
opengl/system: Exported to cache folder: /home/builds/.conan2/p/openge4e951d7f121d/e
opengl/system: Exported: opengl/system#4df6fecde4084386beded3ed0e56e4ea (2024-10-11 14:40:30 UTC)
======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu14
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
======== Computing dependency graph ========
Graph root
cli
Requirements
opengl/system#4df6fecde4084386beded3ed0e56e4ea - Cache
======== Computing necessary packages ========
Requirements
opengl/system#4df6fecde4084386beded3ed0e56e4ea:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
opengl/system: System requirements: already installed
======== Installing packages ========
opengl/system: Already installed! (1 of 1)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.filenames' used in: opengl/system
======== Launching test_package ========
======== Computing dependency graph ========
Graph root
opengl/system (test package): /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/conanfile.py
Requirements
opengl/system#4df6fecde4084386beded3ed0e56e4ea - Cache
======== Computing necessary packages ========
Requirements
opengl/system#4df6fecde4084386beded3ed0e56e4ea:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
opengl/system: System requirements: already installed
======== Installing packages ========
opengl/system: Already installed! (1 of 1)
WARN: deprecated: Usage of deprecated Conan 1.X features that will be removed in Conan 2.X:
WARN: deprecated: 'cpp_info.filenames' used in: opengl/system
======== Testing the package ========
Removing previously existing 'test_package' build folder: /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/build/gcc-9-x86_64-gnu14-release
opengl/system (test package): Test package build: build/gcc-9-x86_64-gnu14-release
opengl/system (test package): Test package build folder: /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/build/gcc-9-x86_64-gnu14-release
opengl/system (test package): Writing generators to /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/build/gcc-9-x86_64-gnu14-release/generators
opengl/system (test package): Generator 'CMakeDeps' calling 'generate()'
opengl/system (test package): CMakeDeps necessary find_package() and targets for your CMakeLists.txt
find_package(opengl_system)
target_link_libraries(... opengl::opengl)
opengl/system (test package): Generator 'CMakeToolchain' calling 'generate()'
opengl/system (test package): CMakeToolchain generated: conan_toolchain.cmake
opengl/system (test package): CMakeToolchain generated: /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/build/gcc-9-x86_64-gnu14-release/generators/CMakePresets.json
opengl/system (test package): CMakeToolchain generated: /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/CMakeUserPresets.json
opengl/system (test package): Generator 'VirtualRunEnv' calling 'generate()'
opengl/system (test package): Generating aggregated env files
opengl/system (test package): Generated aggregated env files: ['conanrun.sh', 'conanbuild.sh']
======== Testing the package: Building ========
opengl/system (test package): Calling build()
opengl/system (test package): Running CMake.configure()
opengl/system (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/builds/tmp/conan-center-index/recipes/opengl/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/builds/tmp/conan-center-index/recipes/opengl/all/test_package"
-- Using Conan toolchain: /home/builds/tmp/conan-center-index/recipes/opengl/all/test_package/build/gcc-9-x86_64-gnu14-release/generators/conan_toolchain.cmake
-- Conan toolchain: Defining architecture flag: -m64
-- Conan toolchain: C++ Standard 14 with extensions ON
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: Target declared 'opengl::opengl'
-- Configuring done (0.7s)
CMake Error in CMakeLists.txt:
Imported target "opengl::opengl" includes non-existent path
"/usr/lib/include"
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.
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
ERROR: opengl/system (test package): Error in build() method, line 20
cmake.configure()
ConanException: Error 1 while executing
Description
I am developing a recipe that uses glfw/3.4 as a dependancy. The project uses cmake and a call to find_package(GLFW3 CONFIG REQUIRED) to grab the conan cmake package. This works and the cmake target "glfw" is created. however cmake throws an error:
when debuging the CMakeScript and using
it reads glfw_INTERFACE_INCLUDE_DIRECTORIES is $<$:/home/builds/.conan2/p/b/glfwb72f953c9741e/p/include> which seems correct.
I have read that possibly it is a dependancy of glfw that could be the problem?
Any Tips/Help appreciated.
-Trevor
Package and Environment Details
Conan profile
Host profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu14 compiler.libcxx=libstdc++11 compiler.version=9 os=Linux
Build profile: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu14 compiler.libcxx=libstdc++11 compiler.version=9 os=Linux
Steps to reproduce
conan install of my project that has dependancy on glfw
Logs
Click to expand log
``` (base) builds@Clotho:~$ conan install --requires=imatest-magnum/2020.06 --build=missing ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu14 compiler.libcxx=libstdc++11 compiler.version=9 os=Linux Profile build: [settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu14 compiler.libcxx=libstdc++11 compiler.version=9 os=Linux ======== Computing dependency graph ======== imatest-magnum/2020.06: Not found in local cache, looking in remotes... imatest-magnum/2020.06: Checking remote: conancenter imatest-magnum/2020.06: Checking remote: conan-local imatest-magnum/2020.06: Downloaded recipe revision a5bc266054d2c4faee5a0760f250054f Graph root cli Requirements egl/system#068ac3037d8cf01f768d0e001e6dcd76 - Cache glfw/3.4#556ce0bc9e0abc75fe4378b86e566fc4 - Cache imatest-corrade/2020.06#9c4f3dfa7f981f271e54befbe0bd5312 - Cache imatest-magnum/2020.06#a5bc266054d2c4faee5a0760f250054f - Downloaded (conan-local) libalsa/1.2.7.2#19959441d37e346537c7d7c14de20456 - Cache openal/1.22.2#5f082be6e0d8648f2ca87e88d803b7ea - Cache opengl/system#4df6fecde4084386beded3ed0e56e4ea - Cache xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad - Cache Build requirements autoconf/2.71#00a1e46d8ba5baaf7f10d64c1a6a0342 - Cache automake/1.16.5#058bda3e21c36c9aa8425daf3c1faf50 - Cache gnu-config/cci.20210814#dc430d754f465e8c74463019672fb97b - Cache imatest-corrade/2020.06#9c4f3dfa7f981f271e54befbe0bd5312 - Cache libtool/2.4.7#08316dad5c72c541ed21e039e4cf217b - Cache m4/1.4.19#b38ced39a01e31fef5435bc634461fd2 - Cache Deprecated openal/1.22.2: openal-soft ======== Computing necessary packages ======== imatest-magnum/2020.06: Main binary package 'f5319fb9b5d2cc60624b56e4e3d4e3f16d3b5b43' missing imatest-magnum/2020.06: Checking 7 compatible configurations imatest-magnum/2020.06: Compatible configurations not found in cache, checking servers imatest-magnum/2020.06: '83b68bf173e79b1a31e959dc651b920c805dda4e': compiler.cppstd=11 imatest-magnum/2020.06: '1d2d79ca34b72b2c367bb304f2cd7c44f5ac34eb': compiler.cppstd=gnu11 imatest-magnum/2020.06: '8bc2cd5080f40bb43597a1292c5346b854ef36d0': compiler.cppstd=14 imatest-magnum/2020.06: '645d612f0baadf9176ad2e727933e1d0573f87e7': compiler.cppstd=17 imatest-magnum/2020.06: 'daee30370e1c020e84bb0ba42cfe9572be9b32f5': compiler.cppstd=gnu17 imatest-magnum/2020.06: '8ce2e7e68d9a9b19affebe427d3fee962a038182': compiler.cppstd=20 imatest-magnum/2020.06: '6bb10f59a341a06d03eadceb950aa8d48e02facf': compiler.cppstd=gnu20 Requirements egl/system#068ac3037d8cf01f768d0e001e6dcd76:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache glfw/3.4#556ce0bc9e0abc75fe4378b86e566fc4:b1c88f23b0d8d00b82253d2dffe88ed110044c65#e9c5842cdef40846ae189e1ece31fb83 - Cache imatest-corrade/2020.06#9c4f3dfa7f981f271e54befbe0bd5312:c757f7fadf7b83dbc905f9d0d51741281ae901d0#fa6fdb5b50c7df74af044d5d16a8b893 - Cache imatest-magnum/2020.06#a5bc266054d2c4faee5a0760f250054f:f5319fb9b5d2cc60624b56e4e3d4e3f16d3b5b43 - Build openal/1.22.2#5f082be6e0d8648f2ca87e88d803b7ea:dd0db193c5fcbf89d07001729cc7593b9cba295d#2957c52f494916ded393a6be99ed15ed - Cache opengl/system#4df6fecde4084386beded3ed0e56e4ea:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache xorg/system#f626cbdd0ba57d9c53bce2d8b9362fad:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache Build requirements imatest-corrade/2020.06#9c4f3dfa7f981f271e54befbe0bd5312:3c33dfc03e446e0b94bbaf08f1eabfbd3ef196ae#572b0601465c134e7786b43edac95390 - Cache Skipped binaries libalsa/1.2.7.2, autoconf/2.71, automake/1.16.5, gnu-config/cci.20210814, libtool/2.4.7, m4/1.4.19 egl/system: System requirements: already installed opengl/system: System requirements: already installed xorg/system: System requirements: already installed xorg/system: System requirements: already installed ======== Installing packages ======== egl/system: Already installed! (1 of 8) imatest-corrade/2020.06: Already installed! (2 of 8) imatest-corrade/2020.06: Appending PATH environment variable: /home/builds/.conan2/p/b/imate3e4613ed385c4/p/bin imatest-corrade/2020.06: Already installed! (3 of 8) imatest-corrade/2020.06: Appending PATH environment variable: /home/builds/.conan2/p/b/imateeb043543777e9/p/bin opengl/system: Already installed! (4 of 8) xorg/system: Already installed! (5 of 8) openal/1.22.2: Already installed! (6 of 8) glfw/3.4: Already installed! (7 of 8) imatest-magnum/2020.06: Sources downloaded from 'conan-local' imatest-magnum/2020.06: Calling source() in /home/builds/.conan2/p/imateaae8562d437fa/s/source_subfolder imatest-magnum/2020.06: Cloning git repo imatest-magnum/2020.06: RUN: git clone "recipe using glfw: conanfile .py.txt