[CMake] Can't find wxWidgets

Bob Bachman bob_bachman at intercept.com
Thu Jul 9 15:32:40 EDT 2015


Richard Shaw <hobbes1069 at ...> writes:

> 
> On Thu, Jul 9, 2015 at 2:10 PM, Bob Bachman <bob_bachman-
JXEU3b3ms+Tby3iVrkZq2A at public.gmane.org> wrote:Richard Shaw <hobbes1069 <at> 
...> writes:> On Thu, Jul 9, 2015 at 1:19 PM, Bob Bachman <bob_bachman-
JXEU3b3ms+Tby3iVrkZq2A-XMD5yJDbdMReXY1tMh2IBg at public.gmane.org> wrote:We've 
upgraded from wxWidgets2.8.10 to 3.0.2 and our CMake scripts can no
> > longer find the required wxWidgets libs. The wxWidgets shared object 
files
> > have been built and exist in the same directory structure as the 2.8.10
> > version. Any help would be greatly appreciated. Thank you
> >
> > Double check that the wx-config script has not changed names... On 
Fedora we
> allow both to be installed so on 3.X the wx-config script is renamed to 
wx-
> config-3.0 so I have to do something like:
> >
> > $ cmake -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config.3.0
> >
> > and everything works as usual.Okay, thanks. That doesn't seem to be the 
problem. The wx-config script
> located in the buildgtk directory is a soft link.
> wx-config -> lib/wx/config/inplace-gtk2-unicode-3.0
> 
> Ok, so that's not what's going on... Is this a custom build of wxWidgets? 
Is wx-config located in /usr/bin or somewhere else? 
> 
> Thanks,
> Richard
> 
> 

We build wxWidgets here. It's not located in /usr/bin. Here's our build 
process.

from the wxWidgets-3.0.2 directory,
1. mkdir buildgtk
2. cd buildgtk
3. ../configure --with-gtk --without-gnomeprint
3. make

The wx-config script is then found in the buildgtk directory.

Thanks,
Bob


More information about the CMake mailing list