Hi again,
I finally came to know that I am not supposed to paste the 'PATH=/usr/local...' to my projects.pro file but should be adding it to .profile found in 'home' directory.Now,I am a newbie to Linux so,I guess home directory for root is '/root'(I am logging in as root).
I tried 'ls -a' inside root directory but didn't find any .profile...so I followed suggestions from the internet and created one.
I added the PATH=/usr/... to my .profile and saved it in root directory.
(I haven't yet configured 'qvfb' cause I haven't got a clear answer on my query about that till now.)
So,now,when I try to run a demo 'textedit',I get the following errors------------------
[root@localhost browser]# cd /usr/local/Trolltech/QtEmbedded-4.5.0-tp1/demos/textedit
[root@localhost textedit]# qmake textedit.pro
[root@localhost textedit]# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt-4.4.3/mkspecs/linux-g++ -I. -I../../../Qt-4.4.3/include/QtCore -I../../../Qt-4.4.3/include/QtCore -I../../../Qt-4.4.3/include/QtGui -I../../../Qt-4.4.3/include/QtGui -I../../../Qt-4.4.3/include -I. -I. -o textedit.o textedit.cpp
textedit.cpp:58:31: error: QTextDocumentWriter: No such file or directory
textedit.cpp: In member function ‘bool TextEdit::fileSave()’:
textedit.cpp:425: error: ‘QTextDocumentWriter’ was not declared in this scope
textedit.cpp:425: error: expected `;' before ‘writer’
textedit.cpp:426: error: ‘writer’ was not declared in this scope
make: *** [textedit.o] Error 1
[root@localhost textedit]#
[root@localhost browser]# cd /usr/local/Trolltech/QtEmbedded-4.5.0-tp1/demos/textedit
[root@localhost textedit]# qmake textedit.pro
[root@localhost textedit]# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../Qt-4.4.3/mkspecs/linux-g++ -I. -I../../../Qt-4.4.3/include/QtCore -I../../../Qt-4.4.3/include/QtCore -I../../../Qt-4.4.3/include/QtGui -I../../../Qt-4.4.3/include/QtGui -I../../../Qt-4.4.3/include -I. -I. -o textedit.o textedit.cpp
textedit.cpp:58:31: error: QTextDocumentWriter: No such file or directory
textedit.cpp: In member function ‘bool TextEdit::fileSave()’:
textedit.cpp:425: error: ‘QTextDocumentWriter’ was not declared in this scope
textedit.cpp:425: error: expected `;' before ‘writer’
textedit.cpp:426: error: ‘writer’ was not declared in this scope
make: *** [textedit.o] Error 1
[root@localhost textedit]#
To copy to clipboard, switch view to plain text mode
----------------------------------------------
Seems like 'QTextDocumentWriter' a Qt embedded class is not found.I can't figure out what I have been doing wrong or if I missed some step in between(I did follow the installation guide).
Would appreciate some help in resolving this issue.
Thanks in advance.
Bookmarks