Hi Karim,

Karim 'Kasi Mir' Senoucci wrote:
> Am 16.07.2012 11:46, schrieb Juergen Beisert:
> > I tried to build your configuration and it continues to fail in some
> > other packages. wireshark will fail and PHP5 as well with your
> > configuration. For wireshark a patch is already available in the
> > ptxdist-master repo, but not for the PHP5. Sorry for the inconvenience.
> > You are a good tester for the completeness of the PTXdist...
>
> Thanks. :-) I've now been able to get a working rootfs and kernel again
> and could run the qt tests and examples; I chose just to disable
> everything that still didn't work (php5, wireshark etc.) because I don't
> need them at the moment.
>
> But I just don't seem to understand how to create even the most simple
> program using the QtCreator I'm already familiar with developing for
> PC-based Linux systems. I've googled for three hours now, but I can't
> find any solution that is
>
>  1. based on the BSP I just successfully installed
>  2. just plain explains what to configure how in the QtCreator
>  3. just let's me use the "Build (All)" button in QtCreator, instead of
>     resorting to additional tools which I find clumsy and error-prone

First of all: I'm not a Qt expert. ;)

PTXdist comes with qmake support. As far as I know also QtCreator produces or 
manages qmake files. So, PTXdist should be able to use them and build your 
application.

> I have found quite a few blog entries and even videos on how to do that,
> but the all invariably start with compiling Qt and tslib (again) in a
> special way and transferring them to the target system. I thought I had
> already done that with the BSP build, but perhaps I'm mistaken there.

Sure. You already did that with the help of PTXdist. There is no need to do it 
again by yourself.

> Other posts suggest i just add the qmake in the BSP
> (platform-mini2440/sysroot-cross/bin/qmake) and everything works. Well,
> I can add that without errors, but that doesn't give me any new target
> to compile to nor any new tool chain under Options->Tool Chains. There
> still is just the one for the host system (GCC x86 32bit) and I have
> found no clue what to add there, or whether I should do that at all.

Try:

$ ptxdist newpackage src-qmake-prog

This will add a PTXdist specific rule to your project and a demo project into 
your local "local_src" directory. I don't know if you can instruct QtCreator 
to use this directory to work with.... I just have tried it, QtCreator 
accepts this directory and the demo.pro file in it, but I have no idea if it 
works as you expect it.

> So, if anyone could give me some pointers how to get the QtCreator 2.2.1
> (which is already installed on my host system) to let me create at least
> a simple GUI application for my target system (which has, according to
> the BSP logs, qt-everywhere-opensource-src-4.8.2 and qwt-6.0.1)
> installed - preferably using the QtCreator for building and the
> toolchain which the BSP has supposedly already installed - I'd be very
> grateful.

At least it seems you can manage this project with QtCreator and let PTXdist 
builds it correctly (which means: correct toolchain, libraries and so on).

Hope it helps.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to