Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » IDE compilation error 'GdkDrawingContext' does not name a type
IDE compilation error 'GdkDrawingContext' does not name a type [message #53224] Tue, 24 March 2020 12:36 Go to next message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Hi

I am compiling IDE on freshly installed on lubuntu 16.04
upp 14178 and upp 14185

steps used
apt install libgtk-3-dev
sudo bash buildrequires.debian
./domake

I get following error

--------------
mkdir -p _out/RichText/GCCMK-Gcc-Gui-Linux-Posix-Shared/
(date '+#define bmYEAR %y%n#define bmMONTH %-m%n#define bmDAY %-d%n#define bmHOUR %-H%n#define bmMINUTE %-M%n#define bmSECOND %-S%n#define bmTIME Time(%y, %-m, %-d, %-H, %-M, %-S)' && \
echo '#define bmMACHINE "'`hostname`'"' && \
echo '#define bmUSER "'`whoami`'"') > build_info.h
echo '#define bmSVN_REVISION "14178"' >> build_info.h
echo '#define bmSVN_URL "svn://www.ultimatepp.org/upp/trunk/uppsrc/ide"' >> build_info.h
g++ -c -x c++ -O3 -ffunction-sections -fdata-sections -std=c++14 -I./ `pkg-config --cflags freetype2` `pkg-config --cflags x11` `pkg-config --cflags fontconfig` `pkg-config --cflags xcb` `pkg-config --cflags expat` `pkg-config --cflags libpng` `pkg-config --cflags xinerama` `pkg-config --cflags xrender` `pkg-config --cflags xft` `pkg-config --cflags xdmcp` `pkg-config --cflags xext` `pkg-config --cflags gtk+-3.0` `pkg-config --cflags libnotify` -DflagGUI -DflagGCC -DflagSHARED -DflagPOSIX -DflagLINUX -DflagMAIN ide/BaseDlg.cpp -o _out/ide/GCCMK-Gcc-Gui-Linux-Main-Posix-Shared/BaseDlg.o
In file included from ./CtrlCore/CtrlCore.h:1655:0,
from ./CtrlLib/CtrlLib.h:4,
from ./ide/Common/Common.h:5,
from ide/ide.h:4,
from ide/BaseDlg.cpp:1:
./CtrlCore/GtkAfter.h:3:2: error: 'GdkDrawingContext' does not name a type
GdkDrawingContext *ctx;

^
Makefile:587: recipe for target '_out/ide/GCCMK-Gcc-Gui-Linux-Main-Posix-Shared/BaseDlg.o' failed
make: *** [_out/ide/GCCMK-Gcc-Gui-Linux-Main-Posix-Shared/BaseDlg.o] Error 1


--------------


Warm Regards

Deepak
Re: IDE compilation error 'GdkDrawingContext' does not name a type [message #53238 is a reply to message #53224] Tue, 24 March 2020 16:40 Go to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
Original from file "CtrlCore/GtkAfter.h"

class ViewDraw : public SystemDraw {
#if GTK_CHECK_VERSION(3, 10, 0)
	GdkDrawingContext *ctx;
#endif


After searching in /usr/include/gtk-3.0 folder for GdkDrawingContext I could not find it.
I thought GtkDrawingArea may be the right thing.

After replacement as follows I could compile and run theide
Seems working fine. Request Mirek to review.

-- GdkDrawingContext *ctx;

++ GtkDrawingArea *ctx;


Warm Regards

Deepak
Previous Topic: (pls delete this)
Next Topic: Linux U++ libraries
Goto Forum:
  


Current Time: Thu Mar 28 19:11:53 CET 2024

Total time taken to generate the page: 0.02135 seconds