* [Buildroot] Configuring QMake project issue
@ 2011-10-25 7:29 Yegor Yefremov
2011-10-25 8:02 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Yegor Yefremov @ 2011-10-25 7:29 UTC (permalink / raw)
To: buildroot
Hi Thomas,
I followed your instructions on how to integrate own small project into BR. This is Qt project based on a *.pro file. My *.mk looks like this:
VSGUITEST_VERSION = 1.0
VSGUITEST_SITE_METHOD = local
define VSGUITEST_EXTRACT_CMDS
cp -a $(TOPDIR)/package/vscom/vsguitest/src/* $(@D)/
endef
define VSGUITEST_CONFIGURE_CMDS
$(QT_QMAKE) $(@D)/vsguitest.pro
endef
define VSGUITEST_BUILD_CMDS
$(MAKE) -C $(@D) all
endef
$(eval $(call GENTARGETS))
The vsguitest.pro looks like this:
HEADERS = \
vstestgui.h \
vsserialtest.h \
vsnetworktest.h
SOURCES = main.cpp \
vstestgui.cpp \
vsserialtest.cpp \
vsnetworktest.cpp
LIBS += -lSerialPort -lQtNetwork
My problem is, that after source code copy qmake generates Makefile directly in BR's root and overwrites the main Makefile. With QSerialDevice I haven't experienced such problems. What can I do about this?
Regards,
Yegor
P.S. what about adding QMake project type in addition to CMake type?
^ permalink raw reply [flat|nested] 2+ messages in thread* [Buildroot] Configuring QMake project issue
2011-10-25 7:29 [Buildroot] Configuring QMake project issue Yegor Yefremov
@ 2011-10-25 8:02 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2011-10-25 8:02 UTC (permalink / raw)
To: buildroot
Le Tue, 25 Oct 2011 09:29:37 +0200,
Yegor Yefremov <yegor_sub1@visionsystems.de> a ?crit :
> I followed your instructions on how to integrate own small project
> into BR. This is Qt project based on a *.pro file. My *.mk looks like
> this:
>
> VSGUITEST_VERSION = 1.0
> VSGUITEST_SITE_METHOD = local
>
> define VSGUITEST_EXTRACT_CMDS
> cp -a $(TOPDIR)/package/vscom/vsguitest/src/* $(@D)/
> endef
If you use _SITE_METHOD = local, then you don't need the custom
_EXTRACT_CMDS.
Just do:
_SITE_METHOD = local
_SITE = $(TOPDIR)/package/vscom/vsguitest/src/
> define VSGUITEST_CONFIGURE_CMDS
> $(QT_QMAKE) $(@D)/vsguitest.pro
> endef
This should be:
(cd $(@D); $(QT_QMAKE) vsguitest.pro)
otherwise:
> My problem is, that after source code copy qmake generates Makefile
> directly in BR's root and overwrites the main Makefile. With
> QSerialDevice I haven't experienced such problems. What can I do
> about this?
This is because in your _CONFIGURE_CMDS, qmake gets executed inside the
Buildroot top directory.
> P.S. what about adding QMake project type in addition to CMake type?
So far, we don't have any package using Qmake inside the tree, which is
why we don't have a package infrastructure for them. So either we could
document how to create Qmake package (which is quite easy), or we could
add a package infrastructure for them.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-25 8:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25 7:29 [Buildroot] Configuring QMake project issue Yegor Yefremov
2011-10-25 8:02 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox