All of lore.kernel.org
 help / color / mirror / Atom feed
* Building a Qt4-x11 app.
@ 2012-04-29 13:16 Daniel Toussaint
  2012-04-29 14:41 ` Wolfgang Denk
  2012-04-29 19:19 ` Eric Bénard
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Toussaint @ 2012-04-29 13:16 UTC (permalink / raw)
  To: yocto

I wish to run an application developed with QT in a Yocto filesystem.
The app should be linked against Qt4-X11 libs. What is the exact work
flow to get my app cross compiled on my x86_64 host ?
So far I have :
-> Build a complete core-image-sato with IPKG as a packaging system.
-> Build qt4-x11-free
-> Build qt4-tools-nativesdk

Now, I got something called qmake2 in the build directory
(sysroot-x86_64) , but it complains about not finding the right qmake
specs.
I got the feeling I am doing something fundamentally wrong with my
setup, can anyone enlighten me ?

Thanks a lot.

-- 
Gtalk: daniel.toussaint@gmail.com
Skype: supertoussi
Cell: +886-915-680-291


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building a Qt4-x11 app.
  2012-04-29 13:16 Building a Qt4-x11 app Daniel Toussaint
@ 2012-04-29 14:41 ` Wolfgang Denk
  2012-04-29 19:14   ` Eric Bénard
  2012-04-29 19:19 ` Eric Bénard
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2012-04-29 14:41 UTC (permalink / raw)
  To: Daniel Toussaint; +Cc: yocto

Dear Daniel,

In message <CADVYk4SBWkAnU4RL6k2_+1aedbFnfptohKffjGdaK6C2bs-6RQ@mail.gmail.com> you wrote:
> I wish to run an application developed with QT in a Yocto filesystem.
> The app should be linked against Qt4-X11 libs. What is the exact work
> flow to get my app cross compiled on my x86_64 host ?
> So far I have :
> -> Build a complete core-image-sato with IPKG as a packaging system.
> -> Build qt4-x11-free
> -> Build qt4-tools-nativesdk
> 
> Now, I got something called qmake2 in the build directory
> (sysroot-x86_64) , but it complains about not finding the right qmake
> specs.
> I got the feeling I am doing something fundamentally wrong with my
> setup, can anyone enlighten me ?

Try building "meta-toolchain-qte" for the cross development tools,
and "core-image-qte-sdk" for a reasonably complete root file system
that can also be used for native development when needed.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Include the success of others in your dreams for your own success.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building a Qt4-x11 app.
  2012-04-29 14:41 ` Wolfgang Denk
@ 2012-04-29 19:14   ` Eric Bénard
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Bénard @ 2012-04-29 19:14 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: yocto

Le Sun, 29 Apr 2012 16:41:17 +0200,
Wolfgang Denk <wd@denx.de> a écrit :

> Dear Daniel,
> 
> In message <CADVYk4SBWkAnU4RL6k2_+1aedbFnfptohKffjGdaK6C2bs-6RQ@mail.gmail.com> you wrote:
> > I wish to run an application developed with QT in a Yocto filesystem.
> > The app should be linked against Qt4-X11 libs. What is the exact work
> > flow to get my app cross compiled on my x86_64 host ?
> > So far I have :
> > -> Build a complete core-image-sato with IPKG as a packaging system.
> > -> Build qt4-x11-free
> > -> Build qt4-tools-nativesdk
> > 
> > Now, I got something called qmake2 in the build directory
> > (sysroot-x86_64) , but it complains about not finding the right qmake
> > specs.
> > I got the feeling I am doing something fundamentally wrong with my
> > setup, can anyone enlighten me ?
> 
> Try building "meta-toolchain-qte" for the cross development tools,
> and "core-image-qte-sdk" for a reasonably complete root file system
> that can also be used for native development when needed.
> 
this won't work for qt4-x11, only for qt4-embedded.

Eric


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building a Qt4-x11 app.
  2012-04-29 13:16 Building a Qt4-x11 app Daniel Toussaint
  2012-04-29 14:41 ` Wolfgang Denk
@ 2012-04-29 19:19 ` Eric Bénard
  2012-04-30 10:04   ` Daniel Toussaint
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Bénard @ 2012-04-29 19:19 UTC (permalink / raw)
  To: Daniel Toussaint; +Cc: yocto

Le Sun, 29 Apr 2012 21:16:44 +0800,
Daniel Toussaint <daniel@dmhome.net> a écrit :

> I wish to run an application developed with QT in a Yocto filesystem.
> The app should be linked against Qt4-X11 libs. What is the exact work
> flow to get my app cross compiled on my x86_64 host ?
> So far I have :
> -> Build a complete core-image-sato with IPKG as a packaging system.
> -> Build qt4-x11-free
> -> Build qt4-tools-nativesdk
> 
> Now, I got something called qmake2 in the build directory
> (sysroot-x86_64) , but it complains about not finding the right qmake
> specs.
> I got the feeling I am doing something fundamentally wrong with my
> setup, can anyone enlighten me ?
> 
simply write a recipe for your app and let the build system build
your application.

The recipe can be quite simple if your app doesn't depends on other
libs than qt4 :

DESCRIPTION = "Application QT4-X11"
SECTION = "Apps"
LICENSE = "yourlicense"
LIC_FILES_CHKSUM = "file://youlicense;md5=yourmd5"

inherit qt4x11

SRC_URI = "file://application.tar.bz2"
# or directly download it from a VCS

# may be necessary :
EXTRA_QMAKEVARS_PRE += "PREFIX=/usr"
EXTRA_OEMAKE += "INSTALL_ROOT=${D}"

do_install() {
	oe_runmake install INSTALL_ROOT=${D}
}

Eric


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Building a Qt4-x11 app.
  2012-04-29 19:19 ` Eric Bénard
@ 2012-04-30 10:04   ` Daniel Toussaint
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Toussaint @ 2012-04-30 10:04 UTC (permalink / raw)
  To: Eric Bénard; +Cc: yocto

On Mon, Apr 30, 2012 at 3:19 AM, Eric Bénard <eric@eukrea.com> wrote:
> Le Sun, 29 Apr 2012 21:16:44 +0800,
> Daniel Toussaint <daniel@dmhome.net> a écrit :
>
>> I wish to run an application developed with QT in a Yocto filesystem.
>> The app should be linked against Qt4-X11 libs. What is the exact work
>> flow to get my app cross compiled on my x86_64 host ?
>> So far I have :
>> -> Build a complete core-image-sato with IPKG as a packaging system.
>> -> Build qt4-x11-free
>> -> Build qt4-tools-nativesdk
>>
>> Now, I got something called qmake2 in the build directory
>> (sysroot-x86_64) , but it complains about not finding the right qmake
>> specs.
>> I got the feeling I am doing something fundamentally wrong with my
>> setup, can anyone enlighten me ?
>>
> simply write a recipe for your app and let the build system build
> your application.
>
> The recipe can be quite simple if your app doesn't depends on other
> libs than qt4 :
>
> DESCRIPTION = "Application QT4-X11"
> SECTION = "Apps"
> LICENSE = "yourlicense"
> LIC_FILES_CHKSUM = "file://youlicense;md5=yourmd5"
>
> inherit qt4x11
>
> SRC_URI = "file://application.tar.bz2"
> # or directly download it from a VCS
>
> # may be necessary :
> EXTRA_QMAKEVARS_PRE += "PREFIX=/usr"
> EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
>
> do_install() {
>        oe_runmake install INSTALL_ROOT=${D}
> }
>
> Eric

Thanks a lot that worked great !

-- 
Gtalk: daniel.toussaint@gmail.com
Skype: supertoussi
Cell: +886-915-680-291


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-30 10:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-29 13:16 Building a Qt4-x11 app Daniel Toussaint
2012-04-29 14:41 ` Wolfgang Denk
2012-04-29 19:14   ` Eric Bénard
2012-04-29 19:19 ` Eric Bénard
2012-04-30 10:04   ` Daniel Toussaint

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.