|
configure i błąd z QT
zomer - 28-10-2007 14:43
Witam! Prubuję skompilować kydpdict za pomocą polecenia
.configure
Ale otrzymuje komunikat o błędzie
checking for Qt library name... failed configure: error: Cannot compile a simple Qt executable. Check you have the righ
Nie mam już pomysłu co mam doinstalować żeby skompilować ten program? Oto cały log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
It was created by kydpdict configure 0.9.2, which was generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure
## --------- ## ## Platform. ## ## --------- ##
hostname = debiao uname -m = i686 uname -r = 2.6.18-4-k7 uname -s = Linux uname -v = #1 SMP Mon Mar 26 17:57:15 UTC 2007
/usr/bin/uname -p = unknown /bin/uname -X = unknown
/bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown
PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/bin/X11
## ----------- ## ## Core tests. ## ## ----------- ##
configure:1348: checking for gcc configure:1364: found /usr/bin/gcc configure:1374: result: gcc configure:1618: checking for C compiler version configure:1621: gcc --version </dev/null >&5 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1624: $? = 0 configure:1626: gcc -v </dev/null >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) configure:1629: $? = 0 configure:1631: gcc -V </dev/null >&5 gcc: '-V' option must have argument configure:1634: $? = 1 configure:1657: checking for C compiler default output file name configure:1660: gcc conftest.c >&5 configure:1663: $? = 0 configure:1709: result: a.out configure:1714: checking whether the C compiler works configure:1720: ./a.out configure:1723: $? = 0 configure:1740: result: yes configure:1747: checking whether we are cross compiling configure:1749: result: no configure:1752: checking for suffix of executables configure:1754: gcc -o conftest conftest.c >&5 configure:1757: $? = 0 configure:1782: result: configure:1788: checking for suffix of object files configure:1809: gcc -c conftest.c >&5 configure:1812: $? = 0 configure:1834: result: o configure:1838: checking whether we are using the GNU C compiler configure:1862: gcc -c conftest.c >&5 configure:1868: $? = 0 configure:1872: test -z || test ! -s conftest.err configure:1875: $? = 0 configure:1878: test -s conftest.o configure:1881: $? = 0 configure:1894: result: yes configure:1900: checking whether gcc accepts -g configure:1921: gcc -c -g conftest.c >&5 configure:1927: $? = 0 configure:1931: test -z || test ! -s conftest.err configure:1934: $? = 0 configure:1937: test -s conftest.o configure:1940: $? = 0 configure:1951: result: yes configure:1968: checking for gcc option to accept ANSI C configure:2038: gcc -c -g -O2 conftest.c >&5 configure:2044: $? = 0 configure:2048: test -z || test ! -s conftest.err configure:2051: $? = 0 configure:2054: test -s conftest.o configure:2057: $? = 0 configure:2075: result: none needed configure:2093: gcc -c -g -O2 conftest.c >&5 conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:2099: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:2237: checking how to run the C preprocessor configure:2272: gcc -E conftest.c configure:2278: $? = 0 configure:2310: gcc -E conftest.c conftest.c:9:28: error: ac_nonexistent.h: No such file or directory configure:2316: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2355: result: gcc -E configure:2379: gcc -E conftest.c configure:2385: $? = 0 configure:2417: gcc -E conftest.c conftest.c:9:28: error: ac_nonexistent.h: No such file or directory configure:2423: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:2512: checking for gcc configure:2538: result: gcc configure:2782: checking for C compiler version configure:2785: gcc --version </dev/null >&5 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2788: $? = 0 configure:2790: gcc -v </dev/null >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) configure:2793: $? = 0 configure:2795: gcc -V </dev/null >&5 gcc: '-V' option must have argument configure:2798: $? = 1 configure:2801: checking whether we are using the GNU C compiler configure:2857: result: yes configure:2863: checking whether gcc accepts -g configure:2914: result: yes configure:2931: checking for gcc option to accept ANSI C configure:3038: result: none needed configure:3056: gcc -c -g -O2 conftest.c >&5 conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:3062: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:3247: checking for g++ configure:3263: found /usr/bin/g++ configure:3273: result: g++ configure:3289: checking for C++ compiler version configure:3292: g++ --version </dev/null >&5 g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3295: $? = 0 configure:3297: g++ -v </dev/null >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) configure:3300: $? = 0 configure:3302: g++ -V </dev/null >&5 g++: '-V' option must have argument configure:3305: $? = 1 configure:3308: checking whether we are using the GNU C++ compiler configure:3332: g++ -c conftest.cc >&5 configure:3338: $? = 0 configure:3342: test -z || test ! -s conftest.err configure:3345: $? = 0 configure:3348: test -s conftest.o configure:3351: $? = 0 configure:3364: result: yes configure:3370: checking whether g++ accepts -g configure:3391: g++ -c -g conftest.cc >&5 configure:3397: $? = 0 configure:3401: test -z || test ! -s conftest.err configure:3404: $? = 0 configure:3407: test -s conftest.o configure:3410: $? = 0 configure:3421: result: yes configure:3463: g++ -c -g -O2 conftest.cc >&5 configure:3469: $? = 0 configure:3473: test -z || test ! -s conftest.err configure:3476: $? = 0 configure:3479: test -s conftest.o configure:3482: $? = 0 configure:3508: g++ -c -g -O2 conftest.cc >&5 conftest.cc: In function 'int main()': conftest.cc:13: error: 'exit' was not declared in this scope configure:3514: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | /* end confdefs.h. */ | | int | main () | { | exit (42); | ; | return 0; | } configure:3463: g++ -c -g -O2 conftest.cc >&5 configure:3469: $? = 0 configure:3473: test -z || test ! -s conftest.err configure:3476: $? = 0 configure:3479: test -s conftest.o configure:3482: $? = 0 configure:3508: g++ -c -g -O2 conftest.cc >&5 configure:3514: $? = 0 configure:3518: test -z || test ! -s conftest.err configure:3521: $? = 0 configure:3524: test -s conftest.o configure:3527: $? = 0 configure:3555: checking how to run the C++ preprocessor configure:3586: g++ -E conftest.cc configure:3592: $? = 0 configure:3624: g++ -E conftest.cc conftest.cc:12:28: error: ac_nonexistent.h: No such file or directory configure:3630: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3669: result: g++ -E configure:3693: g++ -E conftest.cc configure:3699: $? = 0 configure:3731: g++ -E conftest.cc conftest.cc:12:28: error: ac_nonexistent.h: No such file or directory configure:3737: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3777: checking whether make sets $(MAKE) configure:3797: result: yes configure:3808: checking for X configure:3913: gcc -E conftest.c configure:3919: $? = 0 configure:3969: gcc -o conftest -g -O2 conftest.c -lXt >&5 configure:3975: $? = 0 configure:3979: test -z || test ! -s conftest.err configure:3982: $? = 0 configure:3985: test -s conftest configure:3988: $? = 0 configure:4038: result: libraries , headers configure:4210: gcc -o conftest -g -O2 conftest.c -lX11 >&5 configure:4216: $? = 0 configure:4220: test -z || test ! -s conftest.err configure:4223: $? = 0 configure:4226: test -s conftest configure:4229: $? = 0 configure:4387: checking for gethostbyname configure:4444: gcc -o conftest -g -O2 conftest.c >&5 configure:4450: $? = 0 configure:4454: test -z || test ! -s conftest.err configure:4457: $? = 0 configure:4460: test -s conftest configure:4463: $? = 0 configure:4475: result: yes configure:4626: checking for connect configure:4683: gcc -o conftest -g -O2 conftest.c >&5 configure:4689: $? = 0 configure:4693: test -z || test ! -s conftest.err configure:4696: $? = 0 configure:4699: test -s conftest configure:4702: $? = 0 configure:4714: result: yes configure:4789: checking for remove configure:4846: gcc -o conftest -g -O2 conftest.c >&5 configure:4852: $? = 0 configure:4856: test -z || test ! -s conftest.err configure:4859: $? = 0 configure:4862: test -s conftest configure:4865: $? = 0 configure:4877: result: yes configure:4952: checking for shmat configure:5009: gcc -o conftest -g -O2 conftest.c >&5 configure:5015: $? = 0 configure:5019: test -z || test ! -s conftest.err configure:5022: $? = 0 configure:5025: test -s conftest configure:5028: $? = 0 configure:5040: result: yes configure:5124: checking for IceConnectionNumber in -lICE configure:5154: gcc -o conftest -g -O2 conftest.c -lICE >&5 configure:5160: $? = 0 configure:5164: test -z || test ! -s conftest.err configure:5167: $? = 0 configure:5170: test -s conftest configure:5173: $? = 0 configure:5186: result: yes configure:5196: checking whether byte ordering is bigendian configure:5223: gcc -c -g -O2 conftest.c >&5 configure:5229: $? = 0 configure:5233: test -z || test ! -s conftest.err configure:5236: $? = 0 configure:5239: test -s conftest.o configure:5242: $? = 0 configure:5266: gcc -c -g -O2 conftest.c >&5 conftest.c: In function 'main': conftest.c:19: error: 'not' undeclared (first use in this function) conftest.c:19: error: (Each undeclared identifier is reported only once conftest.c:19: error: for each function it appears in.) conftest.c:19: error: expected ';' before 'big' configure:5272: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | #include <sys/types.h> | #include <sys/param.h> | | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | } configure:5407: result: no configure:5475: checking for moc configure:5517: result: /usr/bin/moc configure:5548: checking for uic configure:5590: result: /usr/bin/uic configure:5605: checking for Qt library name configure:5650: g++ -o conftest -g -O2 conftest.cc -lqt3 >&5 conftest.cc:13:22: error: qglobal.h: No such file or directory conftest.cc:14:22: error: qstring.h: No such file or directory conftest.cc:22: error: stray '\' in program conftest.cc:22: error: stray '\' in program conftest.cc: In function 'int main()': conftest.cc:20: error: 'QString' was not declared in this scope conftest.cc:20: error: expected `;' before 's' conftest.cc:22: error: 'break_me_' was not declared in this scope configure:5656: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | | #include <qglobal.h> | #include <qstring.h> | | int | main () | { | | QString s("mangle_failure"); | #if (QT_VERSION < 221) | break_me_(\\); | #endif | | ; | return 0; | } configure:5650: g++ -o conftest -g -O2 conftest.cc -lqt-mt >&5 conftest.cc:13:22: error: qglobal.h: No such file or directory conftest.cc:14:22: error: qstring.h: No such file or directory conftest.cc:22: error: stray '\' in program conftest.cc:22: error: stray '\' in program conftest.cc: In function 'int main()': conftest.cc:20: error: 'QString' was not declared in this scope conftest.cc:20: error: expected `;' before 's' conftest.cc:22: error: 'break_me_' was not declared in this scope configure:5656: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "kydpdict" | #define PACKAGE_TARNAME "kydpdict" | #define PACKAGE_VERSION "0.9.2" | #define PACKAGE_STRING "kydpdict 0.9.2" | #define PACKAGE_BUGREPORT "ytm@elysium.pl" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | | #include <qglobal.h> | #include <qstring.h> | | int | main () | { | | QString s("mangle_failure"); | #if (QT_VERSION < 221) | break_me_(\\); | #endif | | ; | return 0; | } configure:5692: result: failed configure:5695: error: Cannot compile a simple Qt executable. Check you have the right $QTDIR !
## ---------------- ## ## Cache variables. ## ## ---------------- ##
ac_cv_c_bigendian=no ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LRELEASE_set= ac_cv_env_LRELEASE_value= ac_cv_env_LUPDATE_set= ac_cv_env_LUPDATE_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_exeext= ac_cv_func_connect=yes ac_cv_func_gethostbyname=yes ac_cv_func_remove=yes ac_cv_func_shmat=yes ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries=' ac_cv_lib_ICE_IceConnectionNumber=yes ac_cv_objext=o ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes qt_cv_dir= qt_cv_path_moc=/usr/bin/moc qt_cv_path_uic=/usr/bin/uic
## ----------------- ## ## Output variables. ## ## ----------------- ##
CC='gcc' CFLAGS='-g -O2' CPP='gcc -E' CPPFLAGS='' CXX='g++' CXXCPP='g++ -E' CXXFLAGS='-g -O2' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' HAVE_X11='' LDFLAGS='' LIBOBJS='' LIBS='' LRELEASE='' LTLIBOBJS='' LUPDATE='' MOC='/usr/bin/moc' OBJEXT='o' PACKAGE_BUGREPORT='ytm@elysium.pl' PACKAGE_NAME='kydpdict' PACKAGE_STRING='kydpdict 0.9.2' PACKAGE_TARNAME='kydpdict' PACKAGE_VERSION='0.9.2' PATH_SEPARATOR=':' QT_INCLUDES='' QT_LDFLAGS='' QT_LIB='' QT_VERSION='' SET_MAKE='' SHELL='/bin/sh' UIC='/usr/bin/uic' X_CFLAGS='' X_EXTRA_LIBS='' X_LIB='' X_LIBS='' X_PRE_LIBS=' -lSM -lICE' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build_alias='' datadir='${prefix}/share' exec_prefix='NONE' host_alias='' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='${prefix}/man' oldincludedir='/usr/include' prefix='NONE' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''
## ----------- ## ## confdefs.h. ## ## ----------- ##
#define PACKAGE_BUGREPORT "ytm@elysium.pl" #define PACKAGE_NAME "kydpdict" #define PACKAGE_STRING "kydpdict 0.9.2" #define PACKAGE_TARNAME "kydpdict" #define PACKAGE_VERSION "0.9.2" #endif #ifdef __cplusplus extern "C" void std::exit (int) throw (); using std::exit;
configure: exit 1
ruun - 28-10-2007 17:01
Zainstaluj pakiety:
libqt3-headers libqt3-mt libqt3-mt-dev
zomer - 29-10-2007 14:14
Podczas pruby instalacji każdego z tych trzech pakietów otrzymóję tą samą odpowiedz: Budowanie drzewa zależności... Gotowe libqt3-mt-dev jest już w najnowszej wersji. 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 3 nieaktualizowanych.
Prubowałem wywołać ./configure z opcją:
./configure --with-qt-dir=/usr/share/qt3/
Ale może coś źle wpisuje?. Bo też otrzymóję komunikat o problemie ze znalezieniem Qt. Sprawdzałem, ścieżka /usr/share/qt3/ istnieje.
Lorenzo - 29-10-2007 18:38
Spróbuj przed configure, wywołaclexport QTDIR='/usr/share/qt3'l
zomer - 04-11-2007 21:10
Pomogło, ale nie rozumiem co wykonałem tym poleceniem? W "Linux Receptury" tego polecenia nie ma, to jedna z lepszych książek. Powiedz co to polecenie robi, może się przyda w przyszłości.
Lorenzo - 05-11-2007 22:37
Ustawia zmienna środowiskową QTDIR. Ja się nie babram z qt, ale chyba skrypty configure są tak generowane, że sprawdzają istnienie tej opcji i jak jej nie ma ustawionej to się plują. Chociaż przy kompilacji np. kadu, zmienna ta może w systemie nie istnieć a kompilacja i tak sie uda ;-).
zanotowane.pldoc.pisz.plpdf.pisz.plminister.pev.pl
|