Kompilacja xautomation 1.06 - błąd polecenia "make"

Tylko tematy nie mieszczące się powyżej.
haigrek
Piegowaty Guziec
Piegowaty Guziec
Posty: 2
Rejestracja: 23 maja 2009, 13:34
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Xfce
Architektura: x86

Kompilacja xautomation 1.06 - błąd polecenia "make"

Post autor: haigrek »

Witam.
Mam problem ze skompilowaniem paczki z najnowszym xautomation 1.06.
Opisze więc co robię:
- rozpakowuje plik xautomation-1.06.tar.gz i poprzez Terminal wchodzę w powstały katalog;
- pierwsze polecenie

Kod: Zaznacz cały

./configure
daje nastepujacy efekt:

Kod: Zaznacz cały

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for png_read_info in -lpng... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for an ANSI C-conforming const... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for bzero... yes
checking for wmemset... yes
checking for mbstowcs... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
- do tego miejsca wydaje się być wszystko w porządku natomiast przy kolejnym

Kod: Zaznacz cały

make
wyskakuje mi błąd uniemożliwiający dalszą kompilację

Kod: Zaznacz cały

gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT xte.o -MD -MP -MF .deps/xte.Tpo -c -o xte.o xte.c
xte.c:24:34: fatal error: X11/extensions/XTest.h: Nie ma takiego pliku ani katalogu
compilation terminated.
make: *** [xte.o] Błąd 1
Nie wiem czy robię coś źle. Do paczki dołączony jest plik INSTALL z instrukcją zawierającą się w zdaniu:

Kod: Zaznacz cały

Just your plain configure/make/make install
Próbowałem poprzez synaptica dodać brakujący XTest ale widać nie o to chodziło ponieważ nie miało to żadnego wpływu na proces kompilacji.

Czy ktoś próbował u siebie instalacji tego pakietu w wersji nowszej niż 1.03 która jest w repozytorium? Może ktoś będzie wstanie powiedzieć mi czy przy "make" powinienem dodać jeszcze jakiś opcje? Dodam tylko że to chyba moja pierwsza (w dodatku nie udana) próba zbudowania paczki.

//bear7: Polecenia, a także i wyniki poleceń umieszczaj pomiędzy znacznikami CODE, a nie QUOTE.
Ostatnio zmieniony 04 maja 2012, 17:20 przez haigrek, łącznie zmieniany 1 raz.
Awatar użytkownika
ethanak
Wygnańcy
Posty: 3054
Rejestracja: 04 gru 2007, 13:19
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: GNOME
Architektura: x86
Lokalizacja: Bielsko-Biała
Kontakt:

Re: Problem z kompilacja xautomation 1.06

Post autor: ethanak »

configure nie sprawdza niestety czy masz bibliotekę zainstalowaną całą czy tylko runtime.
ja bym zaczął od

Kod: Zaznacz cały

sudo apt-get build-dep xautomation
a potem ewentualnie doinstalował braki.
haigrek
Piegowaty Guziec
Piegowaty Guziec
Posty: 2
Rejestracja: 23 maja 2009, 13:34
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Xfce
Architektura: x86

Re: Problem z kompilacja xautomation 1.06

Post autor: haigrek »

ethanak pisze:configure nie sprawdza niestety czy masz bibliotekę zainstalowaną całą czy tylko runtime.
ja bym zaczął od

Kod: Zaznacz cały

sudo apt-get build-dep xautomation
a potem ewentualnie doinstalował braki.
Zrobiłem jak napisałeś, pozwoliłem żeby doinstalował czego mu było trzeba. Następnie wydałem komendę "make" z następującym wynikiem:

Kod: Zaznacz cały

gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT xte.o -MD -MP -MF .deps/xte.Tpo -c -o xte.o xte.c
xte.c: In function ‘get_keysym’:
xte.c:70:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘KeySym’ [-Wformat]
xte.c:76:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘KeySym’ [-Wformat]
xte.c:80:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘KeySym’ [-Wformat]
xte.c: In function ‘send_string’:
xte.c:160:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘KeySym’ [-Wformat]
xte.c:160:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘KeySym’ [-Wformat]
mv -f .deps/xte.Tpo .deps/xte.Po
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.c
mv -f .deps/debug.Tpo .deps/debug.Po
gcc  -g -O2   -o xte xte.o debug.o   -lXtst -lX11 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT rgb2pat.o -MD -MP -MF .deps/rgb2pat.Tpo -c -o rgb2pat.o rgb2pat.c
mv -f .deps/rgb2pat.Tpo .deps/rgb2pat.Po
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT image.o -MD -MP -MF .deps/image.Tpo -c -o image.o image.c
image.c: In function ‘img_load_from_rgb’:
image.c:116:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
image.c: In function ‘img_load_from_pat’:
image.c:69:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
image.c:78:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
image.c:79:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
image.c:86:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
mv -f .deps/image.Tpo .deps/image.Po
gcc  -g -O2   -o rgb2pat rgb2pat.o image.o debug.o -lpng 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT png2pat.o -MD -MP -MF .deps/png2pat.Tpo -c -o png2pat.o png2pat.c
mv -f .deps/png2pat.Tpo .deps/png2pat.Po
gcc  -g -O2   -o png2pat png2pat.o image.o debug.o -lpng 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT visgrep.o -MD -MP -MF .deps/visgrep.Tpo -c -o visgrep.o visgrep.c
visgrep.c: In function ‘main’:
visgrep.c:120:25: warning: format ‘%a’ expects a matching ‘double’ argument [-Wformat]
mv -f .deps/visgrep.Tpo .deps/visgrep.Po
gcc  -g -O2   -o visgrep visgrep.o image.o debug.o -lpng 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT pat2ppm.o -MD -MP -MF .deps/pat2ppm.Tpo -c -o pat2ppm.o pat2ppm.c
mv -f .deps/pat2ppm.Tpo .deps/pat2ppm.Po
gcc  -g -O2   -o pat2ppm pat2ppm.o image.o debug.o -lpng 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT patextract.o -MD -MP -MF .deps/patextract.Tpo -c -o patextract.o patextract.c
mv -f .deps/patextract.Tpo .deps/patextract.Po
gcc  -g -O2   -o patextract patextract.o image.o debug.o -lpng 
gcc -DPACKAGE_NAME=\"xautomation\" -DPACKAGE_TARNAME=\"xautomation\" -DPACKAGE_VERSION=\"1.06\" -DPACKAGE_STRING=\"xautomation\ 1.06\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xautomation\" -DVERSION=\"1.06\" -DDEBUG_A_LOO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DHAVE_LOCALE_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_BZERO=1 -DHAVE_WMEMSET=1 -DHAVE_MBSTOWCS=1 -I.     -g -O2 -MT xmousepos.o -MD -MP -MF .deps/xmousepos.Tpo -c -o xmousepos.o xmousepos.c
mv -f .deps/xmousepos.Tpo .deps/xmousepos.Po
gcc  -g -O2   -o xmousepos xmousepos.o   -lX11
Więc udało się tą sprawę załatwić. Kolejne polecenie "sudo make install" dało efekt następujący:

Kod: Zaznacz cały

make[1]: Wejście do katalogu `/home/haigrek/Pulpit/xautomation-1.06'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c xte rgb2pat png2pat visgrep pat2ppm patextract xmousepos '/usr/local/bin'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 pat2ppm.1 patextract.1 png2pat.1 rgb2pat.1 visgrep.1 xmousepos.1 xte.1 '/usr/local/share/man/man1'
test -z "/usr/local/share/man/man7" || /bin/mkdir -p "/usr/local/share/man/man7"
 /usr/bin/install -c -m 644 xautomation.7 '/usr/local/share/man/man7'
make[1]: Opuszczenie katalogu `/home/haigrek/Pulpit/xautomation-1.06'
Hmmm...spodziewałem się że wynikiem moich działań będzie plik .deb do instalacji a wygląda na to że zostały podmienione pliki w "/usr/local/bin" na nowsze. Dla pewności sprawdziłem jeszcze w jakiej wersji jest polecenie mnie interesujące "visgrep -h" :

Kod: Zaznacz cały

visgrep v1.06
visual grep, greps for images in another image
Author: Steve Slaven - http://hoopajoo.net
...
Wszystko wygląda na gotowe. Dzięki za pomoc.

Wątek do zamknięcia.

//bear7: Polecenia, a także i wyniki poleceń umieszczaj pomiędzy znacznikami CODE, a nie QUOTE.
Ostatnio zmieniony 04 maja 2012, 17:24 przez haigrek, łącznie zmieniany 1 raz.
bear7
Przyjaciel
Przyjaciel
Posty: 6686
Rejestracja: 20 sty 2009, 23:12
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Inne
Architektura: x86_64
Lokalizacja: pwd

Re: Problem z kompilacja xautomation 1.06

Post autor: bear7 »

Zapoznaj się z REGULAMINEM forum i dostosuj tytuł tematu zgodnie z poniższymi wskazówkami:
Zanim ponownie wpiszesz w tytule tematu słowo PROBLEM zapoznaj się z REGULAMINEMW razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.
Zmień tytuł tematu tak, aby w sposób możliwie precyzyjny przedstawiał sedno sprawy, w której piszesz. Miej na uwadze również zgodność z REGULAMINEMTytuł tematu zmienisz edytując pierwszy postW razie wątpliwości/zastrzeżeń odnośnie powyższej informacji skontaktuj się z moderatorem, który ją wstawił.
O pomoc pytaj a forum, a nie przez PW.
ODPOWIEDZ

Wróć do „Inne”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 13 gości