QSA-interest Archive, September 2005
Cannot find library in QSA 1.2.0 installation over QT 4.0.1 (Win32)
Message 1 in thread
Hello everybody. I'm not too new to Qt but I'm not still capable of
debugging Qt itself, and I'm stuck with this installation problem.
I'm using Windows XP SP2. I think I've correctly installed Qt 4.0.1 Open
Source Edition in C:\Qt\4.0.1; at least the installation process
compiled everything without errors and it seems to work fine. Also MinGW
was installed during the process and works fine too. I'm trying to
install QSA 1.2.0 Open Source Edition now.
My first try was just to run the qsa-win-opensource-1.2.0.exe file. It
didn't detect MinGW nor Qt and, as expected, failed immediately saying
that the compiler could not be found.
So I launched the Qt 4.0.1 command prompt from the start menu, which
sets QTDIR and adds MinGW to $PATH, and ran the qsa exe from there. It
didn't detect MinGW nor Qt again, so I set QTDIR again and clicked Next.
Everything went fine for some minutes, with lots of compiling lines, up
to the following lines (just the relevant ones and some context):
C:\Qt\4.0.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_EDITION=QT_EDITION_DESKTOP -DQSA_DLL -DHAVE_CONFIG_H -DQSDEBUGGER
-DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_DLL -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.0.1/include/QtGui"
-I"C:/Qt/4.0.1/include/QtCore" -I"C:/Qt/4.0.1/include" -I"..\engine"
-I"..\kernel" -I"." -I"..\engine" -I"." -I"..\private_headers"
-I"C:/Qt/4.0.1/include/ActiveQt" -I"tmp\moc\debug_shared"
-I"C:/Qt/4.0.1/mkspecs/win32-g++" -D__GNUC__ -DWIN32
../engine/qsengine.h -o tmp\moc\debug_shared\moc_qsengine.cpp
g++ -c -g -g -Wall -frtti -fexceptions -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_EDITION=QT_EDITION_DESKTOP -DQSA_DLL -DHAVE_CONFIG_H -DQSDEBUGGER
-DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_DLL -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.0.1/include/QtGui"
-I"C:/Qt/4.0.1/include/QtCore" -I"C:/Qt/4.0.1/include" -I"..\engine"
-I"..\kernel" -I"." -I"..\engine" -I"." -I"..\private_headers"
-I"C:/Qt/4.0.1/include/ActiveQt" -I"tmp\moc\debug_shared"
-I"C:/Qt/4.0.1/mkspecs/win32-g++" -o tmp\obj\debug_shared\moc_qsengine.o
tmp\moc\debug_shared\moc_qsengine.cpp
C:\Qt\4.0.1\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_EDITION=QT_EDITION_DESKTOP -DQSA_DLL -DHAVE_CONFIG_H -DQSDEBUGGER
-DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_DLL -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.0.1/include/QtGui"
-I"C:/Qt/4.0.1/include/QtCore" -I"C:/Qt/4.0.1/include" -I"..\engine"
-I"..\kernel" -I"." -I"..\engine" -I"." -I"..\private_headers"
-I"C:/Qt/4.0.1/include/ActiveQt" -I"tmp\moc\debug_shared"
-I"C:/Qt/4.0.1/mkspecs/win32-g++" -D__GNUC__ -DWIN32
../engine/qstimeouttrigger.h -o
tmp\moc\debug_shared\moc_qstimeouttrigger.cpp
g++ -c -g -g -Wall -frtti -fexceptions -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_EDITION=QT_EDITION_DESKTOP -DQSA_DLL -DHAVE_CONFIG_H -DQSDEBUGGER
-DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW
-DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_DLL -DQT_CORE_LIB
-DQT_GUI_LIB -DQT_THREAD_SUPPORT -I"C:/Qt/4.0.1/include/QtGui"
-I"C:/Qt/4.0.1/include/QtCore" -I"C:/Qt/4.0.1/include" -I"..\engine"
-I"..\kernel" -I"." -I"..\engine" -I"." -I"..\private_headers"
-I"C:/Qt/4.0.1/include/ActiveQt" -I"tmp\moc\debug_shared"
-I"C:/Qt/4.0.1/mkspecs/win32-g++" -o
tmp\obj\debug_shared\moc_qstimeouttrigger.o
tmp\moc\debug_shared\moc_qstimeouttrigger.cpp
windres -i qsad_resource.rc -o tmp\obj\debug_shared\qsad_resource.o
--include-dir=.
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -shared
-Wl,--out-implib,C:\Qt\4.0.1\lib\libqsad1.a -o
"C:\Qt\4.0.1\lib\qsad1.dll" object_script.qsad.Debug
-L"C:\Qt\4.0.1\lib" -L"C:\Qt\4.0.1\lib"
tmp\obj\debug_shared\qsad_resource.o -LC:\Qt\4.0.1/lib -lQtCored4 -lQtGuid4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lQtCored4
collect2: ld returned 1 exit status
mingw32-make[4]: *** [C:\Qt\4.0.1\lib\qsad1.dll] Error 1
mingw32-make[4]: Leaving directory `C:/QSA/1.2.0/src/qsa'
mingw32-make[3]: *** [debug-all] Error 2
mingw32-make[3]: Leaving directory `C:/QSA/1.2.0/src/qsa'
mingw32-make[2]: *** [sub-qsa-make_default-ordered] Error 2
mingw32-make[2]: Leaving directory `C:/QSA/1.2.0/src'
mingw32-make[1]: *** [sub-src-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/QSA/1.2.0'
mingw32-make: *** [run-make] Error 2
configure failed to automake
Create folder: C:\Documents and Settings\All Users\Menú
Inicio\Programas\Trolltech QSA v1.2.0\Examples
Output folder: C:\QSA\1.2.0
Created uninstaller: C:\QSA\1.2.0\uninst.exe
Create shortcut: C:\Documents and Settings\All Users\Menú
Inicio\Programas\Trolltech QSA v1.2.0\Trolltech.com.lnk
Create shortcut: C:\Documents and Settings\All Users\Menú
Inicio\Programas\Trolltech QSA v1.2.0\Uninstall QSA 1.2.0.lnk
Completed
Not that I don't understand what the error is, but I think this is all
about some missing environment variable or path setting or something
like that that I cannot guess. There's nothing in the list archive, so
everybody must be succeeding at installing it.
I would be very glad if someone can give me a clue about this.
Thanks a lot!
Also congratulations for this great piece of software! I've been, not
without great effort, to plug Qt3 and SpiderMonkey together these last
months and finding QSA has been glorious! :) Don't know if this is brand
new but it is to me.
--
[ signature omitted ]
Message 2 in thread
Guillermo Pereyra Irujo wrote:
>> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
>> cannot find -lQtCored4
>> collect2: ld returned 1 exit status
>> mingw32-make[4]: *** [C:\Qt\4.0.1\lib\qsad1.dll] Error 1
>> mingw32-make[4]: Leaving directory `C:/QSA/1.2.0/src/qsa'
Well, it turned out to be that I hadn't built the debug libraries. I did
and it finally worked. :)
Some kind of warning about Qt's debug libraries in the QSA installation
would be nice for unexperienced people. It took me all these days to
figure out that the 'd' in QtCored4 meant 'debug'. You may say I'm too
slow hehe, but I'm not the only one.
Thanks anyway!
--
[ signature omitted ]
Message 3 in thread
Guillermo Pereyra Irujo wrote:
> Guillermo Pereyra Irujo wrote:
>
>>> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
>>> cannot find -lQtCored4
>>> collect2: ld returned 1 exit status
>>> mingw32-make[4]: *** [C:\Qt\4.0.1\lib\qsad1.dll] Error 1
>>> mingw32-make[4]: Leaving directory `C:/QSA/1.2.0/src/qsa'
>
>
> Well, it turned out to be that I hadn't built the debug libraries. I did
> and it finally worked. :)
>
> Some kind of warning about Qt's debug libraries in the QSA installation
> would be nice for unexperienced people. It took me all these days to
> figure out that the 'd' in QtCored4 meant 'debug'. You may say I'm too
> slow hehe, but I'm not the only one.
Hi Guillermo,
Sorry for not responding earlier, but I've been away for a few days. QSA
should really follow the same configuration as Qt so if Qt is in
release, you shouldn't need the debug libs. I'm glad you figured it out
though and I'll look into fixing this for next release.
best regards,
Gunnar
To unsubscribe - send "unsubscribe" in the body to qsa-interest-request@xxxxxxxxxxxxx
Message 4 in thread
Gunnar Sletta wrote:
> Sorry for not responding earlier, but I've been away for a few days.
It's okay! :)
> QSA should really follow the same configuration as Qt so if Qt is in
> release, you shouldn't need the debug libs. I'm glad you figured it
> out though and I'll look into fixing this for next release.
Is there any way I can make that happen with this release? I won't be
able to change the .exe installer process but I guess some project file
or something can be changed in the .zip distribution file before
compiling... am I wrong?
Thanks again!
--
[ signature omitted ]