[Qt-interest] Help to compile master-stable needed
Piotr Dobrogost
pd at news.qt.dobrogost.pl
Fri Aug 28 10:10:03 CEST 2009
Hi
I've been trying to compile master-stable lately but with
no result. I don't get what the problem is and I remember compiling
master and master-stable fine several times on the same system in the past.
Anyway, the environment is Windows Vista, mingw gcc 3.4.2 and 4.4.0,
Visual Studio 2008SP1. I'm trying normal build with both compilers not a
shadow one. After configuring qt from c:\qt\gcc with
configure -opensource -platform win32-g++ -no-qt3support
for gcc and from c:\qt\vc with
configure -opensource -platform win32-msvc2008 -no-qt3support -no-dsp
-no-vcproj
for vc, I get the following error when building with gcc
g++ -enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,console -mthreads
-Wl -o ..\..\..\bin\moc.exe ./moc.o ./preprocessor.o ./generator.o
./parser.o ./token.o ./main.o -LC:/Qt/gcc/src/tools/bootstrap/release
-lbootstrap -luser32
c:/mingw/active/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe:
can not find -lbootstrap
collect2: ld returned 1 exit status
make[1]: *** [..\..\..\bin\moc.exe] Error 1
make[1]: Leaving directory `c:/Qt/gcc/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2
and the following error when building with vc
Generating Code...
link /NOLOGO /INCREMENTAL:NO /SUBSYSTEM:CONSOLE /MANIFEST
/MANIFESTFILE:
".\moc.intermediate.manifest" /OUT:..\..\..\bin\moc.exe
@C:\Users\Piotr\AppData\Local\Temp\nm1CFC.tmp
LINK : fatal error LNK1181: cannot open input file 'bootstrap.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 9.0\VC\BIN\link.EXE"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Apparently bootstrap lib cannot be found during linking in both cases.
In case of gcc I don't get why there's this
-LC:/Qt/gcc/src/tools/bootstrap/release
path to bootstrap lib whereas it gets build in
C:/Qt/gcc/src/tools/bootstrap (no release at the end).
In case of vc I can't see the library path used (it's in this nm1CFC.tmp
file which gets deleted) but I guess it's the same as in case of gcc as
bootstrap.lib _exists_ in C:/Qt/vc/src/tools/bootstrap dir and would
have been found had compiler looked in this dir for it.
Thank you in advance for any help with this problem.
--
Piotr Dobrogost
"Break C++ and the major implementations of Java and C# would also
break" - Bjarne Stroustrup
More information about the Qt-interest-old
mailing list