Trolltech Home | Qt-embedded-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-embedded-interest Archive, October 2006
Re: 答复: Tmake problem problem


Message 1 in thread

Hi,
Thanks for Ur reply.
I even Tryed that also but still giving the same problem.
I installed qt/x11-2.3.2,qt-2.3.10,qtopia-2.1.1 using Getting started guide
from qtopia doc folder.

After Installing i did the following environment variables.

export TMAKEDIR=/home/harsha/tmake-1.13
 export PATH=$PATH:/home/harsha/tmake-1.13/bin
 export TMAKEPATH=$TMAKEDIR/lib/linux-g++

export QTEDIR=/home/harsha/qt-2.3.10
export QPEDIR=/home/harsha/qtopia-free-2.1.1
export QT2DIR=/home/harsha/qt-2.3.2
export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
/lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
export QTDIR=$QTEDIR
export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
/bin:$PATH
  Even I tryed
export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
/bin:/home/harsha/qt-2.3.10:$PATH
But No use.

The command  qvfb &
Is displaying frame buffer.

harsha:/home/harsha # Using display 0
qpe            //Is displaying the applications but when i click the
application it is not responding.
Following are the warnings when i run  " qpe "

Warning: Cannot load small icon: icons/16x16/wait
Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
Warning: addAppLnk: No view for type Application. Can't add app Suspend!
Warning: Cannot load small icon: icons/16x16/new
Warning: Instructed to quit by Virtual Keyboard
[1]+  Done                    qvfb
harsha:/home/harsha #

And also i don't know why my
tmake  is not working.

Any suggestions are greately appreciatable.

Thanks in advance.

Regards,
Harsha




On 10/20/06, springqi <springqi@xxxxxxxxxxxxxx> wrote:
>
>  About  the second problem, compiling error,  it says that can not find
> ?lqt,
>
> Maybe you need add  $QTDIR/lib to LD_LIBRARY_PATH.
>
> You can try it .
>
> Best wishes!
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006年10月19日 23:01
> *收件人:* qtopia-interest@xxxxxxxxxxxxx
> *主题:* Tmake problem problem
>
>
>
> Hi All,
> I have installed qt-2.3.2,qt-2.3.10,qtopia-free-source-2.1.1 versions in
> my host system.
> When i run
> qvfb & It is opening Vframe buffer.
> And when i use
> qpe
> It is showing all the icons like caluclator,notes,clock............
> But when i click on any icon say caluclator it is not opening at all.
> Infact when i run qpe it is displaying following messages.
> Warning: Cannot load small icon: icons/16x16/wait
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: addAppLnk: No view for type Application. Can't add app Suspend!
> Warning: Cannot load small icon: icons/16x16/new
>
> Any Idea why it is not showing up.
>
> 2 .And Also When i try to compile example dclock programm using tmake it
> is giving following problems.
>  tmake dclock.pro  -o Makefile
> When i run make it is giving following errors.
>
> g++  -o dclock dclock.o main.o moc_dclock.o  -L/home/harsha/qt-2.3.10/lib
> -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lqt
> collect2: ld returned 1 exit status
> make: *** [dclock] Error 1
>
> Infact my LD_LIBRARYPATH points to /qtopia-2.1.1/lib also.
>
> Kindly reply me if some body has idea.
>
> Thanks in advance.
> Regards,
> Harsha
>

Message 2 in thread

Hi,
Thanks a lot for ur reply.
Infact in my target system i am using qt/embedded-2.3.10 and qtopia-2.1.1.
But first i want to compile the application in the host and execute it in
host side.
But finally i want to cross compile it for Target arm board and execute
there.
So if i link it with X11 then i think it will be difficult to again cross
compile .

Even i have used qtopia-sdk-2.2. rpm .which installed perfectly.and there
are no problems there.But i don't know if i use sdk for development purpose
and finally if i want to Xcompile it for target it will create problem or
not?

Using qtopia-SDK and tmake i compiled one sample application and
using qvfb & i run frame buffer also.But now i don't know how to deploy this
executable to framebuffer.


The above message contains lot of queries because i am new to this Qt world.
And one more thing in qtopia ,qt/E mailing lists and qt forums i posted few
queries but i couldn't find replyes.These things are not so active ? Because
Before i used to use Gtk+ there it was instant replies i used to find.For Qt
we don't have like that?

Thanks for ur reply once again.

Regards,
Harsha









On 10/20/06, SpringQi@xxxxxxxxxxxxxx <SpringQi@xxxxxxxxxxxxxx> wrote:
>
>  You compile it for X11 not qtembedded?
>
> If for X11,  it  needs?lqt library,  if  for qtembedded .  then it needs
> ?lqte,
>
> I see from the error message , It can not find ?lqt,  so I guess you
> compile it for x11,
>
> The you can try export    LD_LIBRARY_PATH= …./qt-x11-2.3.2/lib : $
> LD_LIBRARY_PATH
>
> I mean it  needs qt library for x11 edition
>
> Best wishes,
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006年10月20日 15:14
> *收件人:* Spring Qi (Beijing)
> *抄送:* qtopia-interest@xxxxxxxxxxxxx; qt-embedded-interest@xxxxxxxxxxxxx
> *主题:* Re: 答复: Tmake problem problem
>
>
>
> Hi,
> Thanks for Ur reply.
> I even Tryed that also but still giving the same problem.
> I installed qt/x11-2.3.2,qt-2.3.10,qtopia-2.1.1 using Getting started
> guide from qtopia doc folder.
>
> After Installing i did the following environment variables.
>
> export TMAKEDIR=/home/harsha/tmake-1.13
>  export PATH=$PATH:/home/harsha/tmake-1.13/bin
>  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
>
> export QTEDIR=/home/harsha/qt-2.3.10
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
> export QT2DIR=/home/harsha/qt-2.3.2
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:$PATH
>   Even I tryed
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:/home/harsha/qt-2.3.10:$PATH
> But No use.
>
> The command  qvfb &
> Is displaying frame buffer.
>
> harsha:/home/harsha # Using display 0
> qpe            //Is displaying the applications but when i click the
> application it is not responding.
> Following are the warnings when i run  " qpe "
>
> Warning: Cannot load small icon: icons/16x16/wait
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: addAppLnk: No view for type Application. Can't add app Suspend!
> Warning: Cannot load small icon: icons/16x16/new
> Warning: Instructed to quit by Virtual Keyboard
> [1]+  Done                    qvfb
> harsha:/home/harsha #
>
> And also i don't know why my
> tmake  is not working.
>
> Any suggestions are greately appreciatable.
>
> Thanks in advance.
>
> Regards,
> Harsha
>
>
>
>  On 10/20/06, *springqi* <springqi@xxxxxxxxxxxxxx> wrote:
>
> About  the second problem, compiling error,  it says that can not find
> ?lqt,
>
> Maybe you need add  $QTDIR/lib to LD_LIBRARY_PATH.
>
> You can try it .
>
> Best wishes!
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006年10月19日 23:01
> *收件人:* qtopia-interest@xxxxxxxxxxxxx
> *主题:* Tmake problem problem
>
>
>
> Hi All,
> I have installed qt-2.3.2,qt-2.3.10,qtopia-free-source-2.1.1 versions in
> my host system.
> When i run
> qvfb & It is opening Vframe buffer.
> And when i use
> qpe
> It is showing all the icons like caluclator,notes,clock............
> But when i click on any icon say caluclator it is not opening at all.
> Infact when i run qpe it is displaying following messages.
> Warning: Cannot load small icon: icons/16x16/wait
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: Cannot load small icon: suspend/icons/16x16/Shutdown
> Warning: addAppLnk: No view for type Application. Can't add app Suspend!
> Warning: Cannot load small icon: icons/16x16/new
>
> Any Idea why it is not showing up.
>
> 2 .And Also When i try to compile example dclock programm using tmake it
> is giving following problems.
>  tmake dclock.pro  -o Makefile
> When i run make it is giving following errors.
>
> g++  -o dclock dclock.o main.o moc_dclock.o  -L/home/harsha/qt-2.3.10/lib
> -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lqt
> collect2: ld returned 1 exit status
> make: *** [dclock] Error 1
>
> Infact my LD_LIBRARYPATH points to /qtopia-2.1.1/lib also.
>
> Kindly reply me if some body has idea.
>
> Thanks in advance.
> Regards,
> Harsha
>
>
>

Message 3 in thread

Hi SpringQi,
Thanks for ur reply,

I am still having the problem of "cannot find -lqt " even though i tryed all
myo possible ways.
Let me explain you the procedure i used to install.
I am having  qtopia-2.1.1 and qt/E-2.3.10 in my target system (ADS board
with IMX31(ARM11) processor .)

So now i want to develop my application.
My plan is develop application in the host side compile it here and check it
here itself.Finaly Xcompile the application to target using arm toolchain
and port it into the target system.

So I downloaded  same versions of Qt/E-2.3.10 and Qtopia-2.1.1 and also
qt/X11-2.3.2 for my  host system(Suse10).I even downloaded the
tmake-1.13(All are source code)

I fallowed the following procedure to install(As per the
qtopia-documentation).

1. For Tmake
export TMAKEDIR=/home/harsha/tmake-1.13
PATH=$PATH:/home/harsha/tmake-1.13/bin
export TMAKEPATH=$TMAKEDIR/lib/linux-g++

export QTEDIR=/home/harsha/qt-2.3.10
export TMAKEDIR=/home/harsha/tmake-1.13
export QPEDIR=/home/harsha/qtopia-free-2.1.1

2. To build Qt 2.3.2

export QT2DIR=/home/harsha/qt-2.3.2
export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -no-xft

make
mkdir $QTEDIR/bin
cp bin/uic $QTEDIR/bin/


Build QVfb
 In this step we build and link the qvfb sources from Qt 2.3.10 against the
static Qt library from Qt 2.3.2.
    export TMAKEPATH=$TMAKEDIR/lib/linux-g++
    export QTDIR=$QT2DIR
    export PATH=$QTDIR/bin:$PATH
    export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
    cd $QTEDIR/tools/qvfb
    tmake -o Makefile qvfb.pro
    make
    mv qvfb $QTEDIR/bin/

3. Build Qt/Embedded

 If you are using the Qtopia Tools package then first
    export LD_LIBRARY_PATH=$QT2DIR/lib:$LD_LIBRARY_PATH
    cp $QT2DIR/bin/qvfb $QTEDIR/bin/
    cp $QT2DIR/bin/uic $QTEDIR/bin/

To build Qt/Embedded you must do the following:
    cd $QTEDIR
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
  ./configure -system-jpeg -no-xft -qconfig qpe  -qvfb -depths 4,8,16,32
 make sub-src

4. To Build Qtopia
   cd $QPEDIR
    export QTDIR=$QTEDIR
    export PATH=$QPEDIR/bin:$PATH
    ./configure -edition pda -no-qtopiadesktop
    make
  Then it has given the following error

   " /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
cannot find -luuid"

So i Download the e2fsprogs-1.39  package and did
./configure --prefix=/usr ;
 make
 make install
 make install-libs

Also i installed
Install e2fsprogs-devel-1.19.0.i386.rpm

Now if run
qvfb & it is opening Virtual buffer
and "qpe" it is showing up all the application icons.But if i click on any
application icon using
mouse it is not at all opening that application.

I even try to create one application using designer command in qt-2.3.2/bin
.
It opened the qtdesigner and created one application As per the
Qtdesigner tutorial.

uic -o PizzaEntry.h pizza.ui
uic -i PizzaEntry.h -o PizzaEntry.cpp pizza.ui
Then create a PizzaEntryTest.cpp /same like in QTdesigner tutorial.
moc -o moc_PizzaEntry.cpp PizzaEntry.h
g++ -I$QTDIR/include PizzaEntry.cpp PizzaEntryTest.cpp

Then it started giving following error message.

g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
TestdesignerTest.o TestdesignerTest.cpp
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
Testdesigner.o Testdesigner.cpp
/home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip' has
virtual functions but non-virtual destructor
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
moc_Testdesigner.o moc_Testdesigner.cpp
g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
-L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
cannot find -lqt
collect2: ld returned 1 exit status
make: *** [QTDesigner] Error 1

For example aplication compilation iused the fallowing environment settings.



export TMAKEDIR=/home/harsha/tmake-1.13
 export PATH=/home/harsha/tmake-1.13/bin:$PATH
 export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export QTEDIR=/home/harsha/qt-2.3.10
export QPEDIR=/home/harsha/qtopia-free-2.1.1
export QT2DIR=/home/harsha/qt-2.3.2
export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
/lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
export QTDIR=$QTEDIR
export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
/bin:$PATH

This what i did till now .I am trying all my best to solve my problem.
If You can help me to solve this problem i will be greately thankfull to
You.
As per i know some environment variables i am doing wrong but i couldn't
find.
It is pretty long mail but i thought it will give you clear idea of problem.

Thanks in advance,

Regards,
Harsha

Message 4 in thread

Hi  SpringQi,

Thanks a lot for ur reply.

I did the following way.

export TMAKEDIR=/home/harsha/tmake-1.13
export PATH=/home/harsha/tmake-1.13/bin:$PATH
export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export QTDIR=$QT2DIR
export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:$LD_LIBRARY_PATH
export PATH=/home/harsha/qt-2.3.2/bin:$PATH
export QT2DIR=/home/harsha/qt-2.3.2

and
qmake -project  //it has created  *.pro file.
then i used
tmake -Testdesigner.pro -o Makefile          //To create make file

Then
make
it compiled perfectly.
I run the binary it is executing in X.

Even i tryed
qvfb $
and  try to run example binary but stll it runs in X only not in frame
buffer.

How can i make my program to run in frame buffer ?
Do i need to use separate environment variables?

Thanks a lot once again for ur reply.


Regards,
Harsha



















On 10/25/06, SpringQi@xxxxxxxxxxxxxx <SpringQi@xxxxxxxxxxxxxx> wrote:
>
>  Hi, my opinion about your example application.
>
> The followings are your environment variable setting .
>
> export TMAKEDIR=/home/harsha/tmake-1.13
>  export PATH=/home/harsha/tmake-1.13/bin:$PATH
>  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTEDIR=/home/harsha/qt-2.3.10
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
> export QT2DIR=/home/harsha/qt-2.3.2
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:$PATH
>
>
>
> As your example application, it should find ?lqt from /home/harsha/qt-
> 2.3.2/lib, not from /home/harsha/qt-2.3.10/lib.
>
> In the compiling error message, i found it find ?lqt from /home/harsha/qt-
> 2.3.10/lib, if so, it really can not find
>
> -lqt. But The LD_LIBRARY_PATH contains qt-2.3.2/lib, so it is confusing ,
> why don't it search from qt-2.3.2?
>
>
>
> export QTDIR=$QTEDIR ,this is what you set, maybe should change to
> QTDIR=$QT2DIR
>
>
>
> also, In the example application, there is no need to set QTEDIR ,  QPEDIR
> and the LD_LIBRARY_PATH no need to
>
> include qt-2.3.10/lib and qtopia-free-2.1.1/lib
>
>
>
> you may remove some unnecessary variable , and try again
>
> Best wishes,
>
>
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006年10月24日 21:43
> *收件人:* Spring Qi (Beijing)
> *抄送:* qtopia-interest@xxxxxxxxxxxxx; freyther@xxxxxxxxxxxxx;
> qt-embedded-interest@xxxxxxxxxxxxx
> *主题:* Re: 答复: 答复: 答复: Tmake problem problem
>
>
>
> Hi SpringQi,
> Thanks for ur reply,
>
> I am still having the problem of "cannot find -lqt " even though i tryed
> all myo possible ways.
> Let me explain you the procedure i used to install.
> I am having  qtopia-2.1.1 and qt/E-2.3.10 in my target system (ADS board
> with IMX31(ARM11) processor .)
>
> So now i want to develop my application.
> My plan is develop application in the host side compile it here and check
> it here itself.Finaly Xcompile the application to target using arm
> toolchain and port it into the target system.
>
> So I downloaded  same versions of Qt/E-2.3.10 and Qtopia-2.1.1 and also
> qt/X11-2.3.2 for my  host system(Suse10).I even downloaded the tmake-1.13(All are source code)
>
> I fallowed the following procedure to install(As per the
> qtopia-documentation).
>
> 1. For Tmake
> export TMAKEDIR=/home/harsha/tmake-1.13
> PATH=$PATH:/home/harsha/tmake-1.13/bin
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
>
> export QTEDIR=/home/harsha/qt-2.3.10
> export TMAKEDIR=/home/harsha/tmake-1.13
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
>
> 2. To build Qt 2.3.2
>
> export QT2DIR=/home/harsha/qt-2.3.2
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTDIR=$QT2DIR
> export PATH=$QTDIR/bin:$PATH
> export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> ./configure -no-xft
>
> make
> mkdir $QTEDIR/bin
> cp bin/uic $QTEDIR/bin/
>
>
> Build QVfb
>  In this step we build and link the qvfb sources from Qt 2.3.10 against
> the static Qt library from Qt 2.3.2.
>     export TMAKEPATH=$TMAKEDIR/lib/linux-g++
>     export QTDIR=$QT2DIR
>     export PATH=$QTDIR/bin:$PATH
>     export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
>     cd $QTEDIR/tools/qvfb
>     tmake -o Makefile qvfb.pro
>     make
>     mv qvfb $QTEDIR/bin/
>
> 3. Build Qt/Embedded
>
>  If you are using the Qtopia Tools package then first
>     export LD_LIBRARY_PATH=$QT2DIR/lib:$LD_LIBRARY_PATH
>     cp $QT2DIR/bin/qvfb $QTEDIR/bin/
>     cp $QT2DIR/bin/uic $QTEDIR/bin/
>
> To build Qt/Embedded you must do the following:
>     cd $QTEDIR
> cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
>   ./configure -system-jpeg -no-xft -qconfig qpe  -qvfb -depths 4,8,16,32
>  make sub-src
>
> 4. To Build Qtopia
>    cd $QPEDIR
>     export QTDIR=$QTEDIR
>     export PATH=$QPEDIR/bin:$PATH
>     ./configure -edition pda -no-qtopiadesktop
>     make
>   Then it has given the following error
>
>    "
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -luuid"
>
> So i Download the e2fsprogs-1.39  package and did
> ./configure --prefix=/usr ;
>  make
>  make install
>  make install-libs
>
> Also i installed
> Install e2fsprogs-devel-1.19.0.i386.rpm
>
> Now if run
> qvfb & it is opening Virtual buffer
> and "qpe" it is showing up all the application icons.But if i click on any
> application icon using
> mouse it is not at all opening that application.
>
> I even try to create one application using designer command in qt-2.3.2/bin
> .
> It opened the qtdesigner and created one application As per the
> Qtdesigner tutorial.
>
> uic -o PizzaEntry.h pizza.ui
> uic -i PizzaEntry.h -o PizzaEntry.cpp pizza.ui
> Then create a PizzaEntryTest.cpp /same like in QTdesigner tutorial.
> moc -o moc_PizzaEntry.cpp PizzaEntry.h
> g++ -I$QTDIR/include PizzaEntry.cpp PizzaEntryTest.cpp
>
> Then it started giving following error message.
>
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o TestdesignerTest.o TestdesignerTest.cpp
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o Testdesigner.o Testdesigner.cpp
> /home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip'
> has virtual functions but non-virtual destructor
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o moc_Testdesigner.o moc_Testdesigner.cpp
> g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
> -L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lqt
> collect2: ld returned 1 exit status
> make: *** [QTDesigner] Error 1
>
> For example aplication compilation iused the fallowing environment
> settings.
>
>
>
> export TMAKEDIR=/home/harsha/tmake-1.13
>  export PATH=/home/harsha/tmake-1.13/bin:$PATH
>  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTEDIR=/home/harsha/qt-2.3.10
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
> export QT2DIR=/home/harsha/qt-2.3.2
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:$PATH
>
> This what i did till now .I am trying all my best to solve my problem.
> If You can help me to solve this problem i will be greately thankfull to
> You.
> As per i know some environment variables i am doing wrong but i couldn't
> find.
> It is pretty long mail but i thought it will give you clear idea of
> problem.
>
> Thanks in advance,
>
> Regards,
> Harsha
>
>
>
>
>
>
>
>
>
>
>

Message 5 in thread

Hi sprinqi,
Thanks a lot for ur reply.

I tryed follwoing way to compile and run in framebuffer.

/******* To Run the application In Frame buffer. *********/

export PLATFORM=x86-linux
export TMAKEDIR=/home/harsha/tmake-1.13
export PATH=/home/harsha/tmake-1.13/bin:$PATH
export TMAKEPATH=$TMAKEDIR/lib/linux-g++
export QPEDIR=/home/harsha/qtopia-free-2.1.1    //I used this to use qmake

    If I use the following the i cannot use "qmake" binary which is not
there in QPEDIR/bin
       export QPEDIR=/home/harsha/qtopia-free-2.1.1/image/opt/Qtopia


export QMAKESPEC=$QPEDIR/mkspecs/qws/linux-x86-g++
export PATH=$QPEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
export QTEDIR=/home/harsha/qt-2.3.10
export PATH=$QTEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTEDIR/lib:$LD_LIBRARY_PATH
export QTDIR=$QTEDIR         //Even i tryed  export QTDIR=$QPEDIR

uic -o Testdesigner.h Testdesigner.ui
uic -i Testdesigner.h -o Testdesigner.cpp Testdesigner.ui
moc -o moc_Testdesigner.cpp Testdesigner.h

qmake -project  //It will create QTDesigner.pro    //i.e foldername.pro
tmake QTDesigner.pro -o Makefile        //To create makefile
Then Run
make

I got the following errors.

g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
TestdesignerTest.o TestdesignerTest.cpp
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
Testdesigner.o Testdesigner.cpp
/home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip' has
virtual functions but non-virtual destructor
g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include -o
moc_Testdesigner.o moc_Testdesigner.cpp
g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
-L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
cannot find -lqt

Actually this is because of make file
In the make file itself in LIBS it is showing this.
For ur reference i am attaching the makefile which it has generated.
I think makefile creation is the problem.

And about  Using qmake  instead of  tmake QTDesigner.pro -o Makefile     To
create makefile
I tryed
"qmake "  then it has generated the following error
Project ERROR: Please set a target in /home/harsha/QTDesigner

Any thing else i am doing wrong?

Thanks once again  for ur "patience "  replyes.

Regards,
Harsha






On 10/25/06, springqi <springqi@xxxxxxxxxxxxxx> wrote:
>
>  I  compile source code in the following way,
>
> qmake  -project
>
> qmake    // which will generate Makefile
>
> make
>
> and I don't  use tmake
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006年10月25日 13:32
> *收件人:* SpringQi@xxxxxxxxxxxxxx
> *抄送:* qtopia-interest@xxxxxxxxxxxxx; qt-embedded-interest@xxxxxxxxxxxxx
> *主题:* Re: 答复: 答复: 答复: 答复: Tmake problem problem
>
>
>
> Hi  SpringQi,
>
> Thanks a lot for ur reply.
>
> I did the following way.
>
> export TMAKEDIR=/home/harsha/tmake-1.13
> export PATH=/home/harsha/tmake-1.13/bin:$PATH
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTDIR=$QT2DIR
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:$LD_LIBRARY_PATH
> export PATH=/home/harsha/qt-2.3.2/bin:$PATH
> export QT2DIR=/home/harsha/qt-2.3.2
>
> and
> qmake -project  //it has created  *.pro file.
> then i used
> tmake -Testdesigner.pro -o Makefile          //To create make file
>
> Then
> make
> it compiled perfectly.
> I run the binary it is executing in X.
>
> Even i tryed
> qvfb $
> and  try to run example binary but stll it runs in X only not in frame
> buffer.
>
> How can i make my program to run in frame buffer ?
> Do i need to use separate environment variables?
>
> Thanks a lot once again for ur reply.
>
>
> Regards,
> Harsha
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  On 10/25/06, *SpringQi@xxxxxxxxxxxxxx* <SpringQi@xxxxxxxxxxxxxx> wrote:
>
> Hi, my opinion about your example application.
>
> The followings are your environment variable setting .
>
> export TMAKEDIR=/home/harsha/tmake-1.13
>  export PATH=/home/harsha/tmake-1.13/bin:$PATH
>  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTEDIR=/home/harsha/qt-2.3.10
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
> export QT2DIR=/home/harsha/qt-2.3.2
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:$PATH
>
>
>
> As your example application, it should find ?lqt from /home/harsha/qt-
> 2.3.2/lib, not from /home/harsha/qt-2.3.10/lib.
>
> In the compiling error message, i found it find ?lqt from /home/harsha/qt-
> 2.3.10/lib, if so, it really can not find
>
> -lqt. But The LD_LIBRARY_PATH contains qt-2.3.2/lib, so it is confusing ,
> why don't it search from qt-2.3.2?
>
>
>
> export QTDIR=$QTEDIR ,this is what you set, maybe should change to
> QTDIR=$QT2DIR
>
>
>
> also, In the example application, there is no need to set QTEDIR ,  QPEDIR
> and the LD_LIBRARY_PATH no need to
>
> include qt-2.3.10/lib and qtopia-free-2.1.1/lib
>
>
>
> you may remove some unnecessary variable , and try again
>
> Best wishes,
>
>
>
>
>  ------------------------------
>
> *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> *发送时间:* 2006 年10月24日 21:43
> *收件人:* Spring Qi (Beijing)
> *抄送:* qtopia-interest@xxxxxxxxxxxxx; freyther@xxxxxxxxxxxxx;
> qt-embedded-interest@xxxxxxxxxxxxx
> *主题:* Re: 答复: 答复: 答复: Tmake problem problem
>
>
>
> Hi SpringQi,
> Thanks for ur reply,
>
> I am still having the problem of "cannot find -lqt " even though i tryed
> all myo possible ways.
> Let me explain you the procedure i used to install.
> I am having  qtopia-2.1.1 and qt/E-2.3.10 in my target system (ADS board
> with IMX31(ARM11) processor .)
>
> So now i want to develop my application.
> My plan is develop application in the host side compile it here and check
> it here itself.Finaly Xcompile the application to target using arm
> toolchain and port it into the target system.
>
> So I downloaded  same versions of Qt/E-2.3.10 and Qtopia-2.1.1 and also
> qt/X11-2.3.2 for my  host system(Suse10).I even downloaded the tmake-1.13(All are source code)
>
> I fallowed the following procedure to install(As per the
> qtopia-documentation).
>
> 1. For Tmake
> export TMAKEDIR=/home/harsha/tmake-1.13
> PATH=$PATH:/home/harsha/tmake-1.13/bin
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
>
> export QTEDIR=/home/harsha/qt-2.3.10
> export TMAKEDIR=/home/harsha/tmake-1.13
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
>
> 2. To build Qt 2.3.2
>
> export QT2DIR=/home/harsha/qt-2.3.2
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTDIR=$QT2DIR
> export PATH=$QTDIR/bin:$PATH
> export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> ./configure -no-xft
>
> make
> mkdir $QTEDIR/bin
> cp bin/uic $QTEDIR/bin/
>
>
> Build QVfb
>  In this step we build and link the qvfb sources from Qt 2.3.10 against
> the static Qt library from Qt 2.3.2.
>     export TMAKEPATH=$TMAKEDIR/lib/linux-g++
>     export QTDIR=$QT2DIR
>     export PATH=$QTDIR/bin:$PATH
>     export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
>     cd $QTEDIR/tools/qvfb
>     tmake -o Makefile qvfb.pro
>     make
>     mv qvfb $QTEDIR/bin/
>
> 3. Build Qt/Embedded
>
>  If you are using the Qtopia Tools package then first
>     export LD_LIBRARY_PATH=$QT2DIR/lib:$LD_LIBRARY_PATH
>     cp $QT2DIR/bin/qvfb $QTEDIR/bin/
>     cp $QT2DIR/bin/uic $QTEDIR/bin/
>
> To build Qt/Embedded you must do the following:
>     cd $QTEDIR
> cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
>   ./configure -system-jpeg -no-xft -qconfig qpe  -qvfb -depths 4,8,16,32
>  make sub-src
>
> 4. To Build Qtopia
>    cd $QPEDIR
>     export QTDIR=$QTEDIR
>     export PATH=$QPEDIR/bin:$PATH
>     ./configure -edition pda -no-qtopiadesktop
>     make
>   Then it has given the following error
>
>    "
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -luuid"
>
> So i Download the e2fsprogs-1.39  package and did
> ./configure --prefix=/usr ;
>  make
>  make install
>  make install-libs
>
> Also i installed
> Install e2fsprogs-devel-1.19.0.i386.rpm
>
> Now if run
> qvfb & it is opening Virtual buffer
> and "qpe" it is showing up all the application icons.But if i click on any
> application icon using
> mouse it is not at all opening that application.
>
> I even try to create one application using designer command in qt-2.3.2/bin
> .
> It opened the qtdesigner and created one application As per the
> Qtdesigner tutorial.
>
> uic -o PizzaEntry.h pizza.ui
> uic -i PizzaEntry.h -o PizzaEntry.cpp pizza.ui
> Then create a PizzaEntryTest.cpp /same like in QTdesigner tutorial.
> moc -o moc_PizzaEntry.cpp PizzaEntry.h
> g++ -I$QTDIR/include PizzaEntry.cpp PizzaEntryTest.cpp
>
> Then it started giving following error message.
>
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o TestdesignerTest.o TestdesignerTest.cpp
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o Testdesigner.o Testdesigner.cpp
> /home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip'
> has virtual functions but non-virtual destructor
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o moc_Testdesigner.o moc_Testdesigner.cpp
> g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
> -L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lqt
> collect2: ld returned 1 exit status
> make: *** [QTDesigner] Error 1
>
> For example aplication compilation iused the fallowing environment
> settings.
>
>
>
> export TMAKEDIR=/home/harsha/tmake-1.13
>  export PATH=/home/harsha/tmake-1.13/bin:$PATH
>  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QTEDIR=/home/harsha/qt-2.3.10
> export QPEDIR=/home/harsha/qtopia-free-2.1.1
> export QT2DIR=/home/harsha/qt-2.3.2
> export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR
> export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> /bin:$PATH
>
> This what i did till now .I am trying all my best to solve my problem.
> If You can help me to solve this problem i will be greately thankfull to
> You.
> As per i know some environment variables i am doing wrong but i couldn't
> find.
> It is pretty long mail but i thought it will give you clear idea of
> problem.
>
> Thanks in advance,
>
> Regards,
> Harsha
>
>
>
>
>
>
>
>
>
>
>

Attachment:

Attachment: Makefile
Description: Binary data


Message 6 in thread

Hi sprinqi,
It is working now.
I just aeddd
TARGET = QTDesigner    in QTDesigner.pro
Then Used
qmake      //which will create Makefile  insted of tmake QTDesigner.pro -o
Makefile
And then
make
Success
Then used qvfb &  and ./QTDesigner -qws
 finished

Thanks a lot for helping me to come to this stage.

Can i request one thing to u?
Now how can i compile this programm for my target.
I have arm tool chain compiled for my target in one directory.
And Qt/E-2.3.10 and qtopia-2.1.1 also compiled for my target are there in
XYZ/opt/qt and XYZ/opt/Qtopia

If U Could help me this i am set for my application development for my
project.

Any how thanks once again for ur help.

Regards,
Harsha












On 10/25/06, harshavardhanreddy mandeepala <hvreddy1110@xxxxxxxxx> wrote:
>
> Hi sprinqi,
> Thanks a lot for ur reply.
>
> I tryed follwoing way to compile and run in framebuffer.
>
> /******* To Run the application In Frame buffer. *********/
>
> export PLATFORM=x86-linux
> export TMAKEDIR=/home/harsha/tmake-1.13
> export PATH=/home/harsha/tmake-1.13/bin:$PATH
> export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> export QPEDIR=/home/harsha/qtopia-free-2.1.1    //I used this to use qmake
>
>     If I use the following the i cannot use "qmake" binary which is not
> there in QPEDIR/bin
>        export QPEDIR=/home/harsha/qtopia-free-2.1.1/image/opt/Qtopia
>
>
> export QMAKESPEC=$QPEDIR/mkspecs/qws/linux-x86-g++
> export PATH=$QPEDIR/bin:$PATH
> export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH
> export QTEDIR=/home/harsha/qt-2.3.10
> export PATH=$QTEDIR/bin:$PATH
> export LD_LIBRARY_PATH=$QTEDIR/lib:$LD_LIBRARY_PATH
> export QTDIR=$QTEDIR         //Even i tryed  export QTDIR=$QPEDIR
>
> uic -o Testdesigner.h Testdesigner.ui
> uic -i Testdesigner.h -o Testdesigner.cpp Testdesigner.ui
> moc -o moc_Testdesigner.cpp Testdesigner.h
>
> qmake -project  //It will create QTDesigner.pro    //i.e foldername.pro
> tmake QTDesigner.pro -o Makefile        //To create makefile
> Then Run
> make
>
> I got the following errors.
>
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o TestdesignerTest.o TestdesignerTest.cpp
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o Testdesigner.o Testdesigner.cpp
> /home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip'
> has virtual functions but non-virtual destructor
> g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> -o moc_Testdesigner.o moc_Testdesigner.cpp
> g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
> -L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lqt
>
> Actually this is because of make file
> In the make file itself in LIBS it is showing this.
> For ur reference i am attaching the makefile which it has generated.
> I think makefile creation is the problem.
>
> And about  Using qmake  instead of  tmake QTDesigner.pro -o Makefile
> To create makefile
> I tryed
> "qmake "  then it has generated the following error
> Project ERROR: Please set a target in /home/harsha/QTDesigner
>
> Any thing else i am doing wrong?
>
> Thanks once again  for ur "patience "  replyes.
>
> Regards,
> Harsha
>
>
>
>
>
>
> On 10/25/06, springqi <springqi@xxxxxxxxxxxxxx> wrote:
> >
> >  I  compile source code in the following way,
> >
> > qmake  -project
> >
> > qmake    // which will generate Makefile
> >
> > make
> >
> > and I don't  use tmake
> >
> >
> >  ------------------------------
> >
> > *发件人:* harshavardhanreddy mandeepala [mailto:hvreddy1110@xxxxxxxxx]
> > *发送时间:* 2006 年10月25日 13:32
> > *收件人:* SpringQi@xxxxxxxxxxxxxx
> >
> > *抄送:* qtopia-interest@xxxxxxxxxxxxx; qt-embedded-interest@xxxxxxxxxxxxx
> > *主题:* Re: 答复: 答复: 答复: 答复: Tmake problem problem
> >
> >
> >
> > Hi  SpringQi,
> >
> > Thanks a lot for ur reply.
> >
> > I did the following way.
> >
> > export TMAKEDIR=/home/harsha/tmake-1.13
> > export PATH=/home/harsha/tmake-1.13/bin:$PATH
> > export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> > export QTDIR=$QT2DIR
> > export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:$LD_LIBRARY_PATH
> > export PATH=/home/harsha/qt-2.3.2/bin:$PATH
> > export QT2DIR=/home/harsha/qt-2.3.2
> >
> > and
> > qmake -project  //it has created  *.pro file.
> > then i used
> > tmake -Testdesigner.pro -o Makefile          //To create make file
> >
> > Then
> > make
> > it compiled perfectly.
> > I run the binary it is executing in X.
> >
> > Even i tryed
> > qvfb $
> > and  try to run example binary but stll it runs in X only not in frame
> > buffer.
> >
> > How can i make my program to run in frame buffer ?
> > Do i need to use separate environment variables?
> >
> > Thanks a lot once again for ur reply.
> >
> >
> > Regards,
> > Harsha
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  On 10/25/06, *SpringQi@xxxxxxxxxxxxxx* <SpringQi@xxxxxxxxxxxxxx> wrote:
> >
> > Hi, my opinion about your example application.
> >
> > The followings are your environment variable setting .
> >
> > export TMAKEDIR=/home/harsha/tmake-1.13
> >  export PATH=/home/harsha/tmake-1.13/bin:$PATH
> >  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> > export QTEDIR=/home/harsha/qt-2.3.10
> > export QPEDIR=/home/harsha/qtopia-free-2.1.1
> > export QT2DIR=/home/harsha/qt-2.3.2
> > export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> > /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> > export QTDIR=$QTEDIR
> > export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> > /bin:$PATH
> >
> >
> >
> > As your example application, it should find ?lqt from /home/harsha/qt-
> > 2.3.2/lib, not from /home/harsha/qt-2.3.10/lib.
> >
> > In the compiling error message, i found it find ?lqt from
> > /home/harsha/qt-2.3.10/lib, if so, it really can not find
> >
> > -lqt. But The LD_LIBRARY_PATH contains qt-2.3.2/lib, so it is confusing
> > , why don't it search from qt-2.3.2?
> >
> >
> >
> > export QTDIR=$QTEDIR ,this is what you set, maybe should change to
> > QTDIR=$QT2DIR
> >
> >
> >
> > also, In the example application, there is no need to set QTEDIR ,
> >  QPEDIR and the LD_LIBRARY_PATH no need to
> >
> > include qt-2.3.10/lib and qtopia-free-2.1.1/lib
> >
> >
> >
> > you may remove some unnecessary variable , and try again
> >
> > Best wishes,
> >
> >
> >
> >
> >  ------------------------------
> >
> > *发件人:* harshavardhanreddy mandeepala [mailto: hvreddy1110@xxxxxxxxx]
> > *发送时间:* 2006 年10月24日 21:43
> > *收件人:* Spring Qi (Beijing)
> > *抄送:* qtopia-interest@xxxxxxxxxxxxx; freyther@xxxxxxxxxxxxx;
> > qt-embedded-interest@xxxxxxxxxxxxx
> > *主题:* Re: 答复: 答复: 答复: Tmake problem problem
> >
> >
> >
> > Hi SpringQi,
> > Thanks for ur reply,
> >
> > I am still having the problem of "cannot find -lqt " even though i tryed
> > all myo possible ways.
> > Let me explain you the procedure i used to install.
> > I am having  qtopia-2.1.1 and qt/E-2.3.10 in my target system (ADS board
> > with IMX31(ARM11) processor .)
> >
> > So now i want to develop my application.
> > My plan is develop application in the host side compile it here and
> > check it here itself.Finaly Xcompile the application to target using arm
> > toolchain and port it into the target system.
> >
> > So I downloaded  same versions of Qt/E-2.3.10 and Qtopia-2.1.1 and also
> > qt/X11-2.3.2 for my  host system(Suse10).I even downloaded the
> > tmake-1.13 (All are source code)
> >
> > I fallowed the following procedure to install(As per the
> > qtopia-documentation).
> >
> > 1. For Tmake
> > export TMAKEDIR=/home/harsha/tmake-1.13
> > PATH=$PATH:/home/harsha/tmake-1.13/bin
> > export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> >
> > export QTEDIR=/home/harsha/qt-2.3.10
> > export TMAKEDIR=/home/harsha/tmake-1.13
> > export QPEDIR=/home/harsha/qtopia-free-2.1.1
> >
> > 2. To build Qt 2.3.2
> >
> > export QT2DIR=/home/harsha/qt-2.3.2
> > export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> > export QTDIR=$QT2DIR
> > export PATH=$QTDIR/bin:$PATH
> > export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> > ./configure -no-xft
> >
> > make
> > mkdir $QTEDIR/bin
> > cp bin/uic $QTEDIR/bin/
> >
> >
> > Build QVfb
> >  In this step we build and link the qvfb sources from Qt 2.3.10 against
> > the static Qt library from Qt 2.3.2.
> >     export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> >     export QTDIR=$QT2DIR
> >     export PATH=$QTDIR/bin:$PATH
> >     export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> >     cd $QTEDIR/tools/qvfb
> >     tmake -o Makefile qvfb.pro
> >     make
> >     mv qvfb $QTEDIR/bin/
> >
> > 3. Build Qt/Embedded
> >
> >  If you are using the Qtopia Tools package then first
> >     export LD_LIBRARY_PATH=$QT2DIR/lib:$LD_LIBRARY_PATH
> >     cp $QT2DIR/bin/qvfb $QTEDIR/bin/
> >     cp $QT2DIR/bin/uic $QTEDIR/bin/
> >
> > To build Qt/Embedded you must do the following:
> >     cd $QTEDIR
> > cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
> >   ./configure -system-jpeg -no-xft -qconfig qpe  -qvfb -depths 4,8,16,32
> >
> >  make sub-src
> >
> > 4. To Build Qtopia
> >    cd $QPEDIR
> >     export QTDIR=$QTEDIR
> >     export PATH=$QPEDIR/bin:$PATH
> >     ./configure -edition pda -no-qtopiadesktop
> >     make
> >   Then it has given the following error
> >
> >    "
> > /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> > cannot find -luuid"
> >
> > So i Download the e2fsprogs-1.39  package and did
> > ./configure --prefix=/usr ;
> >  make
> >  make install
> >  make install-libs
> >
> > Also i installed
> > Install e2fsprogs-devel-1.19.0.i386.rpm
> >
> > Now if run
> > qvfb & it is opening Virtual buffer
> > and "qpe" it is showing up all the application icons.But if i click on
> > any application icon using
> > mouse it is not at all opening that application.
> >
> > I even try to create one application using designer command in qt-2.3.2/bin
> > .
> > It opened the qtdesigner and created one application As per the
> > Qtdesigner tutorial.
> >
> > uic -o PizzaEntry.h pizza.ui
> > uic -i PizzaEntry.h -o PizzaEntry.cpp pizza.ui
> > Then create a PizzaEntryTest.cpp /same like in QTdesigner tutorial.
> > moc -o moc_PizzaEntry.cpp PizzaEntry.h
> > g++ -I$QTDIR/include PizzaEntry.cpp PizzaEntryTest.cpp
> >
> > Then it started giving following error message.
> >
> > g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> > -o TestdesignerTest.o TestdesignerTest.cpp
> > g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> > -o Testdesigner.o Testdesigner.cpp
> > /home/harsha/qt-2.3.10/include/qtooltip.h:87: warning: 'class QToolTip'
> > has virtual functions but non-virtual destructor
> > g++ -c -pipe -Wall -W -O2 -DNO_DEBUG -I. -I/home/harsha/qt-2.3.10/include
> > -o moc_Testdesigner.o moc_Testdesigner.cpp
> > g++  -o QTDesigner TestdesignerTest.o Testdesigner.o moc_Testdesigner.o
> > -L/home/harsha/qt-2.3.10/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
> > /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld:
> > cannot find -lqt
> > collect2: ld returned 1 exit status
> > make: *** [QTDesigner] Error 1
> >
> > For example aplication compilation iused the fallowing environment
> > settings.
> >
> >
> >
> > export TMAKEDIR=/home/harsha/tmake-1.13
> >  export PATH=/home/harsha/tmake-1.13/bin:$PATH
> >  export TMAKEPATH=$TMAKEDIR/lib/linux-g++
> > export QTEDIR=/home/harsha/qt-2.3.10
> > export QPEDIR=/home/harsha/qtopia-free-2.1.1
> > export QT2DIR=/home/harsha/qt-2.3.2
> > export LD_LIBRARY_PATH=/home/harsha/qt-2.3.2/lib:/home/harsha/qt-2.3.10
> > /lib:/home/harsha/qtopia-free-2.1.1/lib:$LD_LIBRARY_PATH
> > export QTDIR=$QTEDIR
> > export PATH=/home/harsha/qtopia-free-2.1.1/bin:/home/harsha/qt-2.3.2
> > /bin:$PATH
> >
> > This what i did till now .I am trying all my best to solve my problem.
> > If You can help me to solve this problem i will be greately thankfull to
> > You.
> > As per i know some environment variables i am doing wrong but i couldn't
> > find.
> > It is pretty long mail but i thought it will give you clear idea of
> > problem.
> >
> > Thanks in advance,
> >
> > Regards,
> > Harsha
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>