Seite 1 von 1

[gelöst] Qt unter Windows mit Borland will nicht

Verfasst: 29. März 2005 20:35
von Christoph
Hallo,
ich habe mir von kde-cygwin.sourceforge.net die qt-win-free-3.3.3-2005-03-15-src.tar.bz2 und von Borland den
bcc 55 besorgt und alles auf Windows 2000 SP3 installiert. Wenn ich mit Borland die qt-3-sourcen mittels configure.bat (so wie in den Compiler-Notes auf kde-cygwin.sourceforge.net angegeben)compilieren möchte, dann beginnt zwar der Comilerlauf, endet aber mit der Fehlermeldung:
FATAL: Unable to open qtmt.lib
Die Datei existiert tatsaechlich nicht.
Jeder Versuch, irgendeinen Quellcode zu kompilieren endet mit derselben Meldung.

Vielleicht kennt diese Geschichte ja jemand.

Vielen Dank für jede Hilfe.

Christoph

Verfasst: 30. März 2005 01:16
von ChMaster
nimm die version: qt-win-free-3.3.3-2005-03-22-src.tar.bz2
versuch mal nicht mit der configure.bat, versuchs mit der
"configure-borland.bat -shared" dann müsste es gehen, habs
nicht ausprobiert da ich mit "configure-msvc.net.bat -shared"
die qt3 sourcen gebaut habe. ich bleib lieber auf dem richtigen pfad:
OpenSource ist das wahre

Vielen Dank

Verfasst: 30. März 2005 07:45
von Christoph
Vielen Dank für Deine Hilfe, ich werd das heute Abend mal probieren

Verfasst: 30. März 2005 09:37
von Christian81
Solange Du die QTDIR und QMAKESPEC richtig gesetzt hast, ist es egal ob du configure.bat oder configure-borland.bat nimmst.
Gehe mal in das Verzeichnis <QTDIR>/src und gib dort 'make' ein (evtl. heisst es auch 'bmake' - kommt auf die Borland-Version drauf an) und poste die Fehlermeldungen. Bei uns geht es mit CBuilderX und Borland Builder 6 - mit 5.5 wurde es imho noch nicht getestet.
Falls er sich dort über ein die fehlende qmake.exe beschwert, schau, ob folgende Dateien vorhanden sind:
<QTDIR>\bin\link_includes.exe
<QTDIR>\bin\configure.exe

Problem geloest

Verfasst: 31. März 2005 07:46
von Christoph
Vielen Dank Euch beiden für Eure Hilfe,
@Ch_Master: Dein Tip hat funktioniert.
@Christian: Vielen Dank trotzdem, auch wenn ich Deinen Tip jetzt nicht verwertet habe, bist Du trotzdem an den Fehlermeldungen interessiert ?Aus Deiner Signatur könnte man das "herauslesen".

Nochmals vielen Dank

Grüße Christoph

Verfasst: 31. März 2005 09:56
von Christian81
Ja, wäre schon nicht schlecht :) Schick es per pm oder mail.
'-shared' ist übrigens Standardeinstellung und muss nicht extra mit angegeben werden. '-debug' ist ab und zu noch interessant wenn es zu Abstürzen in der qt-dll kommt.

Verfasst: 10. Mai 2005 11:57
von john
Hallo,

ich versuche auch QT-Win-Free zu installieren, aber der Überesetzungsvorgang bricht nach einer weile ab. Es erscheinen folgende Fehlermeldungen:

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tools\qthreadstorage_win.cpp:
Fatal F1004 C:\Borland\BCC55\Bin\..\include\rw/traits.h 79: Internal compiler error at 0x48e7b1 with base 0x400000
Fatal F1004 C:\Borland\BCC55\Bin\..\include\rw/traits.h 79: Internal compiler error

** error 1 ** deleting tmp\obj\release-shared-mt\qthreadstorage_win.obj
(cd src & make -f Makefile.main & cd ..)
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
(cd plugins\src & make & cd ..\..)
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd accessible
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd widgets
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
ilink32 @MAKE0000.@@@
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'QTMT3.LIB'

** error 2 ** deleting ..\..\..\accessible\qtwidgets100.dll

** error 1 ** deleting sub-widgets

** error 1 ** deleting sub-accessible
(cd tools & make & cd ..)
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd assistant\lib
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 -c -tWR -w- -tWM -O2 -DUNICODE -DQT_INTERNAL_NETWORK -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I"
c:\qt-3\include" -I"C:\Borland\BCC55\Bin\..\include" -I"." -I"tmp\moc\release-shared-mt" -I"c:\qt-3\mkspecs\win32-borland" -otmp\obj\release-shared-mt\qassistan
tclient.obj qassistantclient.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
qassistantclient.cpp:
c:\qt-3\bin\moc.exe ..\..\..\include\qassistantclient.h -o tmp\moc\release-shared-mt\moc_qassistantclient.cpp
bcc32 -c -tWR -w- -tWM -O2 -DUNICODE -DQT_INTERNAL_NETWORK -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I"
c:\qt-3\include" -I"C:\Borland\BCC55\Bin\..\include" -I"." -I"tmp\moc\release-shared-mt" -I"c:\qt-3\mkspecs\win32-borland" -otmp\obj\release-shared-mt\moc_qassi
stantclient.obj tmp\moc\release-shared-mt\moc_qassistantclient.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tmp\moc\release-shared-mt\moc_qassistantclient.cpp:
del ..\..\..\lib\qassistantclient.lib
tlib /C /P256 "..\..\..\lib\qassistantclient.lib" @MAKE0000.@@@
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
+"tmp\obj\release-shared-mt\qassistantclient.obj" +"tmp\obj\release-shared-mt\moc_qassistantclient.obj"
cd designer
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd uic
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
ilink32 @MAKE0000.@@@
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'QTMT3.LIB'

** error 2 ** deleting ..\..\..\bin\uic.exe

** error 1 ** deleting sub-uic

** error 1 ** deleting sub-designer
(cd tutorial & make & cd ..)
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd t1
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
ilink32 @MAKE0000.@@@
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'QTMT3.LIB'

** error 2 ** deleting t1.exe

** error 1 ** deleting sub-t1
(cd examples & make & cd ..)
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
cd aclock
make -f Makefile
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
qmake -spec win32-borland -o Makefile aclock.pro
bcc32 -c -tWR -w- -tWM -O2 -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I"c:\qt-3\include" -I"C:
\Borland\BCC55\Bin\..\include" -I"." -I"tmp\moc\release-shared-mt" -I"c:\qt-3\mkspecs\win32-borland" -otmp\obj\release-shared-mt\aclock.obj aclock.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
aclock.cpp:
bcc32 -c -tWR -w- -tWM -O2 -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I"c:\qt-3\include" -I"C:
\Borland\BCC55\Bin\..\include" -I"." -I"tmp\moc\release-shared-mt" -I"c:\qt-3\mkspecs\win32-borland" -otmp\obj\release-shared-mt\main.obj main.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
main.cpp:
c:\qt-3\bin\moc.exe aclock.h -o tmp\moc\release-shared-mt\moc_aclock.cpp
bcc32 -c -tWR -w- -tWM -O2 -DUNICODE -DQT_DLL -DQT_THREAD_SUPPORT -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -I"c:\qt-3\include" -I"C:
\Borland\BCC55\Bin\..\include" -I"." -I"tmp\moc\release-shared-mt" -I"c:\qt-3\mkspecs\win32-borland" -otmp\obj\release-shared-mt\moc_aclock.obj tmp\moc\release-
shared-mt\moc_aclock.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tmp\moc\release-shared-mt\moc_aclock.cpp:
ilink32 @MAKE0000.@@@
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'QTMT3.LIB'

** error 2 ** deleting aclock.exe

** error 1 ** deleting sub-aclock

"The Qt library is now built in ./lib"
"The Qt examples are built in the directories in ./examples"
"The Qt tutorials are built in the directories in ./tutorial"

"Enjoy! - the Trolltech team"


Kann jemand was damit anfangen? Wäre um Hilfe sehr dankbar!

Viele Grüße,
Ciao John

Verfasst: 10. Mai 2005 12:14
von Christian81
Hier ist die Lösung:
http://sourceforge.net/tracker/index.ph ... tid=389712

also 'configure.bat -no-stl'. Komischerweise funktioniert es (soweit ich weiss) mit CBuilder 6 - also wohl wirklich ein Fehler im Compiler. Gibt es evtl. ein Update?
Werde einen Kommentar in die Anleitung dazu schreiben. Es ist erst jetzt aufgefallen, da wir erst seit kurzem stl, rtti und exceptions standardmässig aktivieren.

Verfasst: 10. Mai 2005 19:11
von john
Hallo Christian81,

vielen Dank für die schnelle Hilfe! Es funktioniert!, -und vielen Dank für dieses tolles Project!

Viele Grüße,
Ciao John