WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Could not run GTK+ test program, checking why...  (Read 15472 times)

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Could not run GTK+ test program, checking why...
« on: April 19, 2011, 12:22:06 PM »
I want to install wxGTK, but can't ./configure

$tar zxvf wxGTK-2.8.11.tar.gz
 $cd wxGTK-2.8.11
 $./configure --enable-uncode

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...

 $sudo make && make install
 $sudo ldconfig


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/local/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.




GTK+ is gtk-sharp ????

Title:      gtk-sharp-dev.tcz
Description:   Gtk# is a .NET language binding for the GTK+ toolkit, development files.
Version:   2.12.10
Author:      Mike Kestner
Original-site:   http://gtk-sharp.sourceforge.net
Copying-policy:   LGPL
Size:      256.0K
Extension_by:   Arslan S.
Comments:   This extension is PPI compatible.
Change-log:   2010/05/10 Original 2.12.10
Current:   2010/12/29 Rebuilt

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Could not run GTK+ test program, checking why...
« Reply #1 on: April 19, 2011, 01:12:47 PM »
Did you load the appropriate *dev extensions?

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: Could not run GTK+ test program, checking why...
« Reply #2 on: April 19, 2011, 08:20:55 PM »
Did you load the appropriate *dev extensions?

I had loaded a lot of gtk* extensions. but
-----------------
 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.
----------------------


the gtk+-2.0.pc in TC , is named /gtk-sharp-2.0.pc

all "+" is changed to "sharp" , It's never mind ?


usr/local/lib/libatksharpglue-2.la
usr/local/lib/libgdksharpglue-2.la
usr/local/lib/libgladesharpglue-2.la
usr/local/lib/libglibsharpglue-2.la
usr/local/lib/libgtksharpglue-2.la
usr/local/lib/libpangosharpglue-2.la
usr/local/lib/pkgconfig/gapi-2.0.pc
usr/local/lib/pkgconfig/glade-sharp-2.0.pc
usr/local/lib/pkgconfig/glib-sharp-2.0.pc
usr/local/lib/pkgconfig/gtk-dotnet-2.0.pc
usr/local/lib/pkgconfig/gtk-sharp-2.0.pc
usr/local/share/gapi-2.0/atk-api.xml
usr/local/share/gapi-2.0/gdk-api.xml
usr/local/share/gapi-2.0/glade-api.xml
usr/local/share/gapi-2.0/glib-api.xml
usr/local/share/gapi-2.0/gtk-api.xml
usr/local/share/gapi-2.0/pango-api.xml

usr/local/bin/gapi2-codegen
usr/local/bin/gapi2-fixup
usr/local/bin/gapi2-parser
usr/local/lib/gtk-sharp-2.0/gapi-fixup.exe
usr/local/lib/gtk-sharp-2.0/gapi-parser.exe
usr/local/lib/gtk-sharp-2.0/gapi2xml.pl
usr/local/lib/gtk-sharp-2.0/gapi_codegen.exe
usr/local/lib/gtk-sharp-2.0/gapi_pp.pl
usr/local/lib/libatksharpglue-2.so
usr/local/lib/libgdksharpglue-2.so
usr/local/lib/libgladesharpglue-2.so
usr/local/lib/libglibsharpglue-2.so
usr/local/lib/libgtksharpglue-2.so
usr/local/lib/libpangosharpglue-2.so

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: Could not run GTK+ test program, checking why...
« Reply #3 on: April 19, 2011, 09:17:49 PM »
I find this  ;)

This is a gtk-2.12.11 extension that is ready for testing.
It requires the expat-2.01.tcel, glib-2.16.4.tcel, libxml2-2.6.32.tcel,
graphics-libs-1.tcel, fontconfig-2.4.2.tcel, and some fonts.
Dejavu-fonts-ttf-2.25 work nicely as fonts.  There is no setup
required beyond loading these extensions.  This extension installs
into /usr/local.  An Xorg environment would be needed to build packages
with the gtk+-2.12.11-devs.tcel extension.
I will put the locale files in a seperate extension instead of removing
them before submitting.


http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/src/gtk%2b-2.12.11-testing/


 ;D

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: Could not run GTK+ test program, checking why...
« Reply #4 on: April 19, 2011, 10:32:03 PM »
I loaded gtk2-dev.tcz

usr/local/lib/pkgconfig/gail.pc
usr/local/lib/pkgconfig/gdk-2.0.pc
usr/local/lib/pkgconfig/gdk-x11-2.0.pc
usr/local/lib/pkgconfig/gtk+-2.0.pc
usr/local/lib/pkgconfig/gtk+-unix-print-2.0.pc
usr/local/lib/pkgconfig/gtk+-x11-2.0.pc

This time is

checking for GTK+ version...
checking for pkg-config... /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.3, but GTK+ (2.24.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
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.
                           
tc@box:~/wxGTK-2.8.11$


How can I do????

tc@box:~/wxGTK-2.8.11$ pkg-config gtk+-2.0 --libs
-pthread -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng12 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 
tc@box:~/wxGTK-2.8.11$



Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Could not run GTK+ test program, checking why...
« Reply #5 on: April 19, 2011, 11:22:27 PM »
It looks like you have the most recent version of gtk2-dev, but an older version of gtk2 - you can use apps audit to check that you have the most recent version of your extensions (use the "update" button).

Offline quanpin

  • Newbie
  • *
  • Posts: 28
Re: Could not run GTK+ test program, checking why...
« Reply #6 on: April 20, 2011, 10:12:55 AM »
It looks like you have the most recent version of gtk2-dev, but an older version of gtk2 - you can use apps audit to check that you have the most recent version of your extensions (use the "update" button).

Thank you very much!

I downloaded all gtk2-dev.tcz and dep tcz file , copy to /tce/optional , then It's ok!

then make and make install,

tc@box:/mnt/hda8/wxGTK-2.8.11$ sudo ldconfig
ldconfig: /usr/local/lib/libwx_base-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_base_net-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_core-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_adv-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_html-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_qa-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_base_xml-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_xrc-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_aui-2.8.so.0 is not a symlink
ldconfig: /usr/local/lib/libwx_gtk2_richtext-2.8.so.0 is not a symlink
tc@box:/mnt/hda8/wxGTK-2.8.11$

Is't ok?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Could not run GTK+ test program, checking why...
« Reply #7 on: April 20, 2011, 08:16:46 PM »
I removed the 2.12.11 testing directory, obviously an old leftover.