Strona 1 z 2

Instalacja ze źródeł - problem

: 30 lipca 2007, 01:10
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.

: 30 lipca 2007, 06:41
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.

: 30 lipca 2007, 17:06
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

: 30 lipca 2007, 17:16
autor: ruun
Michal pisze:A skąd to Qt4 wziąć i jak to zainstalować?
Szukaj:

Kod: Zaznacz cały

aptitude search libqt4

: 30 lipca 2007, 17:19
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?

: 30 lipca 2007, 17:26
autor: ruun
Do kompilacji powinien wystarczyć ten z -dev na końcu.

: 30 lipca 2007, 17:28
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 :-(

: 30 lipca 2007, 21:04
autor: Lorenzo
spróbuj dodać ścieżkę do bibliotek qt4 do zmiennej PATH, a ścieżkę do nagłówków ustaw w zmiennej QTDIR.

: 30 lipca 2007, 21:07
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:

: 30 lipca 2007, 21:30
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.