[CMake] CMake with wxWidgets on Linux

William A. Hoffman billlist at nycap.rr.com
Sat May 27 21:26:25 EDT 2006


At 07:10 PM 5/27/2006, Brian Eastwood wrote:
>Hi All,
>
>I've been using CMake for a few years on Windows and recently switched over to Linux.  I have been having some problems getting a basic hello world program running using wxWidgets, and figured someone here probably know what I am doing wrong.  Part of my confusion is the large number of cmake files that could be used to configure wxWidgets.  My CMakeLists file is copied below.  The program hworld.cxx is basically Robert Roebling's hello world tutorial from http://www.wxwidgets.org/hello.htm
>
>I have no problems running cmake or compiling the project, but get a segmentation fault when I try running the program...there is no other output.  (I'm assuming the application can't find a shared library, but I don't know which one that would be.)
>
>I am running Fedora Core 5 and installed wxGTK, wxGTK-devel and compat-wxGTK2-devel (among others) from the fedora extras rpm repository.  Are there other packages I should have installed?
>
>Thanks in advance for any suggestions.
>Cheers,
>Brian

If you get a seg-fault it is not a missing library.  I suggest you run gdb on
the program and figure out where it is crashing.   One possible source of trouble
could be mis-matched header files and libraries.  

-Bill



More information about the CMake mailing list