I get the following error when compiling wxGTK: In file included from lib/wx/include/gtk2u-2.4/wx/setup.h:1132, from include/wx/platform.h:62, from include/wx/defs.h:23, from include/wx/wxprec.h:13, from src/generic/accel.cpp:24: include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE" In file included from include/wx/platform.h:65, from include/wx/defs.h:23, from include/wx/wxprec.h:13, from src/generic/accel.cpp:24: include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE" In file included from lib/wx/include/gtk2u-2.4/wx/setup.h:1132, from include/wx/platform.h:62, from include/wx/defs.h:23, from include/wx/wxprec.h:13, from src/generic/busyinfo.cpp:13: include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE" In file included from include/wx/platform.h:65, from include/wx/defs.h:23, from include/wx/wxprec.h:13, from src/generic/busyinfo.cpp:13: include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE" make: *** [accel.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [busyinfo.o] Error 1 !!! ERROR: x11-libs/wxGTK-2.4.0 failed. !!! Function src_compile, Line 78, Exitcode 2 !!! make failed
for now just `env USE="-odbc" emerge wxGTK`
you are attempting to compile wxGTK with the gtk2 eabled in USE. This is experimental and as noted by wxGTK here, odbc support doesn't work with a gtk2-linked wxGTK (unicode support is only enabled with gtk2). You either need to remove gtk2 or odbc from your USE flags. I don't want to remove the gtk2 use flag code from the ebuild as it's good for people to test. Currently the gtk2 code in many programs is still experimental and this is noted in use.desc... I'd suggest not linking against gtk2 as I know the odbc support works fine without.
cant we get a small code workaround ? a check to see if odbc and gtk2 are enabled, and if so, dont enable odbc support ? (or something similar)
I've removed the gtk2 use flag in my make.conf for this ebuild. Thanks for your help!
I have one other question. My system has both versions of GTK installed and ebuilds that require either pick wich one to use. Why doesn't the wxGTK ebuild pick the gtk1 library to build against instead of using the gtk2?