-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to cross compile openssl/3.x.x on develop2 #631
Comments
Hi @f-scholer Thanks for your report. |
Ok, I just realized. The In other words, it is not prepared for cross-compiling from Linux -> Windows and defining the RC compiler. So the issue needs to be addressed in both places, opening another ticket in the Conan client |
In the meantime, you can define a profile with just the |
Thanks for the quick action and suggestion. That works. I had modified conan_provider.cmake to write the buildenv entries: propagate compilersappend_buildenv_configuration() |
conan-io/conan#15946 has been merged it will be in the next Conan 2.3 release |
This ticket was closed by #632 |
I am unable to cross compile openssl/3.x.x on develop2.
I can cross compile openssl with the following command:
conan install . --build=force -pr:b=default -pr:h=./profiles/mingw
mingw.txt
But doing the same with conan_provider:
cmake -B build/win -S example -DCMAKE_TOOLCHAIN_FILE=toolchain/x86_64-mingw_linux_toolchain.cmake -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=cmake/conan_provider.cmake -DCMAKE_BUILD_TYPE=Release
x86_64-mingw_linux_toolchain.txt
gives this
build.txt
the conan_provider generated profile appears to be incomplete:
[settings]
arch=x86_64
os=Windows
compiler=gcc
compiler.version=10
compiler.cppstd=20
compiler.libcxx=libstdc++11
build_type=Release
[conf]
tools.cmake.cmaketoolchain:generator=Unix Makefiles
tools.build:compiler_executables={"c":"/bin/x86_64-w64-mingw32-gcc-posix","cpp":"/bin/x86_64-w64-mingw32-g++-posix"}
I tried appending updating the profile without luck:
tools.build:compiler_executables={"c":"/bin/x86_64-w64-mingw32-gcc-posix","cpp":"/bin/x86_64-w64-mingw32-g++-posix","rc":"/bin/x86_64-w64-mingw32-windres","RC":"/bin/x86_64-w64-mingw32-windres","windres":"/bin/x86_64-w64-mingw32-windres"}
The text was updated successfully, but these errors were encountered: