Bug 1215960

Summary: Can't build anything that requires wxWidgets 3.0
Product: [Fedora] Fedora Reporter: Banana Fool <lamefun.x0r>
Component: cmakeAssignee: Orion Poplawski <orion>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: besser82, helio, jgrulich, jreznik, me, orion, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.cmake.org/Bug/view.php?id=15540
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-25 10:40:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Banana Fool 2015-04-28 08:45:37 UTC
Can't build anything that requires wxWidgets 3.0, because FindwxWidgets.cmake uses wx-config instead of ws-config-3.0.

CMakeLists.txt

cmake_minimum_required(VERSION 3.0)
project(testwx)

find_package(wxWidgets 3.0 REQUIRED core base)
include(${wxWidgets_USE_FILE})

add_executable(testwx testwx.cpp)
target_link_libraries(testwx ${wxWidgets_LIBRARIES})

testwx.cpp

#include <wx/wx.h>

int main(int argc, char** argv) {
  wxString test = "Hello, World!";
  return 0;
}

Result:

In file included ... from /usr/include/wx-2.8/wx/wx.h:16
... no known conversion for argument 1 from «const char [14]» to «int»

Comment 1 Orion Poplawski 2015-04-28 23:13:25 UTC
Couple things:

- I don't think the FindwxWidgets parses the 3.0 in any meaningful way (http://www.cmake.org/Bug/view.php?id=10694)

- For now this appears to work:

cmake -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-3.0'

Comment 2 Orion Poplawski 2015-04-29 16:12:41 UTC
Filed upstream: http://www.cmake.org/Bug/view.php?id=15540

Comment 3 Fedora Update System 2015-08-14 14:20:16 UTC
cmake-3.3.1-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/cmake-3.3.1-1.fc22

Comment 4 Fedora Update System 2015-08-18 05:19:50 UTC
Package cmake-3.3.1-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cmake-3.3.1-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13569/cmake-3.3.1-1.fc22
then log in and leave karma (feedback).

Comment 5 Björn 'besser82' Esser 2016-03-25 10:40:30 UTC
This has gone stable in fc22 since a long time.  Closing here.