[Gambas-user] [Gambas Bug Tracker] Bug #1312: fix for a forgotten conditional for gtk 2 comp causes build error on my embebed devices
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri May 11 22:24:15 CEST 2018
http://gambaswiki.org/bugtracker/edit?object=BUG.1312&from=L21haW4-
PICCORO LENZ MCKAY reported a new bug.
Summary
-------
fix for a forgotten conditional for gtk 2 comp causes build error on my embebed devices
Type : Bug
Priority : Medium
Gambas version : 3.10
Product : GTK+2 component
Description
-----------
config.status: executing libtool commands
try to configure the gtk component point that gtk 2.18 are enought:
||
|| Unable to met pkg-config requirement: gtk+-2.0 >= 2.16
|| gb.gtk is disabled
|| gb.gtk.opengl is disabled
||
after install all requirements compile and got an error due a fogotten conditional as show the link on gitlab:
the gcontrol.cpp file are coded correctly but in gmainwindow.gpp have forgotten conditional:
https://gitlab.com/search?utf8=%E2%9C%93&search=gtk_widget_get_mapped&group_id=&project_id=3734462&search_code=true&repository_ref=master
gmainwindow.cpp: In member function ‘void gMainWindow::setUtility(bool)’:
gmainwindow.cpp:1432: error: ‘gtk_widget_get_mapped’ was not declared in this scope
make[3]: *** [gb_gtk_la-gmainwindow.lo] Error 1
make[3]: se sale del directorio `/debiandat/debianwork/gambas/gambas11/gambas3-3.11.0/gb.gtk/src'
SOLUTION:
https://gitlab.com/gambas/gambas/merge_requests/20
// TODO: works only if the window is not mapped!
_utility = v;
#if GTK_CHECK_VERSION(2, 20, 0)
if (gtk_widget_get_mapped(border))
#else
if (GTK_WIDGET_MAPPED(border))
#endif
{
remap = true;
gtk_widget_unmap(border);
System information
------------------
[System]
Gambas=3.9.2
OperatingSystem=Linux
Kernel=4.9.0-0.bpo.2-686-pae
Architecture=x86
Distribution=devuan 8
Desktop=MoonlightDE
Theme=QT5
Language=es_VE.UTF-8
Memory=7984M
[Libraries]
Cairo=libcairo.so.2.11400.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.8.14
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.404.0
GTK+2=libgtk-x11-2.0.so.0.2400.25
GTK+3=libgtk-3.so.0.1400.5
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.46.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.3.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xCGlY6Cqx0,guid=0bdc669303b46b83d2b4a98d59b9f71b
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt5
GDMSESSION=mlde
GDM_LANG=es_VE.utf8
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=7363
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
HOME=<home>
LANG=es_VE.UTF-8
LANGUAGE=es_VE:es
LOGNAME=<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=<home>
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1521,unix/<hostname>:/tmp/.ICE-unix/1521
SHELL=/bin/bash
SSH_AGENT_PID=1550
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CURRENT_DESKTOP=MLDE
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7
More information about the User
mailing list