All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5] What is needed to build a recipe with CMake?
@ 2014-10-08  2:41 Nick D'Ademo
  2014-10-12 23:48 ` Nick D'Ademo
  0 siblings, 1 reply; 9+ messages in thread
From: Nick D'Ademo @ 2014-10-08  2:41 UTC (permalink / raw)
  To: openembedded-devel; +Cc: ootavio

I'm receiving the same error as described in the following posts when
attempting to build a CMake recipe (Qt5 code):
http://lists.qt-project.org/pipermail/development/2014-May/017075.html
https://lists.yoctoproject.org/pipermail/yocto/2014-May/019755.html

* The imported target "Qt5::Core" references the file
*||*      "/qmake"
*||*   but this file does not exist.  Possible reasons include:
*||*   * The file was deleted, renamed, or moved to another location.
*||*   * An install or uninstall procedure did not complete successfully.
*||*   * The installation package was faulty and contained*

Looks like the *qmake* binary cannot be found.

The relevant parts of the recipe are as follows:



*DEPENDS = "qtbase"*







*inherit cmakedo_install () {    install -d ${D}${bindir}    install -m
0755 test ${D}${bindir}/test}FILES_${PN} += "${bindir}/test"*

Does anyone have a solution to this issue?

Thanks.


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-08  2:41 [meta-qt5] What is needed to build a recipe with CMake? Nick D'Ademo
@ 2014-10-12 23:48 ` Nick D'Ademo
  2014-10-13  7:10   ` Anders Darander
  0 siblings, 1 reply; 9+ messages in thread
From: Nick D'Ademo @ 2014-10-12 23:48 UTC (permalink / raw)
  To: openembedded-devel

Has anyone had any success at all building a Qt5-based recipe with CMake?


On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com> wrote:

> I'm receiving the same error as described in the following posts when
> attempting to build a CMake recipe (Qt5 code):
> http://lists.qt-project.org/pipermail/development/2014-May/017075.html
> https://lists.yoctoproject.org/pipermail/yocto/2014-May/019755.html
>
> * The imported target "Qt5::Core" references the file
> *||*      "/qmake"
> *||*   but this file does not exist.  Possible reasons include:
> *||*   * The file was deleted, renamed, or moved to another location.
> *||*   * An install or uninstall procedure did not complete successfully.
> *||*   * The installation package was faulty and contained*
>
> Looks like the *qmake* binary cannot be found.
>
> The relevant parts of the recipe are as follows:
>
>
>
> *DEPENDS = "qtbase"*
>
>
>
>
>
>
>
> *inherit cmakedo_install () {    install -d ${D}${bindir}    install -m
> 0755 test ${D}${bindir}/test}FILES_${PN} += "${bindir}/test"*
>
> Does anyone have a solution to this issue?
>
> Thanks.
>


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-12 23:48 ` Nick D'Ademo
@ 2014-10-13  7:10   ` Anders Darander
  2014-10-13  8:16     ` Martin Jansa
  2014-10-13 21:09     ` Nick D'Ademo
  0 siblings, 2 replies; 9+ messages in thread
From: Anders Darander @ 2014-10-13  7:10 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

Hi,

* Nick D'Ademo <nickdademo@gmail.com> [141013 01:50]:
> Has anyone had any success at all building a Qt5-based recipe with CMake?

Yes, I've at least got a local recipe here building KDSoap, which uses
cmake.



> On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com> wrote:

> > Looks like the *qmake* binary cannot be found.

> > The relevant parts of the recipe are as follows:


> > *DEPENDS = "qtbase"*

Just as you, I've got hte DEPENDS lińe above in my recipe. However, I've
also the following line (situated after the DEPENDS +=...)

inherit qmake5

That line should set up all the necessary path's in order to find qmake.

Let us know if this helps you.

Cheers,
Anders

-- 
Abstainer, n.:
	A weak person who yields to the temptation of denying himself a
	pleasure.
		-- Ambrose Bierce, "The Devil's Dictionary"


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13  7:10   ` Anders Darander
@ 2014-10-13  8:16     ` Martin Jansa
  2014-10-13 21:41       ` Nick D'Ademo
  2014-10-13 21:09     ` Nick D'Ademo
  1 sibling, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2014-10-13  8:16 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1353 bytes --]

On Mon, Oct 13, 2014 at 09:10:37AM +0200, Anders Darander wrote:
> Hi,
> 
> * Nick D'Ademo <nickdademo@gmail.com> [141013 01:50]:
> > Has anyone had any success at all building a Qt5-based recipe with CMake?
> 
> Yes, I've at least got a local recipe here building KDSoap, which uses
> cmake.

See meta-webos-ports layer for more recipes using cmake + qt5.

> 
> 
> 
> > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com> wrote:
> 
> > > Looks like the *qmake* binary cannot be found.
> 
> > > The relevant parts of the recipe are as follows:
> 
> 
> > > *DEPENDS = "qtbase"*
> 
> Just as you, I've got hte DEPENDS lińe above in my recipe. However, I've
> also the following line (situated after the DEPENDS +=...)
> 
> inherit qmake5
> 
> That line should set up all the necessary path's in order to find qmake.
> 
> Let us know if this helps you.
> 
> Cheers,
> Anders
> 
> -- 
> Abstainer, n.:
> 	A weak person who yields to the temptation of denying himself a
> 	pleasure.
> 		-- Ambrose Bierce, "The Devil's Dictionary"
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13  7:10   ` Anders Darander
  2014-10-13  8:16     ` Martin Jansa
@ 2014-10-13 21:09     ` Nick D'Ademo
  2014-10-13 21:43       ` Anders Darander
  1 sibling, 1 reply; 9+ messages in thread
From: Nick D'Ademo @ 2014-10-13 21:09 UTC (permalink / raw)
  To: openembedded-devel; +Cc: anders

Hi Anders,

Are you using Qmake or Cmake to build? (I suspect Qmake).

My source code actually has no .PRO file.

Cheers,
Nick

On Mon, Oct 13, 2014 at 6:10 PM, Anders Darander <anders@chargestorm.se>
wrote:

> Hi,
>
> * Nick D'Ademo <nickdademo@gmail.com> [141013 01:50]:
> > Has anyone had any success at all building a Qt5-based recipe with CMake?
>
> Yes, I've at least got a local recipe here building KDSoap, which uses
> cmake.
>
>
>
> > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com>
> wrote:
>
> > > Looks like the *qmake* binary cannot be found.
>
> > > The relevant parts of the recipe are as follows:
>
>
> > > *DEPENDS = "qtbase"*
>
> Just as you, I've got hte DEPENDS lińe above in my recipe. However, I've
> also the following line (situated after the DEPENDS +=...)
>
> inherit qmake5
>
> That line should set up all the necessary path's in order to find qmake.
>
> Let us know if this helps you.
>
> Cheers,
> Anders
>
> --
> Abstainer, n.:
>         A weak person who yields to the temptation of denying himself a
>         pleasure.
>                 -- Ambrose Bierce, "The Devil's Dictionary"
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13  8:16     ` Martin Jansa
@ 2014-10-13 21:41       ` Nick D'Ademo
  2014-10-14  5:06         ` Martin Jansa
  0 siblings, 1 reply; 9+ messages in thread
From: Nick D'Ademo @ 2014-10-13 21:41 UTC (permalink / raw)
  To: openembedded-devel, Martin Jansa

Hi Martin,

Thanks - what are some example recipes in that layer? (I had a look but
couldn't find any cmake + qt5 recipes)

Nick

On Mon, Oct 13, 2014 at 7:16 PM, Martin Jansa <martin.jansa@gmail.com>
wrote:

> On Mon, Oct 13, 2014 at 09:10:37AM +0200, Anders Darander wrote:
> > Hi,
> >
> > * Nick D'Ademo <nickdademo@gmail.com> [141013 01:50]:
> > > Has anyone had any success at all building a Qt5-based recipe with
> CMake?
> >
> > Yes, I've at least got a local recipe here building KDSoap, which uses
> > cmake.
>
> See meta-webos-ports layer for more recipes using cmake + qt5.
>
> >
> >
> >
> > > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com>
> wrote:
> >
> > > > Looks like the *qmake* binary cannot be found.
> >
> > > > The relevant parts of the recipe are as follows:
> >
> >
> > > > *DEPENDS = "qtbase"*
> >
> > Just as you, I've got hte DEPENDS lińe above in my recipe. However, I've
> > also the following line (situated after the DEPENDS +=...)
> >
> > inherit qmake5
> >
> > That line should set up all the necessary path's in order to find qmake.
> >
> > Let us know if this helps you.
> >
> > Cheers,
> > Anders
> >
> > --
> > Abstainer, n.:
> >       A weak person who yields to the temptation of denying himself a
> >       pleasure.
> >               -- Ambrose Bierce, "The Devil's Dictionary"
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13 21:09     ` Nick D'Ademo
@ 2014-10-13 21:43       ` Anders Darander
  2014-10-13 23:45         ` Nick D'Ademo
  0 siblings, 1 reply; 9+ messages in thread
From: Anders Darander @ 2014-10-13 21:43 UTC (permalink / raw)
  To: Nick D'Ademo; +Cc: openembedded-devel

* Nick D'Ademo <nickdademo@gmail.com> [141013 23:10]:
>    Are you using Qmake or Cmake to build? (I suspect Qmake).
>    My source code actually has no .PRO file.

Hm, when you state it like that ;) 
I might very well have changed it to not use cmake... KDSoap is shipping
multiple build systems etc, and as long as I can get it to build...

However, Martin gave you a hint to look at meta-webos-port for more
recipes using cmake.

Have you inherited cmake_qt5? That class ought to set everything up for
you.

Cheers,
Anders

>    On Mon, Oct 13, 2014 at 6:10 PM, Anders Darander
>    <[1]anders@chargestorm.se> wrote:

>      Hi,
>      * Nick D'Ademo <[2]nickdademo@gmail.com> [141013 01:50]:
>      > Has anyone had any success at all building a Qt5-based recipe with
>      CMake?
>      Yes, I've at least got a local recipe here building KDSoap, which
>      uses
>      cmake.
>      > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo
>      <[3]nickdademo@gmail.com> wrote:
>      > > Looks like the *qmake* binary cannot be found.
>      > > The relevant parts of the recipe are as follows:
>      > > *DEPENDS = "qtbase"*
>      Just as you, I've got hte DEPENDS lińe above in my recipe. However,
>      I've
>      also the following line (situated after the DEPENDS +=...)
>      inherit qmake5
>      That line should set up all the necessary path's in order to find
>      qmake.
>      Let us know if this helps you.
>      Cheers,
>      Anders
>      --
>      Abstainer, n.:
>              A weak person who yields to the temptation of denying
>      himself a
>              pleasure.
>                      -- Ambrose Bierce, "The Devil's Dictionary"
>      --
>      _______________________________________________
>      Openembedded-devel mailing list
>      [4]Openembedded-devel@lists.openembedded.org
>      [5]http://lists.openembedded.org/mailman/listinfo/openembedded-devel

> References

>    1. mailto:anders@chargestorm.se
>    2. mailto:nickdademo@gmail.com
>    3. mailto:nickdademo@gmail.com
>    4. mailto:Openembedded-devel@lists.openembedded.org
>    5. http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Anders Darander
ChargeStorm AB		Tel: +46 702 44 84 36
Hospitalsgatan 8	Email: anders@chargestorm.se
602 27 Norrköping	Web: www.chargestorm.se


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13 21:43       ` Anders Darander
@ 2014-10-13 23:45         ` Nick D'Ademo
  0 siblings, 0 replies; 9+ messages in thread
From: Nick D'Ademo @ 2014-10-13 23:45 UTC (permalink / raw)
  To: Nick D'Ademo, openembedded-devel

Thanks Anders! "inherit cmake_qt5" was the missing piece of the puzzle!


On Tue, Oct 14, 2014 at 8:43 AM, Anders Darander <anders@chargestorm.se>
wrote:

> * Nick D'Ademo <nickdademo@gmail.com> [141013 23:10]:
> >    Are you using Qmake or Cmake to build? (I suspect Qmake).
> >    My source code actually has no .PRO file.
>
> Hm, when you state it like that ;)
> I might very well have changed it to not use cmake... KDSoap is shipping
> multiple build systems etc, and as long as I can get it to build...
>
> However, Martin gave you a hint to look at meta-webos-port for more
> recipes using cmake.
>
> Have you inherited cmake_qt5? That class ought to set everything up for
> you.
>
> Cheers,
> Anders
>
> >    On Mon, Oct 13, 2014 at 6:10 PM, Anders Darander
> >    <[1]anders@chargestorm.se> wrote:
>
> >      Hi,
> >      * Nick D'Ademo <[2]nickdademo@gmail.com> [141013 01:50]:
> >      > Has anyone had any success at all building a Qt5-based recipe with
> >      CMake?
> >      Yes, I've at least got a local recipe here building KDSoap, which
> >      uses
> >      cmake.
> >      > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo
> >      <[3]nickdademo@gmail.com> wrote:
> >      > > Looks like the *qmake* binary cannot be found.
> >      > > The relevant parts of the recipe are as follows:
> >      > > *DEPENDS = "qtbase"*
> >      Just as you, I've got hte DEPENDS lińe above in my recipe. However,
> >      I've
> >      also the following line (situated after the DEPENDS +=...)
> >      inherit qmake5
> >      That line should set up all the necessary path's in order to find
> >      qmake.
> >      Let us know if this helps you.
> >      Cheers,
> >      Anders
> >      --
> >      Abstainer, n.:
> >              A weak person who yields to the temptation of denying
> >      himself a
> >              pleasure.
> >                      -- Ambrose Bierce, "The Devil's Dictionary"
> >      --
> >      _______________________________________________
> >      Openembedded-devel mailing list
> >      [4]Openembedded-devel@lists.openembedded.org
> >      [5]
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> > References
>
> >    1. mailto:anders@chargestorm.se
> >    2. mailto:nickdademo@gmail.com
> >    3. mailto:nickdademo@gmail.com
> >    4. mailto:Openembedded-devel@lists.openembedded.org
> >    5. http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> Anders Darander
> ChargeStorm AB          Tel: +46 702 44 84 36
> Hospitalsgatan 8        Email: anders@chargestorm.se
> 602 27 Norrköping       Web: www.chargestorm.se
>


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

* Re: [meta-qt5] What is needed to build a recipe with CMake?
  2014-10-13 21:41       ` Nick D'Ademo
@ 2014-10-14  5:06         ` Martin Jansa
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2014-10-14  5:06 UTC (permalink / raw)
  To: Nick D'Ademo; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2811 bytes --]

On Tue, Oct 14, 2014 at 08:41:10AM +1100, Nick D'Ademo wrote:
> Hi Martin,
> 
> Thanks - what are some example recipes in that layer? (I had a look but
> couldn't find any cmake + qt5 recipes)

OE @ ~/meta-webos-ports $ git grep inherit.*cmake_qt5
recipes-webos/apps/org.webosports.app.phone.bb:inherit cmake_qt5
recipes-webos/luna-appmanager/luna-appmanager.bb:inherit cmake_qt5
recipes-webos/luna-next/luna-next.bb:inherit cmake_qt5
recipes-webos/luna-qml-launcher/luna-qml-launcher.bb:inherit cmake_qt5
recipes-webos/luna-sysmgr-common/luna-sysmgr-common.bb:inherit cmake_qt5
recipes-webos/luna-sysmgr/luna-sysmgr.bb:inherit cmake_qt5
recipes-webos/luna-webappmanager/luna-webappmanager.bb:inherit cmake_qt5
recipes-webos/mediaindexer/mediaindexer.bb:inherit cmake_qt5
recipes-webos/webapp-launcher/webapp-launcher.bb:inherit cmake_qt5

> 
> Nick
> 
> On Mon, Oct 13, 2014 at 7:16 PM, Martin Jansa <martin.jansa@gmail.com>
> wrote:
> 
> > On Mon, Oct 13, 2014 at 09:10:37AM +0200, Anders Darander wrote:
> > > Hi,
> > >
> > > * Nick D'Ademo <nickdademo@gmail.com> [141013 01:50]:
> > > > Has anyone had any success at all building a Qt5-based recipe with
> > CMake?
> > >
> > > Yes, I've at least got a local recipe here building KDSoap, which uses
> > > cmake.
> >
> > See meta-webos-ports layer for more recipes using cmake + qt5.
> >
> > >
> > >
> > >
> > > > On Wed, Oct 8, 2014 at 1:41 PM, Nick D'Ademo <nickdademo@gmail.com>
> > wrote:
> > >
> > > > > Looks like the *qmake* binary cannot be found.
> > >
> > > > > The relevant parts of the recipe are as follows:
> > >
> > >
> > > > > *DEPENDS = "qtbase"*
> > >
> > > Just as you, I've got hte DEPENDS lińe above in my recipe. However, I've
> > > also the following line (situated after the DEPENDS +=...)
> > >
> > > inherit qmake5
> > >
> > > That line should set up all the necessary path's in order to find qmake.
> > >
> > > Let us know if this helps you.
> > >
> > > Cheers,
> > > Anders
> > >
> > > --
> > > Abstainer, n.:
> > >       A weak person who yields to the temptation of denying himself a
> > >       pleasure.
> > >               -- Ambrose Bierce, "The Devil's Dictionary"
> > > --
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> > --
> > Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

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

end of thread, other threads:[~2014-10-14  5:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08  2:41 [meta-qt5] What is needed to build a recipe with CMake? Nick D'Ademo
2014-10-12 23:48 ` Nick D'Ademo
2014-10-13  7:10   ` Anders Darander
2014-10-13  8:16     ` Martin Jansa
2014-10-13 21:41       ` Nick D'Ademo
2014-10-14  5:06         ` Martin Jansa
2014-10-13 21:09     ` Nick D'Ademo
2014-10-13 21:43       ` Anders Darander
2014-10-13 23:45         ` Nick D'Ademo

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.