Skip to contentSkip to conversation

Use RCC variable to call rcc compiler

v4l-utils Khem Raj 2 participants 3 messages Oct 7, 2012 – Oct 8, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

In cross compile environment rcc native version may be staged in a different directory or even called rcc4 or somesuch. Lets provide a facility to specify it in environment

---
 utils/qv4l2/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/qv4l2/Makefile.am +1 -1
index 02d0bcb..86d0285 100644
@@ -29,7 +29,7 @@ moc_capture-win.cpp: $(srcdir)/capture-win.h
 
 # Call the Qt resource compiler
 qrc_qv4l2.cpp: $(srcdir)/qv4l2.qrc
-	rcc -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
+	$(RCC) -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
 
 install-data-local:
 	$(INSTALL_DATA) -D -p "$(srcdir)/qv4l2.desktop"   "$(DESTDIR)$(datadir)/applications/qv4l2.desktop"
Signature · 1 line
1.7.10.4
#1 lore raw

Hello Khem,

Quoted 4 lines · Khem Raj

In cross compile environment rcc native version may be staged in a different directory or even called rcc4 or somesuch. Lets provide a facility to specify it in environment

I'll take care of this patch.

Quoted 6 lines
utils/qv4l2/Makefile.am +0 -0
index 02d0bcb..86d0285 100644

utils/qv4l2/Makefile.am moc_capture-win.cpp: $(srcdir)/capture-win.h · line 35

Quoted 8 lines
utils/qv4l2/Makefile.am +1 -1
@@ -29,7 +29,7 @@ moc_capture-win.cpp: $(srcdir)/capture-win.h
 
 # Call the Qt resource compiler
 qrc_qv4l2.cpp: $(srcdir)/qv4l2.qrc
-	rcc -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
+	$(RCC) -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
 
 install-data-local:
 	$(INSTALL_DATA) -D -p "$(srcdir)/qv4l2.desktop"   "$(DESTDIR)$(datadir)/applications/qv4l2.desktop"

Where does RCC gets populated? The configure.ac parts seems to be missing.

Thanks,
Gregor

author
#2 lore raw
Quoted 21 lines · Gregor Jasny

Hello Khem,

Quoted 4 lines · Khem Raj

In cross compile environment rcc native version may be staged in a different directory or even called rcc4 or somesuch. Lets provide a facility to specify it in environment

I'll take care of this patch.

Quoted 11 lines
utils/qv4l2/Makefile.am +1 -1
index 02d0bcb..86d0285 100644
@@ -29,7 +29,7 @@ moc_capture-win.cpp: $(srcdir)/capture-win.h
 
 # Call the Qt resource compiler
 qrc_qv4l2.cpp: $(srcdir)/qv4l2.qrc
-     rcc -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
+     $(RCC) -name qv4l2 -o $@ $(srcdir)/qv4l2.qrc
 
Quoted 6 lines

utils/qv4l2/Makefile.am moc_capture-win.cpp: $(srcdir)/capture-win.h · line 35

Quoted 3 lines
utils/qv4l2/Makefile.am +0 -0
 install-data-local:
      $(INSTALL_DATA) -D -p "$(srcdir)/qv4l2.desktop"   "$(DESTDIR)$(datadir)/applications/qv4l2.desktop"

Where does RCC gets populated? The configure.ac parts seems to be missing.

hmm ok. I have been using it in environment. but I will do a v2 with configure.in detecting it with pkgconfig

Quoted 2 lines

Thanks,
Gregor