Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] qmake -o Makefile cannot create Makefile
@ 2012-08-27 20:46 Belisko Marek
  2012-08-27 20:59 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Belisko Marek @ 2012-08-27 20:46 UTC (permalink / raw)
  To: buildroot

Hi,

I'm trying to add qt based application to be compiled in buildroot.
App is using qmake infrastructure which is not supported in BR.

I just want to hack it somehow so choose generic-package and plan use configure
step to generate Makefile with qmake (then continue with Makefile).

mk file:
+#############################################################
+#
+# song
+#
+#############################################################
+
+SONG_VERSION = master
+SONG_SITE    = https://github.com/nandra/songPresentation.git
+SONG_SITE_METHOD = git
+
+define SONG_CONFIGURE_CMDS
+	$(HOST_DIR)/usr/bin/qmake -o Makefile -v $(@D)/songPresentation.pro
+endef
+
+define SONG_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define SONG_INSTALL_TARGET_CMDS
+	install -D -m 0755 $(@D)/songPresentation
$(TARGET_DIR)/usr/bin/songPresentation
+endef
+
+$(eval $(generic-package))
+

Problem is that when is called SONG_CONFIGURE_CMDS no Makefile is created.
Try to cd $(@D); $(HOST_DIR)/usr/bin/qmake seems to work but Makefile
is created in
BR root directory. Seems I'm doing something wrong. Any ideas? Thanks.

Regards,

mbe

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

* [Buildroot] qmake -o Makefile cannot create Makefile
  2012-08-27 20:46 [Buildroot] qmake -o Makefile cannot create Makefile Belisko Marek
@ 2012-08-27 20:59 ` Yann E. MORIN
  2012-08-27 21:04   ` Belisko Marek
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2012-08-27 20:59 UTC (permalink / raw)
  To: buildroot

Belisko, All,

On Monday 27 August 2012 22:46:35 Belisko Marek wrote:
> I'm trying to add qt based application to be compiled in buildroot.
> App is using qmake infrastructure which is not supported in BR.
> 
> I just want to hack it somehow so choose generic-package and plan use configure
> step to generate Makefile with qmake (then continue with Makefile).
> 
> mk file:
> +#############################################################
> +#
> +# song
> +#
> +#############################################################
> +
> +SONG_VERSION = master
> +SONG_SITE    = https://github.com/nandra/songPresentation.git
> +SONG_SITE_METHOD = git
> +
> +define SONG_CONFIGURE_CMDS
> +	$(HOST_DIR)/usr/bin/qmake -o Makefile -v $(@D)/songPresentation.pro
> +endef

I think you should write it that way (untested!):

define SONG_CONFIGURE_CMDS
	cd $(@D); \
	$(HOST_DIR)/usr/bin/qmake -o Makefile -v songPresentation.pro
endef

or maybe:

define SONG_CONFIGURE_CMDS
	cd $(@D) && \
	$(HOST_DIR)/usr/bin/qmake -o Makefile -v songPresentation.pro
endef

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] qmake -o Makefile cannot create Makefile
  2012-08-27 20:59 ` Yann E. MORIN
@ 2012-08-27 21:04   ` Belisko Marek
  2012-08-28  6:39     ` Stephan Hoffmann
  0 siblings, 1 reply; 4+ messages in thread
From: Belisko Marek @ 2012-08-27 21:04 UTC (permalink / raw)
  To: buildroot

On Mon, Aug 27, 2012 at 10:59 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Belisko, All,
>
> On Monday 27 August 2012 22:46:35 Belisko Marek wrote:
>> I'm trying to add qt based application to be compiled in buildroot.
>> App is using qmake infrastructure which is not supported in BR.
>>
>> I just want to hack it somehow so choose generic-package and plan use configure
>> step to generate Makefile with qmake (then continue with Makefile).
>>
>> mk file:
>> +#############################################################
>> +#
>> +# song
>> +#
>> +#############################################################
>> +
>> +SONG_VERSION = master
>> +SONG_SITE    = https://github.com/nandra/songPresentation.git
>> +SONG_SITE_METHOD = git
>> +
>> +define SONG_CONFIGURE_CMDS
>> +     $(HOST_DIR)/usr/bin/qmake -o Makefile -v $(@D)/songPresentation.pro
>> +endef
>
> I think you should write it that way (untested!):
>
> define SONG_CONFIGURE_CMDS
>         cd $(@D); \
>         $(HOST_DIR)/usr/bin/qmake -o Makefile -v songPresentation.pro
> endef
Doesn't work in both ways but finally works this way:
define SONG_CONFIGURE_CMDS
       cd $(@D); \
       $(HOST_DIR)/usr/bin/qmake
endef

>
> or maybe:
>
> define SONG_CONFIGURE_CMDS
>         cd $(@D) && \
>         $(HOST_DIR)/usr/bin/qmake -o Makefile -v songPresentation.pro
> endef
>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'

Regards,

mbe

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

* [Buildroot] qmake -o Makefile cannot create Makefile
  2012-08-27 21:04   ` Belisko Marek
@ 2012-08-28  6:39     ` Stephan Hoffmann
  0 siblings, 0 replies; 4+ messages in thread
From: Stephan Hoffmann @ 2012-08-28  6:39 UTC (permalink / raw)
  To: buildroot

Am 27.08.2012 23:04, schrieb Belisko Marek:
> On Mon, Aug 27, 2012 at 10:59 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
>> Belisko, All,
>>
>> On Monday 27 August 2012 22:46:35 Belisko Marek wrote:
>>
>> I think you should write it that way (untested!):
>>
>> define SONG_CONFIGURE_CMDS
>>         cd $(@D); \
>>         $(HOST_DIR)/usr/bin/qmake -o Makefile -v songPresentation.pro
>> endef
> Doesn't work in both ways but finally works this way:
> define SONG_CONFIGURE_CMDS
>        cd $(@D); \
>        $(HOST_DIR)/usr/bin/qmake
> endef
I am using

    cd $(@D) && $(QT_QMAKE)

since QT_QMAKE is defined when QT is built by buildroot.

Regards

Stephan

-- 
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de     sho at reLinux.de

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

end of thread, other threads:[~2012-08-28  6:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 20:46 [Buildroot] qmake -o Makefile cannot create Makefile Belisko Marek
2012-08-27 20:59 ` Yann E. MORIN
2012-08-27 21:04   ` Belisko Marek
2012-08-28  6:39     ` Stephan Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox