Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2008
Compiling Qt 4.3.4 with debug on Windows


Message 1 in thread

As the subject says, I'm trying to compile Qt on Windows with debugging 
info. I've installed Qt 4.3.4 with MinGW. I've added the mingw-utils. 
I've installed the MySQL 5.0.51b no-install sources, and done the 
"reimp" thing to both the opt and debug libraries (as mentioned in many 
pages). Basically, it looks like this:

C:\MySQL\5.0.51b\lib\opt>reimp -d libmysql.lib
C:\MySQL\5.0.51b\lib\opt>dlltool --input-def libmysql.def --dllname 
libmysql.dll --output-lib libmysql.a -k

C:\MySQL\5.0.51b\lib\debug>reimp -d libmysql.lib
C:\MySQL\5.0.51b\lib\debug>dlltool --input-def libmysql.def --dllname 
libmysql.dll --output-lib libmysql.a -k

C:\Qt\4.3.4>configure -platform win32-g++ -static -debug-and-release 
-no-sql-sqlite -qt-sql-mysql -I c:\mysql\5.0.51b\include -L 
c:\mysql\5.0.51b\lib\opt -l mysql

C:\Qt\4.3.4>mingw32-make sub-src

C:\Qt\4.3.4>mingw32-make debug

On the debug build, I get this error:

cd assistant\ && mingw32-make debug
mingw32-make[2]: Entering directory `C:/Qt/4.3.4/tools/assistant'
mingw32-make -f Makefile.Debug
mingw32-make[3]: Entering directory `C:/Qt/4.3.4/tools/assistant'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
-Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl
,-subsystem,windows -o ..\..\bin\assistant.exe 
object_script.assistant.Debug  -L"c:\Qt\4.3.4\lib" -L
"c:\Qt\4.3.4\lib" -lmingw32 -lqtmaind 
tmp\obj\debug_static\assistant_res.o -lQtXmld -lQtGuid -lQtNet
workd -lQtCored -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool 
-lmsimg32 -lQtCored4 -lkern
el32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 
-Lc:\mysql\5.0.51b\lib\opt -lmysql
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -lQtCored4
collect2: ld returned 1 exit status
mingw32-make[3]: *** [..\..\bin\assistant.exe] Error 1
mingw32-make[3]: Leaving directory `C:/Qt/4.3.4/tools/assistant'
mingw32-make[2]: *** [debug] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.3.4/tools/assistant'
mingw32-make[1]: *** [sub-assistant-sub_Debug_ordered] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/tools'
mingw32-make: *** [sub-tools-sub_Debug_ordered] Error 2


Unfortunately, not being able to find "QtCored4" is EXACTLY why I'm here 
to begin with. See, I'm trying to compile Qt with MySQL support such 
that I can get the sqlbrowser demo program to work with debugging 
capability. In Eclipse (with the Qt plugin), I'm getting exactly the 
same error:

Severity and Description    Path    Resource    Location    Creation 
Time    Id
cannot find -lQtCored4        sqlbrowser    line 0    1210082089078    2
make: *** [debug] Error 2        sqlbrowser    line 0    1210082089078    4
make[1]: *** [debug\sqlbrowser.exe] Error 1        sqlbrowser    line 
0    1210082089078    3
Invalid project path: Include path not found 
(C:\Qt\4.3.4\include\ActiveQt).        sqlbrowser    pathentry    
1210082005375    1


In my C:\Qt\4.3.4\lib directory, I have a libQtCore4.a, libQtCore.a, and 
libQtCored.a, but no libQtCored4.a (obviously).

Does anyone know what's going on here?

Additionally, I'll freely admit that I'm new to Qt in general, and 
especially to trying to get the toolchain all set up on Windows. I spent 
ALL DAY yesterday, going around in circles, before I finally put it 
together how to do what I listed up top here. (In retrospect, it doesn't 
seem that hard, but I guess that's how it always is.) So, ANY advice on 
how to simply get setup on Windows to build a statically-compiled Qt app 
that can access a MySQL database would be GREATLY APPRECIATED!!!

Thanks,
dk

--
 [ signature omitted ] 

Message 2 in thread

How can I play QuickTime movies with a Qt/Phonon widget on Windows XP?

I've installed the Qt 4.4 demo and run the Media Player demo. This works fine with wmv and other formats, but with QuickTime I only get an audio track. (I've installed a DirectShow QuickTime filter and can play QuickTime in Windows Media Player.)

I realise this isn't really a Qt question, but I'm not sure from the Qt Phonon documentation where else to look.

Sam Dutton
 





SAM DUTTON
SENIOR SITE DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F 
E Sam.Dutton@xxxxxxxxx
WWW.ITN.CO.UK

P  Please consider the environment. Do you really need to print this email?
Please Note:

 

Any views or opinions are solely those of the author and do not necessarily represent 
those of Independent Television News Limited unless specifically stated. 
This email and any files attached are confidential and intended solely for the use of the individual
or entity to which they are addressed. 
If you have received this email in error, please notify postmaster@xxxxxxxxx 

Please note that to ensure regulatory compliance and for the protection of our clients and business,
we may monitor and read messages sent to and from our systems.

Thank You.


--
 [ signature omitted ] 

Message 3 in thread

David Krider wrote:
> On the debug build, I get this error:
>
> cd assistant\ && mingw32-make debug
> mingw32-make[2]: Entering directory `C:/Qt/4.3.4/tools/assistant'
> mingw32-make -f Makefile.Debug
> mingw32-make[3]: Entering directory `C:/Qt/4.3.4/tools/assistant'
> g++ -enable-stdcall-fixup -Wl,-enable-auto-import 
> -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl
> ,-subsystem,windows -o ..\..\bin\assistant.exe 
> object_script.assistant.Debug  -L"c:\Qt\4.3.4\lib" -L
> "c:\Qt\4.3.4\lib" -lmingw32 -lqtmaind 
> tmp\obj\debug_static\assistant_res.o -lQtXmld -lQtGuid -lQtNet
> workd -lQtCored -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm 
> -lwinspool -lmsimg32 -lQtCored4 -lkern
> el32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 
> -Lc:\mysql\5.0.51b\lib\opt -lmysql
> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
> cannot find -lQtCored4
> collect2: ld returned 1 exit status
> mingw32-make[3]: *** [..\..\bin\assistant.exe] Error 1
> mingw32-make[3]: Leaving directory `C:/Qt/4.3.4/tools/assistant'
> mingw32-make[2]: *** [debug] Error 2
> mingw32-make[2]: Leaving directory `C:/Qt/4.3.4/tools/assistant'
> mingw32-make[1]: *** [sub-assistant-sub_Debug_ordered] Error 2
> mingw32-make[1]: Leaving directory `C:/Qt/4.3.4/tools'
> mingw32-make: *** [sub-tools-sub_Debug_ordered] Error 2

I don't have any problem following up my own posts, so someone better 
tell me if that's not alright... ;-)

Anyway, I just wanted to add that I don't understand where the whole 
"QtCored4" thing comes from. I can edit the Makefile.Debug file, 
eliminate the reference to that library, and make the debug build by 
hand. However, Eclipse will then regenerate that file, complete with the 
reference, when I try to do a "debug" build. So where does it understand 
that it needs that library? What is telling Eclipse to put that 
reference in the Makefile.Debug file?

If I search the ENTIRE Qt source directory, I see the letters "qtcored4" 
in files under the demos and the examples (which I will assume don't 
count), and under -some- of the *.prl files in the lib directory (which 
I think count very much), and the Makefile.Debug files in the "tools" 
directories (which I'm not sure about, but that is, indeed, where this 
thing is falling down). Again, how does Qt itself know to reference this 
thing, when it's apparently not getting created!?

Thanks,
dk

--
 [ signature omitted ]