mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Porting rule file from qt4 to qt5
@ 2015-11-04 10:49 Matthias Klein
  2015-11-06 11:25 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Klein @ 2015-11-04 10:49 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1243 bytes --]

Hello,

I tried to move from qt4 to qt5. Building the library was no problem, 
but I don't get a qt project inside the local_src to compile.

Basically the rule file looks like what I get from "ptxdist newpackage 
src-qmake-prog".
# 
----------------------------------------------------------------------------
# Prepare
# 
----------------------------------------------------------------------------

#SCPICMD_CONF_ENV := $(CROSS_ENV)

#
# qmake
#
SCPICMD_CONF_TOOL := qmake
SCPICMD_CONF_OPT := $(CROSS_QMAKE_OPT) PREFIX=/usr
The prepare steps runs, but the resulting Makefile shows the wrong qmake 
command:


# Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake CONFIG+=silent 
PREFIX=/usr -o Makefile ../../../local_src/scpicmd/world.pro
Instead of something like this (at the old qt4 call):

# Command: 
/home/user/bsp/platform-tx53-3.12-rt/sysroot-cross/bin/qmake-cross 
CONFIG+=silent PREFIX=/usr -o Makefile 
../../../local_src/scpicmd/world.pro

ptxdist calls qmake from the host instead of using the local qmake 
inside the bsp.


Does anyone have a tip what wrong in my rule file or what I should 
change?
Or is a local_src qt5 project not supported at the moment?


Best regards,
Matthias

[-- Attachment #1.2: Type: text/html, Size: 2759 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Porting rule file from qt4 to qt5
  2015-11-04 10:49 [ptxdist] Porting rule file from qt4 to qt5 Matthias Klein
@ 2015-11-06 11:25 ` Michael Olbrich
  2015-11-09  8:15   ` Matthias Klein
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2015-11-06 11:25 UTC (permalink / raw)
  To: ptxdist

On Wed, Nov 04, 2015 at 10:49:05AM +0000, Matthias Klein wrote:
> I tried to move from qt4 to qt5. Building the library was no problem, but I
> don't get a qt project inside the local_src to compile.
> 
> Basically the rule file looks like what I get from "ptxdist newpackage
> src-qmake-prog".
> #
> ----------------------------------------------------------------------------
> # Prepare
> #
> ----------------------------------------------------------------------------
> 
> #SCPICMD_CONF_ENV := $(CROSS_ENV)

> 
> #
> # qmake
> #
> SCPICMD_CONF_TOOL := qmake
> SCPICMD_CONF_OPT := $(CROSS_QMAKE_OPT) PREFIX=/usr
> The prepare steps runs, but the resulting Makefile shows the wrong qmake
> command:
> 
> 
> # Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake CONFIG+=silent
> PREFIX=/usr -o Makefile ../../../local_src/scpicmd/world.pro
> Instead of something like this (at the old qt4 call):
> 
> # Command:
> /home/user/bsp/platform-tx53-3.12-rt/sysroot-cross/bin/qmake-cross
> CONFIG+=silent PREFIX=/usr -o Makefile ../../../local_src/scpicmd/world.pro
> 
> ptxdist calls qmake from the host instead of using the local qmake inside
> the bsp.
> 
> 
> Does anyone have a tip what wrong in my rule file or what I should change?
> Or is a local_src qt5 project not supported at the moment?

You need to make sure ptxdist finds the correct qmake:

SCPICMD_PATH	:= PATH=$(PTXDIST_SYSROOT_CROSS)/bin/qt5:$(CROSS_PATH)

Also, don't forget to change the 'select' in scmicmd.in to QT5.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Porting rule file from qt4 to qt5
  2015-11-06 11:25 ` Michael Olbrich
@ 2015-11-09  8:15   ` Matthias Klein
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Klein @ 2015-11-09  8:15 UTC (permalink / raw)
  To: ptxdist


------ Originalnachricht ------
Von: "Michael Olbrich" <m.olbrich@pengutronix.de>
An: ptxdist@pengutronix.de
Gesendet: 06.11.2015 12:25:45
Betreff: Re: [ptxdist] Porting rule file from qt4 to qt5

>
>You need to make sure ptxdist finds the correct qmake:
>
>SCPICMD_PATH := PATH=$(PTXDIST_SYSROOT_CROSS)/bin/qt5:$(CROSS_PATH)
>
>

Thanks a lot for the tip! It works fine ...


Best regards,
Matthias


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-11-09  8:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-04 10:49 [ptxdist] Porting rule file from qt4 to qt5 Matthias Klein
2015-11-06 11:25 ` Michael Olbrich
2015-11-09  8:15   ` Matthias Klein

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