LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   help me out in QT (https://www.linuxquestions.org/questions/linux-software-2/help-me-out-in-qt-713980/)

pavan.manipal 03-24-2009 01:53 AM

help me out in QT
 
what do i need to build applications on mobile platform Qt Embedded or Qtopia, i m having Qt designer with Fedora 9, is it sufficient to build gui apps to the mobile platform ,m using intel PXA255 Board(ARM core 10 processor), and how can i cross compile .ui fles to execute them into my board?

JaksoDebr 03-24-2009 06:28 PM

Your embedded QT toolkit must have surely provided the needed info and tools. The .ui file is just a config file, so it will be portable, but your request for cross-compilation infos indicates that you want it build it on your Fedora box anyway. I'm pretty sure that you will need some commercial tool from QT for this purpose.

Linux Archive

pavan.manipal 03-25-2009 03:53 AM

Quote:

Originally Posted by JaksoDebr (Post 3486631)
Your embedded QT toolkit must have surely provided the needed info and tools. The .ui file is just a config file, so it will be portable, but your request for cross-compilation infos indicates that you want it build it on your Fedora box anyway. I'm pretty sure that you will need some commercial tool from QT for this purpose.

i got the toolchain now , but i dont know how to compile a .pro project file for my arm board, m able to compile for x86 system

JaksoDebr 03-25-2009 05:14 PM

Usually you need to:

1. run qmake if you have no Makefile or the default Makefile fails to build.
2. run make.
3. launch ./your-application-name-here

When recreating the Makefile, make sure to have the needed headers and library files added.

I have read that cross-compiling Qt/X11 is not supported, but I can neither confirm nor deny that statement. You must also make sure to setup the cross-compile environment correctly. An error like
"include/qglobal.h:156:4: #error "Qt has not been ported to this OS ..."
actually means that none of the expected macros that describe the OS are defined.

pavan.manipal 03-26-2009 09:25 AM

Quote:

Originally Posted by JaksoDebr (Post 3487764)
Usually you need to:

1. run qmake if you have no Makefile or the default Makefile fails to build.
2. run make.
3. launch ./your-application-name-here

When recreating the Makefile, make sure to have the needed headers and library files added.

I have read that cross-compiling Qt/X11 is not supported, but I can neither confirm nor deny that statement. You must also make sure to setup the cross-compile environment correctly. An error like
"include/qglobal.h:156:4: #error "Qt has not been ported to this OS ..."
actually means that none of the expected macros that describe the OS are defined.

Actually while installing Qt-embedded we have to give the path of the cross compiler so that it will take the gcc, in my case arm-linux-g++ is placed in the bin, so i have given the path and it successfully built for arm architecture it doesn't run in X86 system i checked using the command file binary-name, it gives the out put like the ELf is run on ARm ver 1 ...(etc)(i dont remember it), the thing is i have to place the executable in the target board , but it shows the error whn i tried to execute it , that it requires the dynamic libraries, so i need to install gcc 3.4 which supports Qt-embedded 4 , i will it if i wont get pls help me out


All times are GMT -5. The time now is 03:56 PM.