LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2013, 03:45 AM   #1
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Rep: Reputation: Disabled
Installing GTK+


I'm using Ubuntu 12.04 . I am trying to install GKT+3.4.4 on my system.
I get no error when I configure it , implying that it has all the required dependencies.
But when I make it I'm getting some error.


Code :

aditya$:make
make all-recursive
make[1]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4'
Making all in po
make[2]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/po'
Making all in po-properties
make[2]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/po-properties'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/po-properties'
Making all in gdk
make[2]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
GEN gdkconfig.h
make all-recursive
make[3]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
Making all in x11
make[4]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gdk/x11'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gdk/x11'
Making all in .
make[4]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
GEN gdkconfig.h
make[4]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
Making all in tests
make[4]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gdk/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gdk/tests'
make[3]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
make[2]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gdk'
Making all in gtk
make[2]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gtk'
make[3]: Entering directory `/home/ketan/Downloads/gtk+-3.4.4/gtk'
CCLD gtk-update-icon-cache
/usr/lib/libgio-2.0.so.0: undefined reference to `g_list_copy_deep'
/usr/lib/libgio-2.0.so.0: undefined reference to `g_type_ensure'
/usr/lib/libgio-2.0.so.0: undefined reference to `g_variant_check_format_string'
/usr/lib/libgio-2.0.so.0: undefined reference to `g_spawn_check_exit_status'
collect2: error: ld returned 1 exit status
make[3]: *** [gtk-update-icon-cache] Error 1
make[3]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gtk'
make[2]: *** [gtkbuiltincache.h] Error 2
make[2]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ketan/Downloads/gtk+-3.4.4'
make: *** [all] Error 2
aditya$:

I have Glib2.34 installed in my system

Code :
aditya$kg-config --modversion glib-2.0
2.34.0
aditya$:

Can anyone Please help me in resolving this problem?. I'm badly in need of GTK+ for my project .

Thanks & Regards
Aditya
 
Old 06-05-2013, 03:57 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Hi Aditya,
Is there any special reason you want to compile this from source rather than using the compiled libgtk-3 packages?
jdk
 
Old 06-05-2013, 04:52 AM   #3
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
The reason is that I can't find GTK+3.4.4 in my repository .
Even apt-get wasn't able to find the version 3.4.4 .
 
Old 06-05-2013, 05:20 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You mean this?
Quote:
Package: libgtk-3-0
New: yes
State: installed
Automatically installed: yes
Multi-Arch: same
Version: 3.4.2-6
Priority: optional
Section: libs
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Description: GTK+ graphical user interface library
GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of
widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites.
jdk

Last edited by jdkaye; 06-05-2013 at 05:22 AM.
 
Old 06-05-2013, 05:25 AM   #5
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
A higher version your's is Version: 3.4.2-6

and how did you get that info ??
what is the command that you ran ??
 
Old 06-05-2013, 07:34 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I don't think the version should make a difference. You can also get the unstable version: Package: libgtk-3-0 (3.8.2-1 and others)
The command I used was:
Code:
aptitude show libgtk-3-0
I use Debian not Ubuntu but I suppose Ubuntu should have something similar.
jdk

Last edited by jdkaye; 06-05-2013 at 07:38 AM.
 
Old 06-05-2013, 10:00 AM   #7
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have already done that .. installing libgtk-3-0 using apt-get for ubuntu.
I think that the problem is because of some path related issues.
I feel that WebKit isn't able to find the right path of gtk.
 
Old 06-05-2013, 10:19 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
If you've installed it already then why are you compiling it? I don't understand. Installing package already compiled means you don't have to go through the configure--make--make install procedure. What exactly are you trying to do?
jdk
 
Old 06-05-2013, 10:26 AM   #9
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
The reason is that I have been given a project to develop a browser which another team has started.
They told me to use the same version of Webkit they have been using. So I'm trying to build that new one.

For WebKit I need a higher version of GTK.

I'm trying to build WebKit in Ubuntu (12.04 )
I can 'configure' it successfully but when I try to 'make' it ,it's showing some error .

Code:
ketan@ketan-HP-dx2480-MT-KL969AV:~/Downloads/WebKit-r145184$ make
GEN DerivedSources/webkit/webkitenumtypes.cpp
GEN stamp-webkitenumtypes.h
GEN DerivedSources/WebCore/JSSVGExternalResourcesRequired.h
GEN DerivedSources/WebCore/JSSVGFilterPrimitiveStandardAttributes.h
GEN DerivedSources/WebCore/JSSVGFitToViewBox.h
GEN DerivedSources/WebCore/JSSVGLangSpace.h
GEN DerivedSources/WebCore/JSSVGLocatable.h
GEN DerivedSources/WebCore/JSSVGTests.h
GEN DerivedSources/WebCore/JSSVGTransformable.h
GEN DerivedSources/WebCore/JSSVGURIReference.h
GEN generate-webkit2-forwarding-headers
GEN generate-webkit2-forwarding-headers
GEN generate-webkittestrunner-forwarding-headers
GEN generate-webkittestrunner-forwarding-headers
GEN generate-testwebkitapi-forwarding-headers
GEN generate-testwebkitapi-forwarding-headers
GEN DerivedSources/JavaScriptCore/LLIntAssembly.h
offlineasm: Parsing ./Source/JavaScriptCore/llint/LowLevelInterpreter.asm and Programs/LLIntOffsetsExtractor and creating assembly file DerivedSources/JavaScriptCore/LLIntAssembly.h.
offlineasm: No magic values found. Skipping assembly file generation.
make all-am
make[1]: Entering directory `/home/ketan/Downloads/WebKit-r145184'
CXX Source/WebKit/gtk/WebCoreSupport/libwebkitgtk_3_0_la-InspectorClientGtk.lo
CXX Source/WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitversion.lo
CXX Source/WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitwebsettings.lo
CXX DerivedSources/webkit/libwebkitgtk_3_0_la-webkitenumtypes.lo
CXX Source/WebCore/bindings/js/libWebCore_la-JSCSSValueCustom.lo
CXX Source/WebCore/bindings/js/libWebCore_la-JSDOMBinding.lo
CXX Source/WebCore/bindings/js/libWebCore_la-JSEventCustom.lo
CXX Source/WebCore/bindings/js/libWebCore_la-JSEventTargetCustom.lo
CXX Source/WebCore/bindings/js/libWebCore_la-JSExceptionBase.lo
CXX DerivedSources/WebCore/libWebCore_la-EventFactory.lo
CXX DerivedSources/WebCore/libWebCore_la-JSDOMWindow.lo
CXX DerivedSources/WebCore/libWebCore_la-JSSVGDocument.lo
CXXLD libWebCore.la
CXX Source/WebCore/bindings/js/libWebCoreSVG_la-JSSVGElementInstanceCustom.lo
CXX Source/WebCore/bindings/js/libWebCoreSVG_la-JSSVGLengthCustom.lo
CXX Source/WebCore/bindings/js/libWebCoreSVG_la-JSSVGPathSegCustom.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAltGlyphDefElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAltGlyphElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAltGlyphItemElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimateColorElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedLength.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedLengthList.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedNumberList.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedPreserveAspectRatio.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedRect.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimatedTransformList.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimateElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimateMotionElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimateTransformElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGAnimationElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGCircleElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGClipPathElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGComponentTransferFunctionElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGCursorElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGDefsElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGDescElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGElementInstance.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGElementWrapperFactory.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGEllipseElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEBlendElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEColorMatrixElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEComponentTransferElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFECompositeElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEConvolveMatrixElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEDiffuseLightingElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEDisplacementMapElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEDropShadowElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEFloodElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEGaussianBlurElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEImageElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEMergeElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEMorphologyElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFEOffsetElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFESpecularLightingElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFETileElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFETurbulenceElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGFilterElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGForeignObjectElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGGElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGGlyphRefElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGGradientElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGImageElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGLinearGradientElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGLineElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGMarkerElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGMaskElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGMissingGlyphElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPathElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPathSegArcAbs.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPathSegArcRel.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPathSegClosePath.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPatternElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPolygonElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGPolylineElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGRadialGradientElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGRectElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGStopElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGSVGElement.lo
CXX DerivedSources/WebCore/libWebCoreSVG_la-JSSVGTextElement.lo
CXXLD libWebCoreSVG.la
CXXLD libwebkitgtk-3.0.la
CXX Source/WebKit2/UIProcess/API/gtk/libwebkit2gtk_3_0_la-WebKitVersion.lo
CXXLD libwebkit2gtk-3.0.la
CXX Source/WebCore/testing/js/libWebCoreInternals_la-WebCoreTestSupport.lo
CXX DerivedSources/WebCore/libWebCoreInternals_la-JSInternals.lo
CXX DerivedSources/WebCore/libWebCoreInternals_la-JSInternalSettings.lo
CXXLD libWebCoreInternals.la
CXX Source/WebKit2/UIProcess/API/gtk/tests/Libraries_libWebKit2APITestCore_la-LoadTrackingTest.lo
CXX Source/WebKit2/UIProcess/API/gtk/tests/Libraries_libWebKit2APITestCore_la-WebKitTestServer.lo
CXX Source/WebKit2/UIProcess/API/gtk/tests/Libraries_libWebKit2APITestCore_la-WebViewTest.lo
CXXLD Libraries/libWebKit2APITestCore.la
CXXLD Libraries/libTestRunnerInjectedBundle.la
CXXLD Programs/WebKitPluginProcess
/bin/mkdir -p ./.deps/DerivedSources
CXXLD Programs/WebKitWebProcess
./.libs/libwebkit2gtk-3.0.so: undefined reference to `gdk_screen_get_monitor_workarea'
./.libs/libwebkit2gtk-3.0.so: undefined reference to `gdk_event_get_scroll_deltas'
collect2: error: ld returned 1 exit status
make[1]: *** [Programs/WebKitWebProcess] Error 1
make[1]: Leaving directory `/home/ketan/Downloads/WebKit-r145184'
make: *** [all] Error 2

Last edited by adityaharish; 06-05-2013 at 10:29 AM.
 
Old 06-05-2013, 11:38 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by adityaharish View Post
The reason is that I have been given a project to develop a browser which another team has started.
They told me to use the same version of Webkit they have been using. So I'm trying to build that new one.
As I said before I don't think the difference between 3.4.4 and 3.4.2-6 will make much difference. Why not try it and see if it works. There is also a 3.8.2-1 version of libgtk-3-0 you could use if the 3.4.2-6 doesn't work. This will save you the trouble of having to compile the library from source which is causing you problems. You probably have the wrong version of some dev packages needed for the compilation.
jdk
 
Old 06-05-2013, 11:42 AM   #11
adityaharish
LQ Newbie
 
Registered: Jun 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Fine sir I'll check it and get back to you if I have any problems.

Thanks for your time and valuable suugestions sir
 
Old 06-05-2013, 12:52 PM   #12
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
My pleasure. Let us know how you made out.
jdk
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find gtk-config on ubuntu9.04 after installing GTK Randyqiu Programming 2 11-17-2009 09:58 PM
Installing GTK User Name. Ubuntu 5 06-30-2007 07:23 PM
Installing GTK 2 aquib Linux - Desktop 7 03-02-2007 03:19 AM
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
installing gtk dlm4444 Programming 1 09-26-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration