hi ,
this is almost the repeat post of phonon module question. how can i get phonon enabled and use it in applications with qt-4.5.1-mingw-windows.exe version? is it compulsory to compile sources of qt to active phonon? thanks in advance. bye
Printable View
hi ,
this is almost the repeat post of phonon module question. how can i get phonon enabled and use it in applications with qt-4.5.1-mingw-windows.exe version? is it compulsory to compile sources of qt to active phonon? thanks in advance. bye
Please read this: http://wiki.qtcentre.org/index.php?t...ws_using_MinGW
But, you also need a GCC-adapted dvdmedia.h file from the Strawberry Perl (strawberryperl.com) package. Copy this dvdmedia.h into the include dir of MinGW, and recompile Phonon and backend.
Another way - you can recomile the whole Qt with Visual Studio C++.
can I then compile my qt progs with mingw?Quote:
Another way - you can recomile the whole Qt with Visual Studio C++.
No, you need to stick with one compiler.
I prefer mingw. Its simple and my way. its free software. universal. cross platform (a thing qt is/claims to be). I am a free software lover (hence the username FS Lover). I like independence too.
I will try to compile phonon with mingw.
but I haven't high speed internet connection in home. tommorow I will download kdewin32 package at work.
but I have a question in advance. that wiki article says 'Copy the file comdef.h from kdewin32/include/mingw into kdewin32/include/directx'.
so where is the kdewin32/include/directx on my system? should I install anything before?
this link: http://websvn.kde.org/trunk/kdesupport/kdewin32/
does not work and I couldn't find any other download link.
can anybody help me please?
another question: why is dvdmedia.h from strawberry perl needed? its not mentioned in the wiki article.
I found http://windows.kde.org/download.php. is that ok?
additionally it seems that overal download will be huge (see http://techbase.kde.org/Projects/KDE...s_and_contents). I have a 256Kb connection.
is there any way for downloading only those components necessary for compiling phonon?
apparently kdewin32 installer has a package selection for download, but I don't know which packages should I choose. also there is a binary, a devel, and a src selection option for each package; which ones should I select?
oh no, it has too many options!! too many packages. too many bytes. it huge!
please help me! help...
Please edit your posts instead of replying to your own posts.
I am downloding. I chose only some packages that I thought are relevant to phonon. some have clear names (phonon*).
microsoft directx sdk alone is about 452MB and its download is in progress now.
in the installer program there were some options such as mingw or msvc type that I chose mingw version. I think these can cause mistakes buy less powerful users.
they don't certainly know which type and packages should they download.
I think a step by step tutorial with exactly those minimal resources required for compiling phonon is a must.
BTW I think I found another repository for kdewin32 files by looking at some ini file of the kdewin32 installer program, so I insert that link here so that if someone some day find this topic probably there is some useful info for him:
ftp://gd.tuwien.ac.at/kde/stable/4.2.3/win32/
now I have these files downloaded:
are they sufficient?Code:
29,114 config.txt 462,460,792 dxsdk_apr2007.exe 475,844 OggDS0995.exe 54 expat-2.0.1-bin.zip.md5 66,829 expat-2.0.1-bin.zip 65 phonon-mingw-4.3.0-bin.tar.bz2.md5 384,131 phonon-mingw-4.3.0-bin.tar.bz2 65 phonon-mingw-4.3.0-lib.tar.bz2.md5 147,308 phonon-mingw-4.3.0-lib.tar.bz2 65 phonon-mingw-4.3.0-src.tar.bz2.md5 566,452 phonon-mingw-4.3.0-src.tar.bz2 65 dbus-mingw-1.2.4-1-bin.tar.bz2.md5 1,170,713 dbus-mingw-1.2.4-1-bin.tar.bz2 63 qt-mingw-4.4.3-3-bin.tar.bz2.md5 16,037,341 qt-mingw-4.4.3-3-bin.tar.bz2 60 runtime-mingw-1.0-bin.zip.md5 3,604 runtime-mingw-1.0-bin.zip 827 kdewin-installer.log
any help please?
have I to install with kde installer first?
wiki: Make sure your Qt is configured with -phonon -phonon-backend.
how?
I am ready to re-compile qt.
but I want to know before if MS DirectX SDK or any other windows related parts should be installed on my system or not before compiling qt.
I have windows XP SP2.
should I issue the build commands in the src dir?
I am also looking for method to use phonon on windows.. I found that phonon is present in the kdewin32 project. Is it possible to use the precompiled binary from the project?
http://sourceforge.net/projects/kde-windows/files/
I am quite confused about the instruction now..
1. In fact, what is phonond.dll ? I think the correct name for DS9 background is phonon_ds9.dll , and the dll of phonon is phonond.dll . I have searched "phonond" in the source tree of qt 4.5.2 , but could only found the target of phonon_ds9
2. Do I need to build kdewin32?
3. Do I need to recompile the whole QT 4.5.2? Or I need to build the DS9 backend only?
I tried this already but I couldn't get it to work.
it seems that there should exist some more easy and reliable way for solving all of this mess:
but the patch was not completely successful; it had one case of reject.Quote:
Thank you for your mail. You can try the following patch, which still hasn't been accepted by MinGW, it should solve the problem:
http://sourceforge.net/tracker/?func...35&atid=302435
Regards,
Martin
--
Martin Pejcoch, Support Engineer
Qt Software, Nokia, Oslo, Norway
I tried to apply the rejected section manually (I found those C syntax errors in a struct within another .h file);
I started re-compiling qt; that took several hours but eventually I got webkit compilation errors, phonon plugin/backend was not created (although a phonon.dll was created), and programs (qt examples) while compiled and executed without errors but couldn't playback any file.
now, I decided to download the (probably whole) kdewin and try another way according to the the wiki article.
after about 6 hours of compiling, I got the same results as with the mingw patch method.
although I downloaded only those parts of the kdewin project's source tree that seemed to be necessary (mingw and directx includes).
I still have some ideas to try (downloading whole kdewin doesn't seem to be necessary, so it would be on the end of the list).
there are several possible combination of methods and configurations to try.
it seems that there is a problem with compiling webkit. can anybody tell me how to disable (re)compiling of webkit?
I am now compiling again.
this time with a combination of methods.
I patched mingw headers and added extra .h files.
I replaced qt's phonon sources with those in the kdewin project.
I acted according to the wiki article too.
finally I specified the release target to the mingw32-make command (probably it will work and will be much faster for my tests since no debug dlls are generated).
any help/advice and ideas are very welcome.
somebody some day should address this problem.
qt is amongst the few free/open source alternative gui/application frameworks on windows for us. personally I hate dependence on tools like MS VC (I think it is not free software too that is even worse).
and it is very unfortunate that phonon support is lacked with mingw version of qt while it has no problem with MS VC or on other platforms. qt claims to be cross platform and it is one of the reasons we chose it. but now its in doubt with this ugly situation.
It should not be so hard and complicated to solve since all involved parts are free/open source software that are available for windows too.
Hi FS Lover,
I would also like to try to build the mingw version . Do you mind to post more detailed instruction of your work? e.g the version of qt source code used , the parameter passed to configure script , and what was patched.
I have downloaded the qt-win-opensource-src-4.5.2 , and run "configure -phonon-backend" , however the output shown that the support of phonon is disabled:
Phonon support..............no
WebKit support..............yes
QtScriptTools support.......yes
Graphics System.............raster
I don't need and don't like tools like qt creator.
I need phonon support with mingw.
I need a completely free environments and tools.
I need independence.
all of these are reasons why I chose Qt.
I can and will try even more to add phonon support to mingw version.
but I am an application developer, not an OS or programming framework developer!
spending too much time and energy in this field on a product that is not mine seems not to be rational any more.
I want html docs again to appear in qt directory too! as was the case before recent versions of qt.
I didn't like qt assistant too and I used firefox for reading docs. it is more fast, flexible and feature rich.
dont you find the index feature of qt assistant good enough to browser?
I read the whole documentation from the begining and firefox was far better for me.
additionally, qt assistant was slower on my system.
I used categorized index of html docs very well.
besides all of these firefox allowed me to enlarge fonts very easily.
for studying I almost always enlarge fonts to realy big sizes and study from a distance.
it is the reason I still have my eyes healthy!
I feel and use very better all other features of firefox such as bookmarks etc. that are standard and we use everyday in the web. it has a history too. etc...
Code:
ialiasedLines(const QPainterPath&, QD3DBatchItem**, const QRectF&)': painting\qpaintengine_d3d.cpp:2109: warning: converting to `int' from `qreal' painting\qpaintengine_d3d.cpp:2110: warning: converting to `int' from `qreal' painting\qpaintengine_d3d.cpp: In member function `virtual void QD3DDrawHelper:: addTrap(const QTessellator::Trapezoid&)': painting\qpaintengine_d3d.cpp:2514: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp:2517: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp:2520: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp:2524: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp:2527: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp:2530: warning: converting to `DWORD' from `float' painting\qpaintengine_d3d.cpp: In member function `void QD3DDrawHelper::tessella te(const QPolygonF&)': painting\qpaintengine_d3d.cpp:2568: warning: converting to `int' from `qreal' painting\qpaintengine_d3d.cpp:2569: warning: converting to `int' from `qreal' painting\qpaintengine_d3d.cpp: In member function `virtual void QDirect3DPaintEn gine::updateState(const QPaintEngineState&)': painting\qpaintengine_d3d.cpp:4425: warning: converting to `uint' from `qreal' mingw32-make[2]: *** [tmp/obj/debug_shared/qpaintengine_d3d.o] Error 1 mingw32-make[2]: Leaving directory `D:/Qt/qt/src/gui' mingw32-make[1]: *** [debug-all] Error 2 mingw32-make[1]: Leaving directory `D:/Qt/qt/src/gui' mingw32-make: *** [sub-gui-make_default-ordered] Error 2
I get errors successively. I don't know what I should do!
can anybody help me please?
do you mean it has a history too?!
it's slower anyway.
and since I have most of the time firefox open (for web and other offline docs), there is no desire to open another app just for reading some other doc.
additionally, apparently in recent versions (qt sdk) Assistant is merged inside qt creator. so it is now much more heavy and irrelevant for reading docs.
Don't confuse Qt with Qt SDK, they are two separate packages. And I won't believe assistant is heavier than firefox :)
maybe we should run the MS directX SDK's env batch file before configuring.
it is not mentioned in the wiki article.
but I did that last time but I got compilation errors again.
I am suspected that I should download the latest dx sdk (currently I have that kdewin installer downloaded for me).
I am going to download the latest dx sdk tomorrow and try with it again.
probably that will be my last try with mingw.
if I succeed, probably I will try to provide a step by step guide.
next, probably I will try compiling with MS VC.
why?!!!!!!!!Quote:
maybe we should run the MS directX SDK's env batch file before configuring.
it is not mentioned in the wiki article.
Ok, then I won't believe assistant is heavier or slower than firefox.
your beliefs proved to be false often :D
if you like firefox.. stick with it. But dont argue that what u do is the best and dust is rest.
I want to say qt is becoming more restrictive, taking options from users. html docs are gone!
I want phonon support in mingw version too. its a very important option to use mingw version only.
I suspect they don't work sufficiently on such things in the open source version so that more people buy their commercial version.
for very technical persons (well informed about the OS and system programming) you are right (somewhat).
although commercial version has active qt that open source version hasn't.
I think this is a subtle policy that open source version is available in binary form only with mingw that hasn't phonon module pre-compiled.
I am a technical guy myself, but couldn't re-compile the whole qt successfully with mingw (additionally it is bothersome since takes many hours every time).
there are many errors and needed information. there are too many combinations and possibilities. and no person and no article helped me step by step.
although I am going to re-compile qt by MS VC++ for phonon support, but it is very unfortunate and undesired. I dislike depending on such MS only and Proprietary tools.
additionally, I don't know why isn't a pre-compiled VC++ version available for download. is it for legal reasons?
i dont think they will remove html in patch version... i also have the sdk.. it contains html... better u re download :)
see if you can find all pages of docs in .html files? (all class references, tutorials, examples)
i have checked it.. everything is present.. and i can view them in firefox!!!!! :)
please tell me your html docs directory's address.
/home/MrDeath/qtsdk-2009.02/qt/doc/html
I haven't monitored that lately as I don't use ActiveQt myself, but from what I know ActiveQt is meant to be part of the OS release as well. If it's not, this is probably because of some licencing issues.
I don't think this is part of some policy.Quote:
I think this is a subtle policy that open source version is available in binary form only with mingw that hasn't phonon module pre-compiled.
I am a technical guy myself, but couldn't re-compile the whole qt successfully with mingw (additionally it is bothersome since takes many hours every time).
Make the day have 30 hours instead of 24 and I'll prepare a "guide for newbies" especially for you.Quote:
there are many errors and needed information. there are too many combinations and possibilities. and no person and no article helped me step by step.
The docs are generated form the source code. You have all the tools you need so there is no problem in regenerating them if you need them and somehow didn't find them on your system.
Probably so. Also because Trolltech has always been pushing the use of MinGW instead of MSVC in the open-source edition. MSVC support has always been a battle between Trolltech and the community and eventually Trolltech yielded (somewhere around Qt 4.2 as far as I remember).
This is really their choice you know... The project is open-source - you have access to the sources, the licence doesn't specify you have to have access to all possible binary versions for all possible platforms. If you want Qt pre-compiled for MSVC, consider buying a commercial licence.
qtsdk directory will be there in windows also.. generally in C:\Qt\ or wherever u decided to install it.
i m on Fedora8