LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problem Installing GTK 3 I am trying to install atk-2.6.0 get problems with Glib (https://www.linuxquestions.org/questions/ubuntu-63/problem-installing-gtk-3-i-am-trying-to-install-atk-2-6-0-get-problems-with-glib-4175456058/)

PeterUK 03-29-2013 02:26 PM

Problem Installing GTK 3 I am trying to install atk-2.6.0 get problems with Glib
 
Hi! I am trying install GTK 3 but there is lot to install when I am trying to install ATK 2.6.0 I get error its looking at GLIB 2.31.2 when I have finished to install Glib 2.34.3

How do I check if the installation when fine?

I followed this page:
http://www.linuxfromscratch.org/blfs...ral/glib2.html

I just didn't run the test.

Thanks

business_kid 03-29-2013 03:08 PM

I gather you're trying to install stuff that's newer than the distro?

That's always painful, because all the 'requirements' get bumped up to the latest revisions, and instead of what you have, and you have to install bucketloads of stuff whioch requires other bucketloads of stuff. Not only that, but you have to equip yourself to compile the thing from source, and not just run it.

I have tried that with mixed success - like I tried to get Network Manager compiled and ended up looking for (among other things) egg-dbus which project had changed name! Except I needed the name it wasn't. I went through a loop compiling wxwidgets for something for kicad. Kicad was remarkably fussy about what features wxwidgets had, and barfed if I had the wrong set. It was endless: compile wxwidgets; compile (I forget); compile kicad; compile wxwidgets, etc. I never found out the right set!

If you throw up the compile errors (let the compile crash, hit up arrow & return, and make sure you get the early errors), we can sit back and have a punt at what's stopping you, but I would get another idea fairly fast if it doesn't shoehorn in.

PeterUK 03-29-2013 04:37 PM

Quote:

Originally Posted by business_kid (Post 4921245)
I gather you're trying to install stuff that's newer than the distro?


If you throw up the compile errors (let the compile crash, hit up arrow & return, and make sure you get the early errors), we can sit back and have a punt at what's stopping you, but I would get another idea fairly fast if it doesn't shoehorn in.

I dont know about the distro I want to learn GTK 3 with C so I read you could not do it in 10.04 so now I am updating to 12.04

What do you mean by "let the compile crash, hit up arrow & return, and make sure you get the early errors"

John VV 03-29-2013 04:38 PM

this post is also connected to this one
http://www.linuxquestions.org/questi...to-4175455815/

as business_kid pointed out it is a lot of work

and a warning
Warning:
be VERY careful with glib , it is basically your operating system

a newer version can be installed but NOT in /usr !!!
it must not be seen by ubuntu 10 and must NOT be used as the version of glib that ubuntu 10 is using

now a program can use it but not the os
for gtk3 install the new version of glib to " /opt/gtk3"
so that you create a directory tree there
/opt/gtk3/bin
/opt/gtk3/lib
/opt/gtk3/include
/opt/gtk3/share
and export the locations to the dependency you are building

expect it to take a week or to the first time you do this , it gets faster the more times you do it
but at the min. it is a full weekend job

PeterUK 03-29-2013 05:07 PM

Quote:

Originally Posted by business_kid (Post 4921245)

If you throw up the compile errors (let the compile crash, hit up arrow & return, and make sure you get the early errors), we can sit back and have a punt at what's stopping you, but I would get another idea fairly fast if it doesn't shoehorn in.

I am trying to install GTK 3.6.4

which I got from http://www.gtk.org/download/linux.php

I am following like here --> https://developer.gnome.org/gtk3/sta...-building.html
But I am not compiling 3.2.0

when I type: ./configure --prefix=/opt/gtk
I get:
Code:

No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'cairo-gobject' found
No package 'gdk-pixbuf-2.0' found

Which before It was saying GLIB was not found so I did compile/install GLIB-2.34.3 which I think ended successfully
I followed this link - test
http://www.linuxfromscratch.org/blfs...ral/glib2.html
How do I know if GLIB is installed correctly?

Now Try to compile ATK

And I get:
Code:

checking for GLIB - version >= 2.31.2...
*** 'pkg-config --modversion glib-2.0' returned 2.34.3, but GLIB (2.32.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. 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:
*** GLIB 2.31.2 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

But I already installed a different GLIB, something wrong with pkg-config?

PeterUK 03-29-2013 05:20 PM

Quote:

Originally Posted by John VV (Post 4921287)
this post is also connected to this one
http://www.linuxquestions.org/questi...to-4175455815/

as business_kid pointed out it is a lot of work

and a warning
Warning:
be VERY careful with glib , it is basically your operating system

a newer version can be installed but NOT in /usr !!!
it must not be seen by ubuntu 10 and must NOT be used as the version of glib that ubuntu 10 is using

now a program can use it but not the os
for gtk3 install the new version of glib to " /opt/gtk3"
so that you create a directory tree there
/opt/gtk3/bin
/opt/gtk3/lib
/opt/gtk3/include
/opt/gtk3/share
and export the locations to the dependency you are building

expect it to take a week or to the first time you do this , it gets faster the more times you do it
but at the min. it is a full weekend job

It Ubuntu 12 but I guess its the same, right?

Yes If you look at the option it say:"./configure --prefix=/opt/gtk" So all will be in opt, right?

Now this all problem start because it said GLIB is was lower than needed to I need to upgrade, which I think I did, Is there a command which cold tell if GLIB is installed and what version?

Also how can I record the ./config, make and make installed output I cannot not go back in the terminal windows that far back, it takes ages running.

Thanks

PeterUK 03-29-2013 05:27 PM

Quote:

Originally Posted by John VV (Post 4921287)
this post is also connected to this one
http://www.linuxquestions.org/questi...to-4175455815/

as business_kid pointed out it is a lot of work

and a warning
Warning:
be VERY careful with glib , it is basically your operating system

a newer version can be installed but NOT in /usr !!!
it must not be seen by ubuntu 10 and must NOT be used as the version of glib that ubuntu 10 is using

now a program can use it but not the os
for gtk3 install the new version of glib to " /opt/gtk3"
so that you create a directory tree there
/opt/gtk3/bin
/opt/gtk3/lib
/opt/gtk3/include
/opt/gtk3/share
and export the locations to the dependency you are building

expect it to take a week or to the first time you do this , it gets faster the more times you do it
but at the min. it is a full weekend job

Actually I have another question?

Do you need to install GLIB outside de system too? Or the System will use the new GLIB?

PeterUK 03-29-2013 05:31 PM

Quote:

Originally Posted by business_kid (Post 4921245)
I gather you're trying to install stuff that's newer than the distro?

That's always painful, because all the 'requirements' get bumped up to the latest revisions, and instead of what you have, and you have to install bucketloads of stuff whioch requires other bucketloads of stuff. Not only that, but you have to equip yourself to compile the thing from source, and not just run it.

I have tried that with mixed success - like I tried to get Network Manager compiled and ended up looking for (among other things) egg-dbus which project had changed name! Except I needed the name it wasn't. I went through a loop compiling wxwidgets for something for kicad. Kicad was remarkably fussy about what features wxwidgets had, and barfed if I had the wrong set. It was endless: compile wxwidgets; compile (I forget); compile kicad; compile wxwidgets, etc. I never found out the right set!

If you throw up the compile errors (let the compile crash, hit up arrow & return, and make sure you get the early errors), we can sit back and have a punt at what's stopping you, but I would get another idea fairly fast if it doesn't shoehorn in.

I Also looked at the page and said you could run a make check But I didnt look for those packet it suggests to install(shared-mime-info-1.1 and desktop-file-utils-0.21,).It say run time dependency which I dont know what are they.

Thanks

Here is the result of the check.

Quote:

Making check in .
make[1]: Entering directory `/home//GTK3/glib-2.34.3'
make check-local
make[2]: Entering directory `/home//GTK3/glib-2.34.3'
make[2]: Leaving directory `/home//GTK3/glib-2.34.3'
make[1]: Leaving directory `/home//GTK3/glib-2.34.3'
Making check in m4macros
make[1]: Entering directory `/home//GTK3/glib-2.34.3/m4macros'
make check-local
make[2]: Entering directory `/home//GTK3/glib-2.34.3/m4macros'
make[2]: Leaving directory `/home//GTK3/glib-2.34.3/m4macros'
make[1]: Leaving directory `/home//GTK3/glib-2.34.3/m4macros'
Making check in glib
make[1]: Entering directory `/home//GTK3/glib-2.34.3/glib'
make check-recursive
make[2]: Entering directory `/home//GTK3/glib-2.34.3/glib'
Making check in libcharset
make[3]: Entering directory `/home//GTK3/glib-2.34.3/glib/libcharset'
make check-local
make[4]: Entering directory `/home//GTK3/glib-2.34.3/glib/libcharset'
make[4]: Leaving directory `/home//GTK3/glib-2.34.3/glib/libcharset'
make[3]: Leaving directory `/home//GTK3/glib-2.34.3/glib/libcharset'
Making check in update-pcre
make[3]: Entering directory `/home//GTK3/glib-2.34.3/glib/update-pcre'
make check-local
make[4]: Entering directory `/home//GTK3/glib-2.34.3/glib/update-pcre'
make[4]: Leaving directory `/home//GTK3/glib-2.34.3/glib/update-pcre'
make[3]: Leaving directory `/home//GTK3/glib-2.34.3/glib/update-pcre'
Making check in .
make[3]: Entering directory `/home//GTK3/glib-2.34.3/glib'
make check-TESTS check-local
make[4]: Entering directory `/home//GTK3/glib-2.34.3/glib'
PASS: abicheck.sh
=============
1 test passed
=============
make[4]: Leaving directory `/home//GTK3/glib-2.34.3/glib'
make[3]: Leaving directory `/home//GTK3/glib-2.34.3/glib'
Making check in tests
make[3]: Entering directory `/home//GTK3/glib-2.34.3/glib/tests'
../../glib/gtester -k --quiet -o tmpsample.xml --test-arg=--gtester-selftest ../../glib/gtester
xmllint --version 2>/dev/null; test "$?" != 0 || xmllint --noout tmpsample.xml
make check-local
make[4]: Entering directory `/home//GTK3/glib-2.34.3/glib/tests'
TEST: testing... (pid=8439)
/random-generator/rand-1: OK
/random-generator/rand-2: OK
/random-generator/random-conversions: OK
/misc/assertions: OK
/misc/test-data: OK
/misc/primetoul: OK
/forking/fail assertion: OK
/forking/patterns: OK
/misc/fatal-log-handler: OK
/misc/expected-messages: OK
PASS: testing
TEST: option-context... (pid=8476)
/option/help/options: OK
/option/help/no-options: OK
/option/basic: OK
/option/group/captions: Cannot set locale to de_DE, skipping
OK
/option/group/main: OK
/option/group/error-hook: OK
/option/group/parse: OK
/option/restoration/int: OK
/option/restoration/string: OK
/option/restoration/boolean: OK
/option/arg/repetition/int: OK
/option/arg/repetition/string: OK
/option/arg/repetition/filename: OK
/option/arg/repetition/double: OK
/option/arg/repetition/locale: OK
/option/arg/repetition/int64: OK
/option/arg/array/string: OK
/option/arg/callback/string: OK
/option/arg/callback/count: OK
/option/arg/callback/optional1: OK
/option/arg/callback/optional2: OK
/option/arg/callback/optional3: OK
/option/arg/callback/optional4: OK
/option/arg/callback/optional5: OK
/option/arg/callback/optional6: OK
/option/arg/callback/optional7: OK
/option/arg/callback/optional8: OK
/option/arg/remaining/callback: OK
/option/arg/remaining/callback-false: OK
/option/arg/ignore/long: OK
/option/arg/ignore/short: OK
/option/arg/ignore/arg: OK
/option/context/add: OK
/option/context/empty2: OK
/option/context/empty3: OK
/option/arg/rest/non-option: OK
/option/arg/rest/separator1: OK
/option/arg/rest/separator2: OK
/option/arg/rest/separator3: OK
/option/arg/rest/separator4: OK
/option/arg/rest/separator5: OK
/option/arg/remaining/non-option: OK
/option/arg/remaining/separator: OK
/option/arg/remaining/array: OK
/option/arg/reverse-string: OK
/option/arg/optional-int: OK
/option/bug/unknown-short: OK
/option/bug/lonely-dash: OK
/option/bug/missing-arg: OK
/option/bug/dash-arg: OK
PASS: option-context
TEST: option-argv0... (pid=8506)
/option/argv0: OK
PASS: option-argv0
TEST: keyfile... (pid=8520)
/keyfile/line-ends: OK
/keyfile/whitespace: OK
/keyfile/comments: OK
/keyfile/listing: OK
/keyfile/string: OK
/keyfile/boolean: OK
/keyfile/number: OK
/keyfile/locale-string: OK
/keyfile/lists: OK
/keyfile/lists-set-get: OK
/keyfile/group-remove: OK
/keyfile/key-remove: OK
/keyfile/groups: OK
/keyfile/duplicate-keys: OK
/keyfile/duplicate-groups: OK
/keyfile/duplicate-groups2: OK
/keyfile/group-names: OK
/keyfile/key-names: OK
/keyfile/reload: OK
/keyfile/int64: OK
/keyfile/load: OK
/keyfile/load-fail: OK
/keyfile/non-utf8: OK
/keyfile/page-boundary: OK
/keyfile/ref: OK
/keyfile/replace-value: OK
/keyfile/list-separator: OK
/keyfile/empty-string: OK
/keyfile/limbo: OK
/keyfile/utf8: OK
/keyfile/roundtrip: OK
PASS: keyfile
TEST: fileutils... (pid=8534)
/fileutils/build-path: OK
/fileutils/build-pathv: OK
/fileutils/build-filename: OK
/fileutils/build-filenamev: OK
/fileutils/mkdir-with-parents: OK
/fileutils/format-size-for-display: OK
/fileutils/errors: OK
/fileutils/basename: OK
/fileutils/dir-make-tmp: OK
/fileutils/file-open-tmp: OK
/fileutils/mkstemp: OK
/fileutils/mkdtemp: OK
/fileutils/set-contents: OK
PASS: fileutils
TEST: test-printf... (pid=8548)
/snprintf/retval-and-trunc: OK
/snprintf/%d: OK
/snprintf/%o: OK
/snprintf/%u: OK
/snprintf/%x: OK
/snprintf/%X: OK
/snprintf/%f: OK
/snprintf/%e: OK
/snprintf/%c: OK
/snprintf/%s: OK
/snprintf/%n: OK
/snprintf/test-percent: OK
/snprintf/test-positional-params: OK
/snprintf/test-64bit: OK
/printf/test-percent: OK
/printf/test-positional-params: OK
/printf/test-64bit: OK
/sprintf/test-positional-params: OK
/sprintf/upper-bound: OK
PASS: test-printf
TEST: protocol... (pid=8574)
/glib/testing/protocol/debug: OK
/glib/testing/protocol/info: OK
/glib/testing/protocol/message: OK
/glib/testing/protocol/warning: OK
/glib/testing/protocol/critical: OK
/glib/testing/protocol/error: OK
/glib/testing/protocol/gtest-message: OK
/glib/testing/protocol/test-message: OK
/glib/testing/protocol/test-error: OK
PASS: protocol
TEST: rand... (pid=8648)
/rand/test-rand: OK
/rand/double-range: OK
PASS: rand
TEST: strfuncs... (pid=8662)
/strfuncs/test-is-to-digit: OK
/strfuncs/strdup: OK
/strfuncs/strndup: OK
/strfuncs/strdup-printf: OK
/strfuncs/strdupv: OK
/strfuncs/strnfill: OK
/strfuncs/strconcat: OK
/strfuncs/strjoin: OK
/strfuncs/strcanon: OK
/strfuncs/strcompress-strescape: OK
/strfuncs/ascii-strcasecmp: OK
/strfuncs/strchug: OK
/strfuncs/strchomp: OK
/strfuncs/strreverse: OK
/strfuncs/strncasecmp: OK
/strfuncs/strstr: OK
/strfuncs/has-prefix: OK
/strfuncs/has-suffix: OK
/strfuncs/strsplit: OK
/strfuncs/strsplit-set: OK
/strfuncs/strv-length: OK
/strfuncs/strtod: OK
/strfuncs/strtoull-strtoll: OK
/strfuncs/bounds-check: OK
/strfuncs/strip-context: OK
/strfuncs/strerror: OK
/strfuncs/strsignal: OK
/strfuncs/strup: OK
PASS: strfuncs
TEST: string... (pid=8676)
/string/test-string-chunks: OK
/string/test-string-chunk-insert: OK
/string/test-string-new: OK
/string/test-string-printf: OK
/string/test-string-assign: OK
/string/test-string-append-c: OK
/string/test-string-append: OK
/string/test-string-prepend-c: OK
/string/test-string-prepend: OK
/string/test-string-insert: OK
/string/test-string-insert-unichar: OK
/string/test-string-equal: OK
/string/test-string-truncate: OK
/string/test-string-overwrite: OK
/string/test-string-nul-handling: OK
/string/test-string-up-down: OK
/string/test-string-set-size: OK
/string/test-string-to-bytes: OK
PASS: string
TEST: markup-parse... (pid=8690)
/markup/parse/fail-45.gmarkup: OK
/markup/parse/fail-9.gmarkup: OK
/markup/parse/fail-40.gmarkup: OK
/markup/parse/fail-31.gmarkup: **
ERROR:markup-parse.c:268:test_parse: assertion failed (string->str == expected): ("ELEMENT 'foo'\nERROR Error on line 1: Failed to parse '34592348345343453453455645765736575865767', which should have been a digit inside a character reference (ê for example) \342\200\224 perhaps the digit is too large\n" == "ELEMENT 'foo'\nERROR Error on line 1: Failed to parse '34592348345343453453455645765736575865767', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large\n")
FAIL
GTester: last random seed: R02Sdc8555283eb8ad46b0c316ee952e57b0
/bin/bash: line 1: 8425 Terminated G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose testing option-context option-argv0 keyfile fileutils test-printf protocol rand strfuncs string markup-parse markup-collect markup-escape markup-subparser array-test bytes hostutils gvariant mem-overflow utf8-performance utils regex base64 sequence scannerapi shell collate utf8-pointer utf8-validate utf8-misc unicode checksum hmac hash cache date node convert list slist queue tree uri dir pattern logging error bookmarkfile gdatetime timeout environment mappedfile dataset sort atomic bitlock mutex rec-mutex rwlock once cond thread slice hook mainloop private asyncqueue 1bit-mutex 642026 642026-ec 1bit-emufutex spawn-multithreaded spawn-singlethread gwakeup gwakeup-fallback unix-multithreaded unix unix-nothreads include
make[4]: *** [test-nonrecursive] Error 143
make[4]: Leaving directory `/home//GTK3/glib-2.34.3/glib/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home//GTK3/glib-2.34.3/glib/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home//GTK3/glib-2.34.3/glib'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home//GTK3/glib-2.34.3/glib'
make: *** [check-recursive] Error 1

business_kid 03-30-2013 03:53 AM

That sort of error comes up with gcc version problems, and probably glib problems.

If you have to ask us, you are probably going down in flames. A high level of understanding and the ability to grok code is usually required. The guys who achieve what you are attempting are paid to do it all day, or have no friends and no life. I get the feeling you're not in either group.

PeterUK 03-30-2013 01:54 PM

Quote:

Originally Posted by business_kid (Post 4921490)
That sort of error comes up with gcc version problems, and probably glib problems.

If you have to ask us, you are probably going down in flames. A high level of understanding and the ability to grok code is usually required. The guys who achieve what you are attempting are paid to do it all day, or have no friends and no life. I get the feeling you're not in either group.

If you put it in that way I will have to say I am nop ;-). But I still went to bed at 6 am dealing with this and my new Slackware OS ^-^.

But I have to say it has been a good exercises it lead to watch a lecture to Kernels Modules (Very interesting) and got me thinking in those "make check" scripts, I have been reviewing C and C++ from only text editor and making my own make files and it will be nice to learn more about code testing like those make check do.

business_kid 03-31-2013 11:29 AM

I'm sorry, that was insensitive. I'm a bit too outspoken to be a good diplomat. But then my pc told me the other day that 'Diplomacy is the art of saying "nice doggy" until you can find a rock.'

I take it I am correct that you're updating beyond your distro. Put up the compile errors and we'll have a punt at them. Everyone has the right to do this to themselves once anyhow without getting branded:-). And if you have slackware, instead of running make install, install this way

make DESTDIR=/tmp/somewhere install

That installs under /tmp/somewhere. cd to /tmp/somewhere, and run

makepkg ../package_name.txz

Then you can run installpkg and removepkg, even upgradepkg

TobiSGD 03-31-2013 11:54 AM

Quote:

Originally Posted by PeterUK (Post 4921743)
But I still went to bed at 6 am dealing with this and my new Slackware OS ^-^.

If you are now on Slackware it is as simple as upgrading your system to -current, it already comes with GTK 3.6. As switching the OS seems to be an option for you Fedora 18 may also be worth a try, it should also have GTK 3.6.


All times are GMT -5. The time now is 04:54 AM.