Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th January 2010, 11:32 PM
haidan Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
linuxfedorafirefox
opencpn GTK+ pango atk need help installing

hey there I've been trying to install opencpn on fedora 12 and just keep running into dead ends.
I untared opencpn-1.3.6.tar.gz and ran ./configure and was told I needed wxWidgets so i got that and untarred it ran ./configure and got this

.....
checking for jpeg_read_header in -ljpeg... yes
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
checking for expat.h... no
configure: WARNING: system expat library not found, will use built-in instead
checking for mspack.h... no
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

so I got GTK+ untarred and configured it and got this

....checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) were not met:

No package 'atk' found
No package 'pango' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

So I untarred and configured pango and atk ran make and make install no problems with that but when I try and install either of the first two I get those same messages. So i figure i need to make GTK+ aware of pango and atk's config files somehow I'm very new to this and don't really know how to go any further than ./configure, make, make install
locate pkg-config tells me:
[root@Tartigradius gtk+-2.18.0]# locate pkg-config
/usr/bin/i686-pc-mingw32-pkg-config
/usr/bin/mingw32-pkg-config
/usr/bin/pkg-config
/usr/share/man/man1/pkg-config.1.gz

and is similar for the other ones too so .... I need someone to point me in the right direction. I ran into the same problem with GTK+ when trying to install http://sourceforge.net/projects/hfterm/
Reply With Quote
  #2  
Old 14th January 2010, 11:48 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfedorafirefox
Code:
# yum install gtk+-devel gtk2-devel atk-devel pango-devel
All the packages you need are in the Fedora repositories.
Reply With Quote
  #3  
Old 15th January 2010, 05:56 PM
haidan Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
linuxfedorafirefox
wxWidgets bug

thanks I didn't realise i needed the devel files. Now I have a another problem with it. It appears there is some bug with wxWidget and gtk and there's a fix for it here
https://bugs.launchpad.net/ubuntu/+s....8/+bug/423845
here's the print out:
[root@Tartigradius wxWidgets-2.8.10]# make
/home/tartigrade/wxWidgets-2.8.10/bk-deps g++ -c -o coredll_gtk_gsockgtk.o -I./.pch/wxprec_coredll -D__WXGTK__ -I./src/tiff -I./src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/tartigrade/wxWidgets-2.8.10/lib/wx/include/gtk2-ansi-release-2.8 -I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/gtk/gsockgtk.cpp
In file included from ./src/gtk/gsockgtk.cpp:21:
./include/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from ./include/wx/gsocket.h:179,
from ./src/gtk/gsockgtk.cpp:21:
./include/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
./src/gtk/gsockgtk.cpp: In function ‘void _GSocket_GDK_Input(void*, gint, GdkInputCondition)’:
./src/gtk/gsockgtk.cpp:34: error: ‘struct _GSocket’ has no member named ‘Detected_Read’
./src/gtk/gsockgtk.cpp:36: error: ‘struct _GSocket’ has no member named ‘Detected_Write’
./src/gtk/gsockgtk.cpp: In member function ‘virtual bool GSocketGUIFunctionsTableConcrete::Init_Socket(GSoc ket*)’:
./src/gtk/gsockgtk.cpp:56: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:57: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete:estroy_Socket(G Socket*)’:
./src/gtk/gsockgtk.cpp:67: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Install_Callback (GSocket*, GSocketEvent)’:
./src/gtk/gsockgtk.cpp:72: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:75: error: ‘struct _GSocket’ has no member named ‘m_fd’
./src/gtk/gsockgtk.cpp:83: error: ‘struct _GSocket’ has no member named ‘m_server’
./src/gtk/gsockgtk.cpp:90: error: ‘struct _GSocket’ has no member named ‘m_fd’
./src/gtk/gsockgtk.cpp: In member function ‘virtual void GSocketGUIFunctionsTableConcrete::Uninstall_Callba ck(GSocket*, GSocketEvent)’:
./src/gtk/gsockgtk.cpp:98: error: ‘struct _GSocket’ has no member named ‘m_gui_dependent’
./src/gtk/gsockgtk.cpp:108: error: ‘struct _GSocket’ has no member named ‘m_server’
make: *** [coredll_gtk_gsockgtk.o] Error 1

but no instrutions on what to do with it
here it is
--- wxPython-src-2.8.10.1/src/gtk/gsockgtk.cpp.orig 2009-07-25 15:38:12.000000000 -0500
+++ wxPython-src-2.8.10.1/src/gtk/gsockgtk.cpp 2009-07-25 15:39:10.000000000 -0500
@@ -15,8 +15,13 @@
#include <stdlib.h>
#include <stdio.h>

+// newer versions of glib define its own GSocket but we unfortunately use this
+// // name in our own (semi-)public header and so can't change it -- rename glib
+// // one instead
+#define GSocket GlibGSocket
#include <gdk/gdk.h>
#include <glib.h>
+#undef GSocket

#include "wx/gsocket.h"
#include "wx/unix/gsockunx.h"
Reply With Quote
  #4  
Old 15th January 2010, 07:54 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfedorafirefox
Hello, the "fix" is in the form of a patch file. I'm not really familiar yet with the correct way to go about patching the source code with the patch code file, but I'm sure if you Google or search on the forum you should get some good leads on doing that.

But, basically, if I understand this correctly, the lines in the patch file that begin with a plus sign "+", are lines that need to be added to the original source code file, which in this case is the file gsockgtk.cpp in the wxPython source code. If you add those lines manually, don't include the leading +. The lines above and below the patched (added) lines in the patch file should give you reference to where in the source code file you need to do the editing.

Maybe someone else with more experience can give you better guidence with this. If you decide to try the manual edit, do make a backup copy of the gsocktgtk.cpp file first.

Errmm.... just do 'man patch'. It looks like a piece of cake using the patch command.

Last edited by PabloTwo; 15th January 2010 at 07:58 PM.
Reply With Quote
  #5  
Old 16th January 2010, 12:57 AM
haidan Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
linuxfedorafirefox
Thanks, I not familar with a patch command here's what i could gather what to do from the man I down loaded and..

[root@Tartigradius wxWidgets-2.8.10]# patch '/home/tartigrade/wxWidgets-2.8.10/src/gtk/gsockgtk.cpp' '/home/tartigrade/wxWidgets-2.8.10/gsockgtk.cpp?rev=61009'
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
[root@Tartigradius wxWidgets-2.8.10]#

Does this mean that the patch was not applicable or did I not do it right?
Reply With Quote
  #6  
Old 16th January 2010, 01:49 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfedorafirefox
Quote:
Does this mean that the patch was not applicable or did I not do it right?
I don't know. I wish I could be of more assistance at this point.
Reply With Quote
Reply

Tags
atk, gtk, installing, opencpn, pango

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
uninstalled pango, need help!!! tim.pirate Using Fedora 4 20th August 2008 02:46 PM


Current GMT-time: 12:30 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat