PDA

View Full Version : a ./configure qt error



Theka
12-09-2003, 09:40 PM
well just thought id post this as im recompiling QT now but would like sum advise on this.

i did qt 3 flawlessly and it compiled fine and everything.
then when i run ./configure for seq i get a QT uic error.
finds version 3.2.3
workable yes
moc ok
uic no working qt uic found!

dunno what went wrong but im recompiling now...

Zaphod
12-09-2003, 09:54 PM
Originally posted by Theka
well just thought id post this as im recompiling QT now but would like sum advise on this.

i did qt 3 flawlessly and it compiled fine and everything.
then when i run ./configure for seq i get a QT uic error.
finds version 3.2.3
workable yes
moc ok
uic no working qt uic found!

dunno what went wrong but im recompiling now...

For details please look in the config.log file created by configure. To further diagnose your exact issue you would need to attach your config.log file to a post.

Enjoy,
Zaphod (dohpaZ)

kamui
12-10-2003, 02:22 AM
I am also having a problem from qt being found, it is in the bin dir where it should be and works as well, recompiled as well just to make sure, no errors...

Here is a copy of my config.log



configure:2075: error: for each function it appears in.)
configure: failed program was:
#line 2068 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2096: checking for mingw32 environment
configure:2108: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2104: error: `__MINGW32__' undeclared (first use in this function)
configure:2104: error: (Each undeclared identifier is reported only once
configure:2104: error: for each function it appears in.)
configure: failed program was:
#line 2101 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2205: checking for ld used by GCC
configure:2273: checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ldGNU ld version 2.14.90.0.7 20031029
configure:2290: checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files
configure:2302: checking for BSD-compatible nm
configure:2340: checking for a sed that does not truncate output
configure:2424: checking how to recognise dependent libraries
configure:2610: checking for object suffix
configure:2616: gcc -c -g -O2 conftest.c 1>&5
configure:2636: checking for executable suffix
configure:2646: gcc -o conftest -g -O2 conftest.c 1>&5
configure:2677: checking command to parse /usr/bin/nm -B output
configure:2760: gcc -c -g -O2 conftest.c 1>&5
configure:2763: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm
configure:2814: gcc -o conftest -g -O2 conftest.c conftstm.o 1>&5
configure:2863: checking for dlfcn.h
configure:2873: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3042: checking for ranlib
configure:3109: checking for strip
configure:3211: gcc -c -g -O2 conftest.c 1>&5
configure:3366: checking for objdir
configure:3393: checking for gcc option to produce PIC
configure:3541: checking if gcc PIC flag -fPIC works
configure:3555: gcc -c -g -O2 -fPIC -DPIC conftest.c 1>&5
configure:3607: checking if gcc static flag -static works
configure:3622: gcc -o conftest -g -O2 -static conftest.c 1>&5
configure:3649: checking if gcc supports -c -o file.o
configure:3668: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5
configure:3697: checking if gcc supports -c -o file.lo
configure:3715: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5
configure:3765: checking if gcc supports -fno-rtti -fno-exceptions
configure:3778: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
cc1: warning: "-fno-rtti" is valid for C++ but not for C/ObjC
configure:3805: checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries
configure:4528: checking how to hardcode library paths into programs
configure:4556: checking whether stripping libraries is possible
configure:4570: checking dynamic linker characteristics
configure:5008: checking if libtool supports shared libraries
configure:5012: checking whether to build shared libraries
configure:5035: checking whether to build static libraries
configure:5571: checking whether -lc should be explicitly linked in
configure:5578: gcc -c -g -O2 conftest.c 1>&5
configure:5591: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest
2>&1 | grep -lc >/dev/null 2>&1
configure:6185: checking for supported libc version
configure:6208: g++ -o conftest conftest.C 1>&5
configure:6597: checking for extra includes
configure:6628: checking for extra libs
configure:6662: checking for libz
configure:6688: gcc -o conftest -g -O2 conftest.c -lz 1>&5
configure:6750: checking for X
configure:6817: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6893: gcc -o conftest -g -O2 conftest.c -lXt 1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
configure: failed program was:
#line 6886 "configure"
#include "confdefs.h"

int main() {
XtMalloc()
; return 0; }
configure:7045: checking for IceConnectionNumber in -lICE
configure:7064: gcc -o conftest -g -O2 -L/usr/X11R6/lib conftest.c -lICE 1>&5
configure:7093: checking for libXext
configure:7116: gcc -o conftest -g -O2 -L/usr/X11R6/lib conftest.c -lXext -lX11 1>&5
configure:7154: checking for libpng
configure:7184: gcc -o conftest -g -O2 -I. conftest.c -L/usr/X11R6/lib -lpng
-lz -lm -lX11 1>&5
configure:7222: checking for Qt
configure:7532: g++ -o conftest -I/usr/qt/3/include -I. -L/usr/qt/3/lib -L/usr/X11R6/lib conftest.C -lqt-mt -lpng -lz -lm -lXext -lX11 1>&5
configure:7628: checking for Qt MOC
configure:7762: tried to call /usr/qt/3/bin/moc --help 2>&1 | sed -e '1q' | grep Qt
configure:7763: moc output: Qt meta object compiler
configure:7813: checking for Qt UIC
configure:7947: tried to call /usr/qt/3/bin/uic --help 2>&1 | sed -e '1q' | grep Qt
configure:7948: uic output:


Any help would be more then welcome ))

Theka
12-10-2003, 02:38 AM
well i tryed another compile and still no go same error.
ill attach that log file you were talking about to the post.
also i noticed when i goto my uic directory and do a uic -version it says 3.0.5 wich is the old version of qt that comes with redhat 8, dunno if thats any significance.

newport
12-10-2003, 02:42 AM
I believe you need to remove / uninstall the old version of Qt before installing the new one.
I seem to remember having this problem some time ago when ShowEQ updated from the original QT version.
I think you will find all the un-install info the the documentation that comes with QT.

junk
12-10-2003, 03:31 PM
Like I said in another post:

uic is NOT part of the qt base package, you have to also get the qt-devel package. uic is a compiler (User Interface Compiler), it makes sense that it would be distributed in the development package.

Theka
12-10-2003, 05:15 PM
ok question about that i search for qt devel and seen a 3.2.3 redhat rpm. now since im compiling 3.2.3 qt on my rh 8 box can i install this rom and it will work or do i have to build that from a source?

junk
12-11-2003, 10:30 AM
If you're building the base qt package from source, I'd build the qt-devel package from source as well. I don't know if you HAVE to, but that's what I would do.

Cryonic
12-11-2003, 11:18 AM
If building from source (e.g. a tar.gz file) then you will get both the bin and dev stuff.

If building from a src.rpm, then you will still get the qt and qt-devel rpms (just make sure you install them both).

S_B_R
12-11-2003, 01:02 PM
This could be a similar problem to the one posted here (http://seq.sourceforge.net/forums/showthread.php?s=&threadid=4409), Zaphod posted a possible solution at the bottom.