euler: Gdk-CRITICAL

Ogólne pytania dotyczące systemu
phund
Posty: 58
Rejestracja: 30 marca 2007, 11:33
Lokalizacja: UTP

euler: Gdk-CRITICAL

Post autor: phund »

Szukałem jakiegoś narzędzia do obliczeń na liczbach zespolonych i w repozytorium znalazłem eulera. Zainstalowałem, ale nie daje się uruchomić. W konsoli wypisuje:

Kod: Zaznacz cały

(euler:4552): Gdk-CRITICAL **: gdk_char_width: assertion `font != NULL' failed
Naruszenie ochrony pamięci
Mam Etcha, jądro 2.6.18-4-amd64, używam KDE, proszę o pomoc :-)
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

Sprawdź czy masz zainstalowane GTK, oraz spróbuj ponownie zainstalować eulera.
phund
Posty: 58
Rejestracja: 30 marca 2007, 11:33
Lokalizacja: UTP

Post autor: phund »

libgtk1.2 oraz libgtk2.0 mam juz zainstalowane - czy nie o to chodzi?
el_carles
Junior Member
Posty: 560
Rejestracja: 02 lutego 2007, 17:32

Post autor: el_carles »

---> klik! <---
The gdk_char_width in the error message seems to indicate a problem with the fonts (Google doesn't have much info about that error). Perhaps you could try changing the fonts you use for gtk2 apps.
lub
Fixed for glibc 2.4
Fakt, tutaj niby instalują ze źródeł jednak może pomoże..

Ostatecznie trzeba pogooglic...
phund
Posty: 58
Rejestracja: 30 marca 2007, 11:33
Lokalizacja: UTP

Post autor: phund »

Próbowałem na różne sposoby zmienić czcionki, jednak bez rezultatu... sciagnałem zrodla, ale ./configure konczy się na

Kod: Zaznacz cały

checking for gtk+-2.0 >= 2.6.0...
i nawet nie przechodzi do nowej linijki... potem make wypluwa same błędy
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

phund pisze:checking for gtk+-2.0 >= 2.6.0...
phund
Posty: 58
Rejestracja: 30 marca 2007, 11:33
Lokalizacja: UTP

Post autor: phund »

no dobra, tylko libgtk2.0-0 mam w wersji 2.8.20-7
Lorenzo
Beginner
Posty: 262
Rejestracja: 15 sierpnia 2006, 16:14
Lokalizacja: Kraków

Post autor: Lorenzo »

Do kompilacji potrzebujesz plików nagłówkowych, a nie bibliotek
libgtk2.0-dev zassaj

//edit:
ewentualnie zainstaluj z experimental libc6 w wersji 2.5
phund
Posty: 58
Rejestracja: 30 marca 2007, 11:33
Lokalizacja: UTP

Post autor: phund »

Dobra, mam juz libgtk2.0-dev, libc6 w unstable juz jest w wersji 2.5, a kompilacja wysypuje mi sie na samym poczatku:

Kod: Zaznacz cały

phund@phund-debian:~/euler-1.61.0$ make
make  all-recursive
make[1]: Wejście do katalogu `/home/phund/euler-1.61.0'
Making all in src
make[2]: Wejście do katalogu `/home/phund/euler-1.61.0/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12     -Wall -O3  -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
main.c: In function ‘myclock’:
main.c:442: error: ‘CLK_TCK’ undeclared (first use in this function)
main.c:442: error: (Each undeclared identifier is reported only once
main.c:442: error: for each function it appears in.)
main.c: In function ‘file_select’:
main.c:1152: warning: not enough variable arguments to fit a sentinel
main.c: In function ‘drag_drop’:
main.c:2168: warning: pointer targets in assignment differ in signedness
main.c: In function ‘drag_data_received’:
main.c:2224: warning: pointer targets in passing argument 1 of ‘uri_list_to_gslist’ differ in signedness
make[2]: *** [main.o] Błąd 1
make[2]: Opuszczenie katalogu `/home/phund/euler-1.61.0/src'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/home/phund/euler-1.61.0'
make: *** [all] Błąd 2
Co jeszcze musze sciągnać? :-|

[ Dodano: 2007-04-25, 21:35 ]
no trudno, znalazlem extcalc, ladnie dziala
ODPOWIEDZ