conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
969 stars 1.78k forks source link

[package] Imported target "glfw" includes non-existent path #25557

Open TrevorCash opened 1 month ago

TrevorCash commented 1 month ago

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:

CMake Error in src/Magnum/Platform/CMakeLists.txt:
  Imported target "glfw" 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.

when debuging the CMakeScript and using

    get_target_property(incdir glfw INTERFACE_INCLUDE_DIRECTORIES)
    message("glfw_INTERFACE_INCLUDE_DIRECTORIES is ${incdir}")

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 "" imatest-magnum/2020.06: Checkout: 2ac22a0a1aa766641398ee0f5bd0c02c3700aabe imatest-magnum/2020.06: RUN: git checkout 2ac22a0a1aa766641398ee0f5bd0c02c3700aabe /home/builds/.conan2/p/imateaae8562d437fa/s/source_subfolder/magnum -------- Installing package imatest-magnum/2020.06 (8 of 8) -------- imatest-magnum/2020.06: Building from source imatest-magnum/2020.06: Package imatest-magnum/2020.06:f5319fb9b5d2cc60624b56e4e3d4e3f16d3b5b43 imatest-magnum/2020.06: Copying sources to build folder imatest-magnum/2020.06: Building your package in /home/builds/.conan2/p/b/imatef114fb8316e4a/b imatest-magnum/2020.06: Writing generators to /home/builds/.conan2/p/b/imatef114fb8316e4a/b/build/Release/generators imatest-magnum/2020.06: Generator 'CMakeDeps' calling 'generate()' imatest-magnum/2020.06: CMakeDeps necessary find_package() and targets for your CMakeLists.txt find_package(Corrade) find_package(OpenAL) find_package(egl) find_package(glfw3) find_package(opengl_system) target_link_libraries(... Corrade::Corrade OpenAL::OpenAL egl::egl glfw opengl::opengl) imatest-magnum/2020.06: Generator 'CMakeToolchain' calling 'generate()' imatest-magnum/2020.06: CMakeToolchain generated: conan_toolchain.cmake imatest-magnum/2020.06: CMakeToolchain generated: /home/builds/.conan2/p/b/imatef114fb8316e4a/b/build/Release/generators/CMakePresets.json imatest-magnum/2020.06: CMakeToolchain generated: /home/builds/.conan2/p/b/imatef114fb8316e4a/b/source_subfolder/CMakeUserPresets.json imatest-magnum/2020.06: Generating aggregated env files imatest-magnum/2020.06: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] imatest-magnum/2020.06: Calling build() imatest-magnum/2020.06: Running CMake.configure() imatest-magnum/2020.06: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/builds/.conan2/p/b/imatef114fb8316e4a/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" -DBUILD_SHARED_LIBS="True" -DMAGNUM_BUILD_SHARED_LIBS="True" -DMAGNUM_BUILD_DEPRECATED="False" -DMAGNUM_BUILD_STATIC="False" -DMAGNUM_BUILD_STATIC_PIC="True" -DMAGNUM_BUILD_PLUGINS_STATIC="False" -DMAGNUM_LIB_SUFFIX="" -DMAGNUM_BUILD_TESTS="False" -DMAGNUM_BUILD_GL_TESTS="False" -DMAGNUM_BUILD_AL_TESTS="False" -DMAGNUM_WITH_OPENGLTESTER="False" -DMAGNUM_WITH_VULKANTESTER="False" -DMAGNUM_TARGET_GL="True" -DMAGNUM_TARGET_GLES="False" -DMAGNUM_TARGET_GLES2="False" -DMAGNUM_TARGET_DESKTOP_GLES="True" -DMAGNUM_TARGET_HEADLESS="True" -DMAGNUM_TARGET_VK="False" -DMAGNUM_WITH_AUDIO="True" -DMAGNUM_WITH_DEBUGTOOLS="True" -DMAGNUM_WITH_GL="True" -DMAGNUM_WITH_MESHTOOLS="True" -DMAGNUM_WITH_PRIMITIVES="True" -DMAGNUM_WITH_SCENEGRAPH="True" -DMAGNUM_WITH_SHADERS="True" -DMAGNUM_WITH_TEXT="True" -DMAGNUM_WITH_TEXTURETOOLS="True" -DMAGNUM_WITH_TRADE="True" -DMAGNUM_WITH_VK="False" -DMAGNUM_WITH_ANDROIDAPPLICATION="False" -DMAGNUM_WITH_EMSCRIPTENAPPLICATION="False" -DMAGNUM_WITH_GLFWAPPLICATION="True" -DMAGNUM_WITH_GLXAPPLICATION="False" -DMAGNUM_WITH_SDL2APPLICATION="False" -DMAGNUM_WITH_XEGLAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSCGLAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSEGLAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSGLXAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSIOSAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSWGLAPPLICATION="False" -DMAGNUM_WITH_WINDOWLESSWINDOWSEGLAPPLICATION="False" -DMAGNUM_WITH_CGLCONTEXT="False" -DMAGNUM_WITH_EGLCONTEXT="False" -DMAGNUM_WITH_GLXCONTEXT="True" -DMAGNUM_WITH_WGLCONTEXT="False" -DMAGNUM_WITH_ANYAUDIOIMPORTER="False" -DMAGNUM_WITH_ANYIMAGECONVERTER="False" -DMAGNUM_WITH_ANYIMAGEIMPORTER="True" -DMAGNUM_WITH_STBIMAGEIMPORTER="True" -DMAGNUM_WITH_ANYSCENECONVERTER="False" -DMAGNUM_WITH_ANYSCENEIMPORTER="True" -DMAGNUM_WITH_MAGNUMFONT="False" -DMAGNUM_WITH_MAGNUMFONTCONVERTER="False" -DMAGNUM_WITH_OBJIMPORTER="False" -DMAGNUM_WITH_TGAIMPORTER="False" -DMAGNUM_WITH_TGAIMAGECONVERTER="False" -DMAGNUM_WITH_WAVAUDIOIMPORTER="False" -DMAGNUM_WITH_TINYGLTFIMPORTER="False" -DMAGNUM_WITH_PNGIMPORTER="True" -DMAGNUM_WITH_GL_INFO="True" -DMAGNUM_WITH_AL_INFO="False" -DMAGNUM_WITH_DISTANCEFIELDCONVERTER="True" -DMAGNUM_WITH_FONTCONVERTER="True" -DMAGNUM_WITH_IMAGECONVERTER="True" -DMAGNUM_WITH_SCENECONVERTER="True" "/home/builds/.conan2/p/b/imatef114fb8316e4a/b/source_subfolder" -- Using Conan toolchain: /home/builds/.conan2/p/b/imatef114fb8316e4a/b/build/Release/generators/conan_toolchain.cmake -- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC) -- Conan toolchain: Defining architecture flag: -m64 -- Conan toolchain: C++ Standard 14 with extensions ON -- Conan toolchain: Setting BUILD_SHARED_LIBS = ON -- The CXX compiler identification is GNU 9.4.0 -- 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: Component target declared 'imatest-corrade::_corrade' -- Conan: Component target declared 'Corrade::Main' -- Conan: Component target declared 'Corrade::Utility' -- Conan: Component target declared 'Corrade::Interconnect' -- Conan: Component target declared 'Corrade::PluginManager' -- Conan: Component target declared 'Corrade::TestSuite' -- Conan: Target declared 'Corrade::Corrade' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- The LIB_SUFFIX variable is not defined. It will be autodetected now. -- You can set it manually with -DLIB_SUFFIX= (64 for example). -- LIB_SUFFIX autodetected as '', libraries will be installed into /home/builds/.conan2/p/b/imatef114fb8316e4a/p/lib -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so -- Found Git: /usr/bin/git (found version "2.25.1") -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Conan: Target declared 'glfw' -- Conan: Target declared 'opengl::opengl' -- Conan: Component target declared 'xorg::x11' -- Conan: Component target declared 'xorg::x11-xcb' -- Conan: Component target declared 'xorg::fontenc' -- Conan: Component target declared 'xorg::ice' -- Conan: Component target declared 'xorg::xau' -- Conan: Component target declared 'xorg::xaw7' -- Conan: Component target declared 'xorg::xcomposite' -- Conan: Component target declared 'xorg::xcursor' -- Conan: Component target declared 'xorg::xdamage' -- Conan: Component target declared 'xorg::xdmcp' -- Conan: Component target declared 'xorg::xext' -- Conan: Component target declared 'xorg::xfixes' -- Conan: Component target declared 'xorg::xi' -- Conan: Component target declared 'xorg::xinerama' -- Conan: Component target declared 'xorg::xkbfile' -- Conan: Component target declared 'xorg::xmu' -- Conan: Component target declared 'xorg::xmuu' -- Conan: Component target declared 'xorg::xpm' -- Conan: Component target declared 'xorg::xrandr' -- Conan: Component target declared 'xorg::xrender' -- Conan: Component target declared 'xorg::xres' -- Conan: Component target declared 'xorg::xscrnsaver' -- Conan: Component target declared 'xorg::xt' -- Conan: Component target declared 'xorg::xtst' -- Conan: Component target declared 'xorg::xv' -- Conan: Component target declared 'xorg::xxf86vm' -- Conan: Component target declared 'xorg::xcb-xkb' -- Conan: Component target declared 'xorg::xcb-icccm' -- Conan: Component target declared 'xorg::xcb-image' -- Conan: Component target declared 'xorg::xcb-keysyms' -- Conan: Component target declared 'xorg::xcb-randr' -- Conan: Component target declared 'xorg::xcb-render' -- Conan: Component target declared 'xorg::xcb-renderutil' -- Conan: Component target declared 'xorg::xcb-shape' -- Conan: Component target declared 'xorg::xcb-shm' -- Conan: Component target declared 'xorg::xcb-sync' -- Conan: Component target declared 'xorg::xcb-xfixes' -- Conan: Component target declared 'xorg::xcb-xinerama' -- Conan: Component target declared 'xorg::xcb' -- Conan: Component target declared 'xorg::xcb-atom' -- Conan: Component target declared 'xorg::xcb-aux' -- Conan: Component target declared 'xorg::xcb-event' -- Conan: Component target declared 'xorg::xcb-util' -- Conan: Component target declared 'xorg::xcb-dri3' -- Conan: Component target declared 'xorg::xcb-cursor' -- Conan: Component target declared 'xorg::xcb-dri2' -- Conan: Component target declared 'xorg::xcb-glx' -- Conan: Component target declared 'xorg::xcb-present' -- Conan: Component target declared 'xorg::xcb-composite' -- Conan: Component target declared 'xorg::xcb-ewmh' -- Conan: Component target declared 'xorg::xcb-res' -- Conan: Component target declared 'xorg::uuid' -- Conan: Component target declared 'xorg::sm' -- Conan: Target declared 'xorg::xorg' glfw_INTERFACE_INCLUDE_DIRECTORIES is $<$:/home/builds/.conan2/p/b/glfwb72f953c9741e/p/include> glfw_INCLUDE_DIRS_RELEASE is /home/builds/.conan2/p/b/glfwb72f953c9741e/p/include glfw_INCLUDE_DIRS_DEBUG is glfw3_INCLUDE_DIR is /home/builds/.conan2/p/b/glfwb72f953c9741e/p/include -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' glfw_INTERFACE_INCLUDE_DIRECTORIES post is $<$:/home/builds/.conan2/p/b/glfwb72f953c9741e/p/include> -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Target declared 'OpenAL::OpenAL' -- Conan: Including build module from '/home/builds/.conan2/p/b/opena1a4c40f58c1dd/p/lib/cmake/conan-official-openal-variables.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/conan-corrade-vars.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/CorradeLibSuffix.cmake' -- Conan: Including build module from '/home/builds/.conan2/p/b/imateeb043543777e9/p/lib/cmake/UseCorrade.cmake' -- Configuring done (2.0s) CMake Error in src/Magnum/Platform/CMakeLists.txt: Imported target "glfw" 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.2s) CMake Warning: Manually-specified variables were not used by the project: MAGNUM_BUILD_SHARED_LIBS MAGNUM_LIB_SUFFIX MAGNUM_TARGET_DESKTOP_GLES MAGNUM_TARGET_HEADLESS MAGNUM_WITH_PNGIMPORTER MAGNUM_WITH_STBIMAGEIMPORTER MAGNUM_WITH_TINYGLTFIMPORTER MAGNUM_WITH_WINDOWLESSWINDOWSEGLAPPLICATION CMake Generate step failed. Build files cannot be regenerated correctly. imatest-magnum/2020.06: ERROR: Package 'f5319fb9b5d2cc60624b56e4e3d4e3f16d3b5b43' build failed imatest-magnum/2020.06: WARN: Build folder /home/builds/.conan2/p/b/imatef114fb8316e4a/b/build/Release ERROR: imatest-magnum/2020.06: Error in build() method, line 433 cm.configure(variables=vars) ConanException: Error 1 while executing ```

recipe using glfw: conanfile .py.txt

AbrilRBS commented 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!

TrevorCash commented 1 month ago

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