Open joda01 opened 1 month ago
Hello,
I was using:
self.requires("libxml2/2.12.7")
self.requires("qt/6.7.1")
I have changed to:
self.requires("libxml2/2.12.7", override=True)
self.requires("qt/6.7.1", override=True)
now it is working fine. I think libxml and qt have used older version of libelf which is varying from current latest version of libelf from ConanCenter.
here is my conanfile.py:
from conan import ConanFile
class ProjectRecipe(ConanFile):
settings = ("os", "compiler", "build_type", "arch")
generators = ("CMakeDeps", "CMakeToolchain")
def requirements(self):
self.requires("libxml2/2.12.7", override=True)
self.requires("qt/6.7.1", override=True)
def build_requirements(self):
self.tool_requires("cmake/[>=3.30.0]")
def configure(self):
self.options["qt/*"].shared = False
self.options["qt/*"].qmultimedia = True
def layout(self):
self.folders.build = "build"
self.folders.source = "src"
self.folders.generators = "build"
I think this might help you.
Regards, Vinay Kashyap
@vinaykashyaphr Thank's a lot, this helps!
Description
When building libelf using Mingw under Windows follwing build error occurs:
Package and Environment Details
Conan profile
[settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.libcxx=libstdc++11 compiler.version=11 os=Windows
[conf] tools.system.package_manager:mode=install
[options] qt/:qtsvg=True qt/:qtcharts=True qt/:with_pq=False qt/:with_odbc=False qt/:with_sqlite3=False qt/:shared=True libxlsxwriter/*:md5=False
[buildenv] PATH=+D:/a/_temp/msys64/mingw64/bin;D:/a/_temp/msys64/usr/bin CC=D:/a/_temp/msys64/mingw64/bin/gcc.exe CXX=D:/a/_temp/msys64/mingw64/bin/g++.exe
[runenv] PATH=+D:/a/_temp/msys64/mingw64/bin;D:/a/_temp/msys64/usr/bin CC=D:/a/_temp/msys64/mingw64/bin/gcc.exe CXX=D:/a/_temp/msys64/mingw64/bin/g++.exe
Steps to reproduce
Use following
conan.py
Logs
Click to expand log
``` "C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p" 2024-09-15T17:41:27.9112482Z -- Install configuration: "Release" 2024-09-15T17:41:27.9117453Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/libdeflate.a 2024-09-15T17:41:27.9130376Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/include/libdeflate.h 2024-09-15T17:41:27.9142830Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/pkgconfig/libdeflate.pc 2024-09-15T17:41:27.9155854Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/cmake/libdeflate/libdeflate-targets.cmake 2024-09-15T17:41:27.9165683Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/cmake/libdeflate/libdeflate-targets-release.cmake 2024-09-15T17:41:27.9175121Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/cmake/libdeflate/libdeflate-config.cmake 2024-09-15T17:41:27.9186115Z -- Installing: C:/Users/runneradmin/.conan2/p/b/libde5ce7fb16541d1/p/lib/cmake/libdeflate/libdeflate-config-version.cmake 2024-09-15T17:41:27.9236053Z 2024-09-15T17:41:27.9269226Z libdeflate/1.19: package(): Packaged 1 '.h' file: libdeflate.h 2024-09-15T17:41:27.9270247Z libdeflate/1.19: package(): Packaged 1 '.a' file: libdeflate.a 2024-09-15T17:41:27.9270959Z libdeflate/1.19: package(): Packaged 1 file: COPYING 2024-09-15T17:41:27.9271676Z libdeflate/1.19: Created package revision 06cb3197045d3523915fa5fbf9cf1a96 2024-09-15T17:41:27.9272681Z libdeflate/1.19: Package '86b06ec12f1ccc8db0d3e1aa94c57fb99817ce55' created 2024-09-15T17:41:27.9274090Z libdeflate/1.19: Full package reference: libdeflate/1.19#3ea74a4549efc14d4b1202dc4bfbf602:86b06ec12f1ccc8db0d3e1aa94c57fb99817ce55#06cb3197045d3523915fa5fbf9cf1a96 2024-09-15T17:41:27.9544479Z libdeflate/1.19: Package folder C:\Users\runneradmin\.conan2\p\b\libde5ce7fb16541d1\p 2024-09-15T17:41:27.9952339Z libelf/0.8.13: Sources downloaded from 'conancenter' 2024-09-15T17:41:27.9974115Z libelf/0.8.13: Calling source() in C:\Users\runneradmin\.conan2\p\libelfab0e0f1e87fa\s\src 2024-09-15T17:41:28.1773464Z libelf/0.8.13: Unzipping libelf-0.8.13.tar.gz to . 2024-09-15T17:41:28.7122406Z 2024-09-15T17:41:28.7123419Z -------- Installing package libelf/0.8.13 (13 of 65) -------- 2024-09-15T17:41:28.7124152Z libelf/0.8.13: Building from source 2024-09-15T17:41:28.7124808Z libelf/0.8.13: Package libelf/0.8.13:86b06ec12f1ccc8db0d3e1aa94c57fb99817ce55 2024-09-15T17:41:28.7142407Z libelf/0.8.13: Copying sources to build folder 2024-09-15T17:41:29.2956997Z libelf/0.8.13: Building your package in C:\Users\runneradmin\.conan2\p\b\libel28c31abd87fda\b 2024-09-15T17:41:29.2958228Z libelf/0.8.13: Calling generate() 2024-09-15T17:41:29.2959195Z libelf/0.8.13: Generators folder: C:\Users\runneradmin\.conan2\p\b\libel28c31abd87fda\b\build\Release\generators 2024-09-15T17:41:29.3514231Z libelf/0.8.13: CMakeToolchain generated: conan_toolchain.cmake 2024-09-15T17:41:29.3524427Z libelf/0.8.13: CMakeToolchain generated: C:\Users\runneradmin\.conan2\p\b\libel28c31abd87fda\b\build\Release\generators\CMakePresets.json 2024-09-15T17:41:29.4106724Z libelf/0.8.13: Generating aggregated env files 2024-09-15T17:41:29.4108182Z libelf/0.8.13: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] 2024-09-15T17:41:29.4113756Z libelf/0.8.13: Calling build() 2024-09-15T17:41:29.4116158Z libelf/0.8.13: Running CMake.configure() 2024-09-15T17:41:29.4121139Z libelf/0.8.13: RUN: cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/runneradmin/.conan2/p/b/libel28c31abd87fda/p" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:/Users/runneradmin/.conan2/p/b/libel28c31abd87fda/b/src/.." 2024-09-15T17:41:29.4938613Z CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): 2024-09-15T17:41:29.4940630Z Compatibility with CMake < 3.5 will be removed from a future version of 2024-09-15T17:41:29.4941734Z CMake. 2024-09-15T17:41:29.4941990Z 2024-09-15T17:41:29.4942520Z Update the VERSION argument