How to build wxGTK libraries that are compatible with wxPropView?

mvBlueFOX, mvIMPACT Acquire

wxPropView needs at least version 2.6.1 of wxWidgets. Some older Linux distributions have version 2.4.x installed. Some newer Linux distributions have wxGTK/wxWidgets libraries that have been compiled with incompatible options.
Building your own, compatible version is very easy and you can do it without affecting other applications on your PC.

  1. Download wxGTK-2.6.3.tar.gz from the wxWidgets home page (
  2. Unpack the file in a temporary directory:

    tar xvzf wxGTK-2.6.3.tar.gz

  3. Create a subdirectory of the wxGTK-2.6.3 directory called "native":

    mkdir wxGTK-2.6.3/native

  4. Create a file called "mknative" in this new subdirectory containing the following lines of text:
    CFLAGS=""-fPIC"" CXXFLAGS=""-fPIC"" 
      ../configure --prefix=/opt/wx/2.6/x86 

  5. Change to the "native" subdirectory and call "mknative" as a script:

    cd wxGTK-2.6.3/native sh ./mknative

  6. The script will now configure wxGTK and check if all the needed files are available. If some libraries or headers are missing please examine the output of the script and install the correct packages on your system. E.g. you may be missing the GTK2 development package. Use YaST (SuSE), apt-get (Debian), emerge (Gentoo), yum (Fedora) as appropriate for your system.
  7. Build and install wxGTK

    make install

    The new libraries will be installed in "/opt/wx/2.6/x86". The Makefiles used by wxPropView will look first of all in this directory for wxGTK libraries. The system wxGTK libraries will be ignored only if none are found here.
  8. You can now remove the temporary directory "wxGTK-2.6.3" and the downloaded file "wxGTK-2.6.3.tar.gz".

To build 64-bit libraries on a 64-bit system please replace "/opt/wx/2.6/x86" with "/opt/wx/2.6/x86_64" in the "mknative" script. The Makefiles for wxPropView will look in "/opt/wx/2.6/x86_64" on 64-bit systems.

Go back