4Pane requires the wxWidgets toolkit libraries to be installed on your system. Almost all distros will have these in package form: if so, install it and its dependencies.
If you intend to install a 4Pane binary, this is all you'll need. However if you want/need to build the 4Pane tarball you will also need either to have built the wxWidgets tarball as below, or else to have installed the appropriate wxWidgets development package which will probably be called something like wxGTK-devel, plus its dependencies.
If your distro has no wxWidgets package, or if you want a newer wx version, you can download the latest stable tarball from the wxWidgets website. Extract this in a directory of your choice; make a subdirectory in the resulting wxWidgets directory and cd into it. Then configure, make and make install.
You will probably need to have installed other packages first, such as the gtk2 development libraries (which should be called something like libgtk2.0-dev or gtk2-devel), or the gtk3 equivalents.