error PRJ0019 while using qtest library
Hi all,
I created vcproject using qmake -tp vc and i opened it using Visual Studio 2005
I build it and i got sln file, In my code i am using qttest library, It's working in my system properly, If i try to build the same sln file from some other system it's showing error like,
Project : error PRJ0019: A tool returned an error code from "MOC TestExample.h"
TestExample.h is my testcase File
class TestExample:public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void init();
void test();
};
TestExample.cpp
#include "TestExample.h"
void TestExample::test()
{
QVERIFY2(1 == 1 , " Testing Failed");
}
void TestExample::initTestCase()
{
}
void TestExample::init()
{
}
From main I am calling like below,
#include<QApplication>
#include "TestExample.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
TestExample testExample;
QTest::qExec(&testExample,argc,argv);
}
If any one knows help me?
Re: error PRJ0019 while using qtest library
And what if you forget about .sln (don't even transfer it to the other machine) and try to open .vcproj instead? Or just re-generate it with qmake..
Re: error PRJ0019 while using qtest library
I tried even with opening .vcproj file this also gives same problem ..
Re: error PRJ0019 while using qtest library
Just be aware that it will actually open the .sln in case it exists. That's why I explicitly mentioned not to transfer .sln. Anyway, why do you transfer Visual Studio specific files at all? They are not portable and you can survive without them.
Re: error PRJ0019 while using qtest library
Thank you jpn for ur valuable reply
I tried to create new vcproject file in another system that is working,
The same vcproject file is giving problem, even without old sln file also . [I did n't transfer sln file ]