-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
What is your question?
I am trying to migrate my project dependency on wxWidgets 3.2.6 to be managed by conan2 version 2.22.2.
I am using conanfile,py for my application with following entry
self.requires("wxwidgets/3.2.6")
The dependency builds fine on following pr
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows
in my CMakeLists.txt I just call
find_package(wxWidgets REQUIRED)
I am using canonical conan integration, so I run following command
conan install . --build=missing && cmake -G Ninja --preset conan-release && cmake --build --preset conan-release
and that end with following failure
-- Conan: Component target declared Boost::diagnostic_definitions
-- Conan: Component target declared Boost::disable_autolinking
-- Conan: Component target declared Boost::dynamic_linking
-- Conan: Component target declared Boost::headers
-- Conan: Component target declared Boost::boost
-- Conan: Component target declared boost::_libboost
-- Conan: Component target declared Boost::system
-- Conan: Target declared boost::boost
-- Conan: Target declared wxWidgets::wxWidgets
CMake Error at build/Release/generators/cmakedeps_macros.cmake:81 (message):
Library 'wx_mswu_xrc-3.2' not found in package. If 'wx_mswu_xrc-3.2' is a
system library, declare it with 'cpp_info.system_libs' property
Call Stack (most recent call first):
build/Release/generators/wxWidgets-Target-release.cmake:23 (conan_package_library_targets)
build/Release/generators/wxWidgetsTargets.cmake:24 (include)
build/Release/generators/wxWidgetsConfig.cmake:16 (include)
CMakeLists.txt:42 (find_package)-- Configuring incomplete, errors occurred!
when I list '.a' files in conan2 cache directory, which is '.conan2/p/b/wxwid4ee6b699ef3b7', the files are following
./b/build/Release/lib/gcc_x64_lib/libwxbase32u.a
./b/build/Release/lib/gcc_x64_lib/libwxbase32u_net.a
./b/build/Release/lib/gcc_x64_lib/libwxbase32u_xml.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_adv.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_aui.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_core.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_gl.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_html.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_propgrid.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_qa.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_ribbon.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_richtext.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_stc.a
./b/build/Release/lib/gcc_x64_lib/libwxmsw32u_xrc.a
./b/build/Release/lib/gcc_x64_lib/libwxscintilla.a
./b/build/Release/utils/CMakeFiles/wxrc.dir/objects.a
./p/lib/gcc_x64_lib/libwxbase32u.a
./p/lib/gcc_x64_lib/libwxbase32u_net.a
./p/lib/gcc_x64_lib/libwxbase32u_xml.a
./p/lib/gcc_x64_lib/libwxmsw32u_adv.a
./p/lib/gcc_x64_lib/libwxmsw32u_aui.a
./p/lib/gcc_x64_lib/libwxmsw32u_core.a
./p/lib/gcc_x64_lib/libwxmsw32u_gl.a
./p/lib/gcc_x64_lib/libwxmsw32u_html.a
./p/lib/gcc_x64_lib/libwxmsw32u_propgrid.a
./p/lib/gcc_x64_lib/libwxmsw32u_qa.a
./p/lib/gcc_x64_lib/libwxmsw32u_ribbon.a
./p/lib/gcc_x64_lib/libwxmsw32u_richtext.a
./p/lib/gcc_x64_lib/libwxmsw32u_stc.a
./p/lib/gcc_x64_lib/libwxmsw32u_xrc.a
./p/lib/gcc_x64_lib/libwxscintilla.a
I give it a try with PkgConfigDeps conan2 generator and I was a little bit more successfull there as I was able to perform a compilation and the whole process failed on linking due to some unresolved references.
Not sure if this is recipe issue, or my configuration or conanfile issue on my side. It seems to me that there is a kind of mismatch between expected file names and available file names for mswu.
I am calling for somebody, who was able to convert his dependency on wxWidgets Windows build and can share some tips and tricks with myself. The statement that can not be done on Windows or mswu will be helpfull as well.