You are not logged in.

#1 2015-04-28 18:42:47

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 122

cmake, wxwidgets 3.0.2 warning message

I don't know if this a bug on cmake or wxwidgets, maybe I'm using the wrong commands, this is the packages I have of wx:

extra/wxgtk 3.0.2-4 [installed]
extra/wxgtk2.8 2.8.12.1-3 [installed]

I want to link against gtk 3.0.2, so, this is my cmake code snippet:

set (TOOLKIT_VERSION_NEED "3.0")
set (wxWidgets_CONFIG_OPTIONS --version=${TOOLKIT_VERSION_NEED})
find_package (wxWidgets COMPONENTS core base REQUIRED)
if (wxWidgets_FOUND)
	include (${wxWidgets_USE_FILE})
	set (LINKER_LIBS ${LINKER_LIBS} ${wxWidgets_LIBRARIES})
else ()
	message (FATAL_ERROR "wxWidgets not found")
endif ()

Everything is detected as expected, but when I run my program I get the following warning

11:26:18: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1008,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).

any ideas?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.

Offline

#2 2015-04-28 20:51:58

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: cmake, wxwidgets 3.0.2 warning message

Hi Joel,

I have no answer, but this seems to be releated https://bbs.archlinux.org/viewtopic.php?id=196715


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#3 2015-04-29 00:13:45

Joel
Member
From: Tijuana, BC, México
Registered: 2011-12-21
Posts: 122

Re: cmake, wxwidgets 3.0.2 warning message

oh, thanks mauritiusdadd, seems a bug/problem with wx package in Archlinux?


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
* AUR contributor.

Offline

#4 2015-04-29 04:55:30

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: cmake, wxwidgets 3.0.2 warning message

Joel wrote:

oh, thanks mauritiusdadd, seems a bug/problem with wx package in Archlinux?

Not quite. See my answer on the other thread:

https://bbs.archlinux.org/viewtopic.php … 6#p1524176

Offline

Board footer

Powered by FluxBB