Instalacja ze źróde

Tematy związane z oprogramowaniem, instalacją, konfiguracją
Michal
Posty: 83
Rejestracja: 23 lipca 2007, 09:20
Lokalizacja: Lubsko

Instalacja ze źródeł - problem

Post autor: Michal »

Bardzo chcę zacząć instalować programy z archiwów *.tar.* ale chcę sobie zainstalować mały taki testowy programik do zarządzania plikami. Ok - rozpakowałem, wchodzę do katalogu tego programiku wpisuję ./configure i wywala mi to, że potrzebuje QT nowszego niż 1.41. W takim razie rodzi się pytanie - skąd to nowsze QT pobrać np QT4 albo QT3x? A gdy już je pobiorę to jak zainstalować? Zaznaczam, że szukałem tu na forum i w necie ogółem i nic nie znalazłem, co mogłoby się okazać dla mnie pomocne. Jeśli to by miało pomóc, zamieszczę komunikat, jaki wypluwa konsloka.

Kod: Zaznacz cały

michal:/home/michal# cd /home/michal/Desktop/kruiser-0.4
michal:/home/michal/Desktop/kruiser-0.4# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for a C-Compiler...
checking for gcc... gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler...
checking for g++... g++
checking whether the C++ compiler (g++   -s) works... yes
checking whether the C++ compiler (g++   -s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking how to run the C++ preprocessor... g++ -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... yes
checking whether ln -s works... yes
checking for object suffix... o
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.lo... yes
checking if g++ supports -fno-rtti -fno-exceptions ... yes
checking if g++ static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for X... libraries , headers
checking for main in -lcompat... no
checking for main in -lcrypt... yes
checking for the third argument of getsockname... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for killpg in -lucb... no
checking for Qt... configure: error: Qt >= 1.41 (headers and libraries) not found. Please check your installation!
michal:/home/michal/Desktop/kruiser-0.4#   
PS. ten programik instaluję tylko tak by sprawdzić czy da się obecnie na moim kompie instalować tary oraz by sprawdzić co zrobić aby nie mieć już takich podstawowych problemów.
Kaka'
Senior Member
Posty: 3018
Rejestracja: 30 lipca 2006, 13:17
Lokalizacja: Kartuzy

Post autor: Kaka' »

Być może chodzi o paczkę libqt3-mt-dev - ale mogę się mylić. Jak nie zadziała, spróbuj jeszcze zainstalować odpowiednią paczkę dla Qt4.
Michal
Posty: 83
Rejestracja: 23 lipca 2007, 09:20
Lokalizacja: Lubsko

Post autor: Michal »

A skąd to Qt4 wziąć i jak to zainstalować? Bo jak zainstalowałem tą paczkę co mi podałeś to dalej to samo - zbyt stara biblioteka Qt
Awatar użytkownika
ruun
Member
Posty: 1366
Rejestracja: 29 marca 2007, 21:07
Lokalizacja: Kruszwica

Post autor: ruun »

Michal pisze:A skąd to Qt4 wziąć i jak to zainstalować?
Szukaj:

Kod: Zaznacz cały

aptitude search libqt4
Michal
Posty: 83
Rejestracja: 23 lipca 2007, 09:20
Lokalizacja: Lubsko

Post autor: Michal »

Ruun - pokazało mi te pliki jak wpisałem tą komendę:
aptitude search libqt4
p libqt4-core - Qt 4 core non-GUI functionality runtime li
p libqt4-debug - Qt 4 library debugging symbols
p libqt4-dev - Qt 4 development files
p libqt4-gui - Qt 4 core GUI functionality runtime librar
p libqt4-qt3support - Qt 3 compatibility library for Qt 4
p libqt4-ruby - ruby bindings for the Qt4 GUI library
p libqt4-ruby1.8 - ruby bindings for the Qt4 GUI library
p libqt4-sql - Qt 4 SQL database module

Które z nich mam zainstalować? Wszystkie?
Awatar użytkownika
ruun
Member
Posty: 1366
Rejestracja: 29 marca 2007, 21:07
Lokalizacja: Kruszwica

Post autor: ruun »

Do kompilacji powinien wystarczyć ten z -dev na końcu.
Michal
Posty: 83
Rejestracja: 23 lipca 2007, 09:20
Lokalizacja: Lubsko

Post autor: Michal »

Ok to ściągam plik libqt4-dev i zobaczymy co się będzie działo.

[ Dodano: 2007-07-30, 17:44 ]
Zainstalowałem i dalej to samo wywala mi to:

Kod: Zaznacz cały

michal:/home/michal/Desktop/kruiser-0.4# ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a C-Compiler...
checking for gcc... gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for a C++-Compiler...
checking for g++... g++
checking whether the C++ compiler (g++   -s) works... yes
checking whether the C++ compiler (g++   -s) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking how to run the C++ preprocessor... g++ -E
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... yes
checking whether ln -s works... yes
checking for object suffix... o
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.lo... yes
checking if g++ supports -fno-rtti -fno-exceptions ... yes
checking if g++ static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for X... libraries , headers
checking for main in -lcompat... no
checking for main in -lcrypt... yes
checking for the third argument of getsockname... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for killpg in -lucb... no
checking for Qt... configure: error: Qt >= 1.41 (headers and libraries) not found. Please check your installation!

Ten mój komp jest jakiś porypany chyba :-(
Lorenzo
Beginner
Posty: 262
Rejestracja: 15 sierpnia 2006, 16:14
Lokalizacja: Kraków

Post autor: Lorenzo »

spróbuj dodać ścieżkę do bibliotek qt4 do zmiennej PATH, a ścieżkę do nagłówków ustaw w zmiennej QTDIR.
Michal
Posty: 83
Rejestracja: 23 lipca 2007, 09:20
Lokalizacja: Lubsko

Post autor: Michal »

Lorenzo wytłumacz mi prosze krok po kroku jak mam to zrobić bo jestem początkujący i mało wiem w tej materii. Jeszcze :mrgreen:
Lorenzo
Beginner
Posty: 262
Rejestracja: 15 sierpnia 2006, 16:14
Lokalizacja: Kraków

Post autor: Lorenzo »

wykonaj w konsoli:

Kod: Zaznacz cały

export QTDIR="/usr/share/qt4/"
i w tej samej konsoli odpal ta kompilację.

Możesz jeszcze sprawdzić czy w opcjach configure jest flaga
  • --qtdir=
    lub
    --qt4dir=
Jeśli jest, wówczas odpal configure z nią dodając po = /usr/share/qt4.

Ewentualnie spróbuj zastąpić tą ścieżkę taką - "/usr/include/qt4"

P.S. Zakładam, że libqt4-core i libqt4-debug równiez masz zainstalowane.
P.P.S. Jak nadal nie ruszy to zarzuć config.log.
ODPOWIEDZ