Bug 1215960 - Can't build anything that requires wxWidgets 3.0
Summary: Can't build anything that requires wxWidgets 3.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL: http://www.cmake.org/Bug/view.php?id=...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-28 08:45 UTC by Banana Fool
Modified: 2016-03-25 10:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-25 10:40:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.