#19278: Cannot find wxWidgets for MinGW using find_package
-----------------------+-------------------------
Reporter: jjELT | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: 3rdparty | Version: 3.1.5
Resolution: | Keywords: CMake,MinGW
Blocked By: | Blocking:
Patch: 0 |
-----------------------+-------------------------
Changes (by jjELT):
* cc: j.jochum@… (added)
Comment:
I just realised I miscorrected myself in the second post from yesterday on
discourse.cmake.org. I deleted that second post.
I am in fact installing wxWidgets into the folder
`<EXTERNAL_PROJECTS>/Install/wxwidgets/v3.1.5/gnu/amd64/static/`, by
defining the `CMAKE_INSTALL_PREFIX` when configuring the CMake project.
{{{
...
-DCMAKE_INSTALL_PREFIX=<EXTERNAL_PROJECTS>/Install/wxwidgets/v3.1.5/gnu/amd64/static
}}}
Later on, the line when I am actually triggering the `install` phase, was
correct after all, as the mentioned path is not the "target" install-path,
but rather where the compiled code is laying, which should be installed:
{{{
C:/Program Files/CMake/bin/cmake.exe --install
<EXTERNAL_PROJECTS>/Build/wxwidgets/v3.1.5/gnu/amd64/Release
}}}
Sorry for the confusion.
As mentioned in the post on
discourse.cmake.org I am building wxWidgets
both with MinGW as well as MSVC, so I have these two respective install
folders
{{{
<EXTERNAL_PROJECTS>\Install\wxwidgets\v3.1.5\gnu\amd64\static
<EXTERNAL_PROJECTS>\Install\wxwidgets\v3.1.5\msvc\amd64\static
}}}
both having the three subfolders `bin`, `include` and `lib` you mentioned.
The subfolders and files inside these folders differ though. The content
in the `.../gnu/..` folder appears to be tagged with a `*-3.1` (at least
some files and folders).
For instance I see the following files and folders:
{{{
..\gnu\amd64\static\bin\wxrc-3.1.exe
..\msvc\amd64\static\bin\wxrc.exe
}}}
{{{
..\gnu\amd64\static\include\wx-3.1\wx\..
..\msvc\amd64\static\include\msvc\wx\..
..\msvc\amd64\static\include\wx\..
}}}
{{{
..\gnu\amd64\static\lib\wx\..
..\gnu\amd64\static\lib\libwx_baseu_net-3.1.a
..\gnu\amd64\static\lib\libwx_baseu_xml-3.1.a
..
..\msvc\amd64\static\lib\vc_x64_lib\mswu\..
..\msvc\amd64\static\lib\vc_x64_lib\mswud\..
..\msvc\amd64\static\lib\wxbase31u.lib
..\msvc\amd64\static\lib\wxbase31u_net.lib
..
}}}
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19278#comment:2>