Hi,
I'm using Fedora 8 and I've just installed edyuk 1.0.0-rc2 and qt4-devel-4.3.4. I compiled edyuk with no problems, then I run the edyuk and selected new project and new qt gui application. This sample code was generated:
#include <QLabel>
#include <QApplication>
int main(int argc, char **argv)
{
QLabel l
("Hello Qt community!");
l.show();
return app.exec();
}
#include <QLabel>
#include <QApplication>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QLabel l("Hello Qt community!");
l.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
But pressing the compile & run button gives me this error:
-- Task started --
>> Step 0 : Generate <<
/home/user/Desktop/edyuk-1.0.0-rc2/hello_world $ qmake "/home/user/Desktop/edyuk-1.0.0-rc2/hello_world/hello_world.pro"
>> Step 1 : Compile <<
/home/user/Desktop/edyuk-1.0.0-rc2/hello_world $ make ""
g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.3/include -o main.o main.cpp
main.
cpp:13:18: error
: QLabel: nenÃ* souborem ani adresá
řemmain.
cpp:14:24: error
: QApplication: nenÃ* souborem ani adresá
řemmain.cpp: In function 'int main(int, char**)':
main.cpp:18: error: 'QApplication' was not declared in this scope
main.cpp:18: error: expected `;' before 'app'
main.cpp:20: error: 'QLabel' was not declared in this scope main.cpp:20: error: expected `;' before 'l'
main.cpp:21: error: 'l' was not declared in this scope
main.cpp:23: error: 'app' was not declared in this scope
main.cpp: At global scope:
main.cpp:16: warning: unused parameter 'argc'
main.cpp:16: warning: unused parameter 'argv'
make: *** [main.o] Error 1
-- Task ended due to error(s) --
-- Task started --
>> Step 0 : Generate <<
/home/user/Desktop/edyuk-1.0.0-rc2/hello_world $ qmake "/home/user/Desktop/edyuk-1.0.0-rc2/hello_world/hello_world.pro"
>> Step 1 : Compile <<
/home/user/Desktop/edyuk-1.0.0-rc2/hello_world $ make ""
g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DQT_NO_DEBUG -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.3/include -o main.o main.cpp
main.cpp:13:18: error: QLabel: nenÃ* souborem ani adresářem
main.cpp:14:24: error: QApplication: nenÃ* souborem ani adresářem
main.cpp: In function 'int main(int, char**)':
main.cpp:18: error: 'QApplication' was not declared in this scope
main.cpp:18: error: expected `;' before 'app'
main.cpp:20: error: 'QLabel' was not declared in this scope
main.cpp:20: error: expected `;' before 'l'
main.cpp:21: error: 'l' was not declared in this scope
main.cpp:23: error: 'app' was not declared in this scope
main.cpp: At global scope:
main.cpp:16: warning: unused parameter 'argc'
main.cpp:16: warning: unused parameter 'argv'
make: *** [main.o] Error 1
-- Task ended due to error(s) --
To copy to clipboard, switch view to plain text mode
I guess that it can't locate the qt4 headers, QLabel and QApplication, but I have them installed in /usr/include/Qt/ and I have no idea how to tell the edyuk or compiler where it can find those headers.
Can you please help me solve this problem?
Thanks in advance, Marty
Bookmarks