Ok ... well... after all day, I got it down to 1 error.
Error 1 error PRJ0019: A tool returned an error code from "Rcc'ing mediaplayer.qrc..." MediaPlayer MediaPlayer
Anyone?
Main Topics
Browse All TopicsI'm new to C++ and QT. I downloaded and installed qt-win-eval-4.5.0-vs2008.e
I did hello world and it worked (once I googled a bit and realized that the HW example was from QT 3). Then I did the example in chapter 2 and it worked. And I got greedy.
I loaded Media Player (C:\Qt\4.5.0\demos\mediapl
Error 1 error LNK2019: unresolved external symbol _main referenced in function _WinMain@16 qtmaind.lib MediaPlayer
So I went to the linker and told it to ignore all default librarys (not sure that was the right thing, /NODEFAULTLIB), and recompiled, and it actually looks better even though the number of errors has gone up:
Error 1 error LNK2019: unresolved external symbol ___security_cookie referenced in function "public: __thiscall MediaPlayer::MediaPlayer(c
My question is: Was I supposed to compile QT (I did download the open source -- qt-sdk-win-opensource-2009
Thanks,
JJ
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The .qrc file is a QT resource file which needed to be interpreted by a QT tool installed in Visual Studio.
I would guess there is still an installation missing or the mediaplayer.qrc requires a different version of the tool.
You may check the following page http://filext.com/file-ext
You also may check whether the mediaplayer.qrc is available in your project and whether the folder where it resides is one of the known project folders. Also check the build step defined for that file (you should find the mediaplayer.qrc somewhere in the project tree - if not that might be the issue - right-click and choose properties to find out what build-steps were defined). Here the paths to tool and file should be known in the standard directories of Visual Studio (Tool - Option - Projects - VC Directories ...) or in the project specific 'Additional Directories' for includes (preprocessor) and resources.
Ok, here is what I did. I compiled QT 2009.01 as per:
http://rajorshi.net/blog/2
And was able to compile the project via 2008 command line 1) qmake -project 2) qmake mediaplayer.pro 3) nmake (also as per above link).
But I am still not able to compile / run in Visual Studio (now using VC++ 2008 Express).
It says
RCC mediaplayer.qrc
C:\Qt\2009.01\qt\\bin\rcc.
Project : error PRJ0019: A tool returned an error code from "RCC mediaplayer.qrc"
Which I KNOW is simple.
I know someone out there knows this.
The file is in the Visual C++ 2008 Express project already. So why would it say that it isn't there?
How do I get this code to be accepted by the Visual Studio 2008 compiler?
I'm perplexed here. I joined EE because people always had answers to my problems. Now ... nothing! It can't be just a bunch of .NET people here. There have to be some people that know C++.
There is at LEAST one person who is reading this who knows what my problem is!
>>>> The file is in the Visual C++ 2008 Express project already.
The C:\Qt\2009.01\qt\\bin\rcc.
Try to find out where the rcc will be invoked. It probably is in the pre-build step of the mediaplyer.qrc (right-click on the file in the project tree and choose properties). Here try to add a path to the file (no spaces or put all in "").
Thank you itsmeandnobodyelse, but why did it take an entire month for someone to tell me this? :(
Right-clicking the actual file in the project tree (mediaplayer.qrc), in the 'Custom Build Step' (General tab), I changed it to
$(QTDIR)\bin\rcc.exe -name mediaplayer c:\qt\2009.01\qt\demos\med
With the full path of mediaplayer.qrc in there, it works great now.
That being said, I sort of lost the political battle for QT (but not the war), and we're stuck with microsoft again.
Thanks,
JJ
Business Accounts
Answer for Membership
by: jj_30Posted on 2009-04-21 at 08:26:26ID: 24195516
Also, the QT modules I picked: Core Library, Gui library, openGL library, SVG library, and Qt3 Support Library (QT project settings -- QT Modules).