[Qt-creator] BareMetal Target Plugin
alexis.jeandet at lpp.polytechnique.fr
Wed Aug 14 14:12:49 CEST 2013
I'm interested in what you call a bare metal target, do you mean
something like arm(CortexMx) or sparc target?
I started something similar, but it's just background work.
Le 14/08/2013 13:16, Daniel Teske a écrit :
> On Wednesday 14 Aug 2013 13:00:15 you wrote:
>> Daniel wrote:
>>> Tim wrote:
>>>> If i may deploy for a remote linux target which unfortunatly has no QT
>>>> installed. I have a working qt installation and a working qmake
>>>> (otherwise the project build with qmake would fail earlier). This is
>>>> used to make a cross build without QT for the target. Currently all
>>>> pieces in qtcreator are there but it can't be configured as the
>>>> selection dialog is greyed out in the project configuration because
>>>> the kit has no qt assigned. As qmake is used as a build tool with
>>>> "config -= qt" there is no qt needed on the target device and so it
>>>> should not be greyed out in this special case.
>>> But you still need to tell creator which qmake you want to use, which is
>>> done via the qt version. That does not in any way affect whether the
>>> resulting executable depends on qt.
>> The problem is that just pointing to a qmake binary is not enough as
>> Creator runs a couple of sanity checks to ensure the associated Qt build
>> is "usable". This is simply "too much" in this particular case.
> The ony requirements are, and I repeat myself here:
> - Various files in the mkspec directory, those are needed by qmake.
> - That the bin directory exists (which given that the qmake binary is in it is
> a rather easy requirement.
> - That the include directory exists, but that can be empty. That is the only
> one that is in addtion to what would work on the command line. We check that
> directory, since it is quite common for those who compile qt from source to
> not do a -prefix . build / not install.
>> It is possible to trick Creator into believing that "all is well" by
>> creating a dummy libQtCore.so matching the target architecture and copying
>> parts of a real Qt's mkspec directory, but that's clearly a hack.
If here you mean a custom qmake version, I did it in a dirty way by
compiling a Qt sdk with qmake and after I replaced all mkspec files and
Qt libraries by my files. It works "perfectly" with QtCreator from 2.6
I can send you a Linux example if you want.
If somebody knows how to build qmake without the SDK I'm interested. And
also if it could be possible to configure the qt path outside of qmake
binary, something like a conf file or even qmake could get it's current
use it as qt path, it would make custom SDK distribution easier.
> That's wrong, there is no need to have a libQtCore.so.
> Qt-creator mailing list
> Qt-creator at qt-project.org
Route de Saclay
91128 Palaiseau CEDEX
Tél: +33 1 69 33 58 59
Fax: +33 1 69 33 59 06
More information about the Qt-creator