-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: ‘gtk_combo_box_get_active_text’ was not declared in this scope #41
Comments
@jcbollinger Possible fix d210ca6 |
You judge correctly that I am compiling with CCP4SRS. I'm using the provided Autotools build system, and configuring like so:
|
Also, I'm no GTK expert, and I haven't gotten a successful build with which to test, but it looks to me like this might be the appropriate GTK 3 way to get the combobox text:
At minimum, this does compile. |
@jcbollinger #41 (comment) You will also need to specify boost-lib-dir
I think. |
Fixed in 1.0.03 |
I'm trying to build Coot 1 on CentOS Stream 8, using (mostly) the system libraries. In particular, I am using the system's GTK+ 3, version 3.22.30. Coot's
configure
script finds GTK3 just fine, and it puts what appears to be the correct-I
flag for that into the compilation command:libtool: compile: g++ -DPACKAGE_NAME=\"coot\" -DPACKAGE_TARNAME=\"coot\" -DPACKAGE_VERSION=\"1\" "-DPACKAGE_STRING=\"coot 1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"coot\" -DVERSION=\"1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_OPENMP=1 -DHAVE_CXX11=1 -DHAVE_CXX_THREAD=1 -DHAVE_PYTHON=\"3.6\" "-DHAVE_BOOST=/**/" "-DHAVE_BOOST_PYTHON=/**/" -I. -DUSE_PYTHON -I.. -I/usr/include -I/usr/include/goocanvas-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pthread -I/opt/ccp4/ccp4-7.1/include -DCLIPPER_HAS_TOP8000 -DHAVE_CCP4SRS -I/opt/ccp4/ccp4-7.1/include -I/opt/ccp4/ccp4-7.1/include -DMMDB_HAS_LINK_DISTANCE -DMAKE_ENHANCED_LIGAND_TOOLS -I/usr/include/rdkit -DRDKIT_HAS_CAIRO_SUPPORT -I/usr/include -I/usr/include/python3.6m -DPKGDATADIR=\"/usr/local/share/coot\" -g -O2 -Wall -Wno-unused -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual -std=c++11 -MT lbg-search.lo -MD -MP -MF .deps/lbg-search.Tpo -c lbg-search.cc -fPIC -DPIC -o .libs/lbg-search.o
Nevertheless, the build fails:
Function
gtk_combo_box_get_active_text()
has been deprecated since GTK+ 2.24, but apparently it has now been removed altogether, at least from some builds. The GTK 2 docs provide some recommendations for replacements.The text was updated successfully, but these errors were encountered: