[Qt-embedded-interest] Need help in installing Qt-embedded 4.5 in Linux fedora 8

Avishek_Sharma Avishek_Sharma at satyam.com
Mon Mar 23 05:51:20 CET 2009


Hi again,
    I am trying to install Qt-embedded (version 4.5).I got to the final step without any problems but,I didn't understand where to paste the       PATH=/usr/local/Trolltech/QtEmbedded-4.5.0-tp1/bin:$PATH
export PATH  until Felipe told me that I was supposed to paste it in .profile found in my home directory.Since I am logging in as root,I guess that's '/root' for me(newbie to Linux..sorry)...I couldn't find the .profile file in my root directory (tried  ls -a)  so,I created one using 'touch' and pasted the Path=/usr/.... and saved it in /root.
But,when I tried to run one of the demo examples 'textedit',I am getting the following errors(pasted at the end).It seems like 'QTextDocumentWriter' (qt embedded class)is not being found in my system......so,what do you think is the problem?I haven't configured qvfb yet and my system had Qt/X11 4.4.3 installed in it before I tried installing Qt-embedded.I hope someone will be able to tell me what I am doing wrong.Thanks for any possible help/advice.

[root at localhost browser]# cd /usr/local/Trolltech/QtEmbedded-4.5.0-tp1/demos/textedit
[root at localhost textedit]# qmake textedit.pro
[root at 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 at localhost textedit]#

************************************************************************************************************
>1)Do I have to paste the line (PATH=/usr....) at some specific point in the projects.pro<http://projects.pro/> file?
>I just pasted it at the end of the file.More importantly,am I supposed to paste it in the projects.pro<http://projects.pro/> file or are they >meaning some other .profile


 the  ".profile" is not your "projecte.pro<http://projecte.pro>" file.   The ".profile" is another file located usually  on home directory.  You sould find this system file and open it as a root and then add the line that you want, at the ond of file.


>2) After adding the above,what do I do ?
>Do I run qmake,make again (cause I changed the .pro file) or, is this it?
>(update)Did try running qmake,shows-
>[root at localhost qt-embedded]# qmake projects.pro<http://projects.pro>
>/root/Desktop/qt-embedded/projects.pro:8<http://projects.pro:8>: Parse Error ('export PATH')
>Error processing project file: projects.pro<http://projects.pro>

After add the PATH to the correct file , these kind of errors must be eliminated. Try the first correction. Also erase the PATH line from your "projects.pro<http://projects.pro>"  file.


>3)Do I have to configure Qt embedded/qvfb or can I do without that for now(Also,I have Qt/X11 installed in the >same PC so,do I need to do anything at all for 'qvfb')

and for qvfb you need to modify your grub file,  for activite this feature.


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.




More information about the Qt-embedded-interest mailing list