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
if self.options.avcodec:
self.cpp_info.components["avcodec"].system_libs = [
"Mfplat", "Mfuuid", "strmiids"]
cause failing linking when cross-compiling Linux to Windows, if some package depends on ffmpeg, then we see error like this: /usr/lib/gcc/i686-w64-mingw32/12.2.0/../../../../i686-w64-mingw32/bin/ld: cannot find -lMfuuid:, because it called /usr/x86_64-w64-mingw32/lib/libmfuuid.a in MinGW toolchain in Linux.
rilian-la-te
changed the title
ffmpeg/any: on Windows it announces system libs in incorrect registry
ffmpeg/any: on Windows it announces system libs in incorrect case
Jan 22, 2023
Description
This part of recipe:
cause failing linking when cross-compiling Linux to Windows, if some package depends on ffmpeg, then we see error like this:
/usr/lib/gcc/i686-w64-mingw32/12.2.0/../../../../i686-w64-mingw32/bin/ld: cannot find -lMfuuid:
, because it called/usr/x86_64-w64-mingw32/lib/libmfuuid.a
in MinGW toolchain in Linux.Package and Environment Details
Conan profile
toolchain=/usr/i686-w64-mingw32
target_host=i686-w64-mingw32
[settings]
os=Windows
arch=x86
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
build_type=Release
compiler.cppstd=11
[conf]
tools.cmake.cmaketoolchain:generator = Ninja
tools.build:compiler_executables = {"c": "i686-w64-mingw32-gcc", "cpp": "i686-w64-mingw32-g++"}
tools.build:cflags = ["-msse2"]
tools.build:cxxflags = ["-msse2"]
[env]
CONAN_CMAKE_SYSROOT=$toolchain
CROSS_COMPILE=$target_host-
CHOST=$target_host
AR=$target_host-ar
AS=$target_host-as
CC=$target_host-gcc
CXX=$target_host-g++
RANLIB=$target_host-ranlib
STRIP=$target_host-strip
RC=$target_host-windres
Steps to reproduce
I tried to build VCMI using MinGW on Linux.
Logs
Click to expand log
The text was updated successfully, but these errors were encountered: