We have FC1 installed system wide and it's not possible to change this fundamentally.
I wanted to install codeblocks for some of our developers to try out.
built gtk+ 2.6.9 to separate location (and it's dependencies).
built wx-widgets 2.4.2 against these with --enable-gtk2 option, the wxgtk patch, and the contribs
LD_LIBRARY_PATH and PATH is set to accomodate the locations of these two libraries.
Tried to build codeblocks and got these errors:
Linking executable devel/codeblocks.exe...
g++ -Ldevel -Lsdk/tinyxml -L/usr/lib -o devel/codeblocks.exe .objs/src/app.o .objs/src/dlgabout.o .objs/src/dlgaboutplugin.o .objs/src/environmentsettingsdlg.o .objs/src/impexpconfig.o .objs/src/main.o .objs/src/prefix.o .objs/src/printdlg.o .objs/src/startherepage.o `wx-config --libs` -lcodeblocks -lwx_gtk2_xrc-2.4 -lwx_gtk2_stc-2.4 -mwindows
devel/libcodeblocks.so: undefined reference to `wxWindow::IsOwnGtkWindow(_GdkWindow*)'
collect2: ld returned 1 exit status
make: *** [devel/codeblocks.exe] Error 1
DMG