Jump to content


Photo

trying to build wscancpp - please help


  • Please log in to reply
2 replies to this topic

#1 kallquk

  • Senior Member
  • 42 posts

+1
Neutral

Posted 13 April 2025 - 22:05

Hi

 

I have a pli build environment for h7 and am trying to build wscancpp without success

I was not able to find a recipe for it, so I did it be myself, of course there is the problem

 

It is: meta-openpli/recipes-multimedia/dvbtools/wscancpp_2.bb

SUMMARY = "Small version 2 command line utility used to perform frequency scans for DVB and ATSC transmissions"
DESCRIPTION = "Wscan is a dvb channel scanner that doesn't require an initial frequency table"
HOMEPAGE = "http://idontknow/index2.html"
MAINTAINER = "<a@b.c>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit pkgconfig

DEPENDS += "fontconfig freetype libjpeg-turbo pugixml curl librepfunc"

SRC_URI = "git://github.com/wirbel-at-vdr-portal/w_scan_cpp.git;protocol=https;branch=main \
           file://version_fix.patch"

SRCREV = "${AUTOREV}"

do_compile () {
        oe_runmake download
        oe_runmake
}

S = "${WORKDIR}/git"

do_install(){
      oe_runmake install DESTDIR=${D}
}

Source codes has no configure so I did not inherit autotools, pkgconfig is needed by Makefile, but its checks are passed

 

compile fails:

ERROR: wscancpp-2-r0 do_compile: oe_runmake failed
ERROR: wscancpp-2-r0 do_compile: Function failed: do_compile (log file is located at /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/temp/log.do_compile.23902)
ERROR: Logfile of failure stored in: /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/temp/log.do_compile.23902
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 download
| NOTE: make -j 1
| ERROR: oe_runmake failed
| sed: can't read /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/config.h: No such file or directory
| git clone git://git.tvdr.de/vdr.git -b stable/2.6
| Cloning into 'vdr'...
| mkdir -p /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src
| mkdir -p /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/lib
| cd /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src && git clone https://github.com/wirbel-at-vdr-portal/vdr-plugin-satip.git
| Cloning into 'vdr-plugin-satip'...
| cd /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src && ln -sf vdr-plugin-satip satip
| cd /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src && wget https://www.gen2vdr.de/wirbel/wirbelscan/vdr-wirbelscan-2023.10.15.tgz
| --2025-04-13 22:30:50--  https://www.gen2vdr.de/wirbel/wirbelscan/vdr-wirbelscan-2023.10.15.tgz
| Resolving www.gen2vdr.de (www.gen2vdr.de)... 188.68.47.199, 2a03:4000:30:5a22::12:3155
| Connecting to www.gen2vdr.de (www.gen2vdr.de)|188.68.47.199|:443... connected.
| HTTP request sent, awaiting response... 200 OK
| Length: 203253 (198K) [application/x-gzip]
| Saving to: ‘vdr-wirbelscan-2023.10.15.tgz’
|
|      0K .......... .......... .......... .......... .......... 25% 1.74M 0s
|     50K .......... .......... .......... .......... .......... 50% 1.73M 0s
|    100K .......... .......... .......... .......... .......... 75% 65.9M 0s
|    150K .......... .......... .......... .......... ........  100% 1.75M=0.08s
|
| 2025-04-13 22:30:50 (2.30 MB/s) - ‘vdr-wirbelscan-2023.10.15.tgz’ saved [203253/203253]
|
| cd /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src && tar xf vdr-wirbelscan-2023.10.15.tgz && rm -f -f vdr-wirbelscan-2023.10.15.tgz
| cd /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src && ln -s wirbelscan-2023.10.15 wirbelscan
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/libsi/descriptor.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/libsi/section.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/libsi/si.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/libsi/util.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/args.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/audio.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/channels.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/ci.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/config.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/cutter.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/device.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/diseqc.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/dvbci.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/dvbdevice.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/dvbplayer.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/dvbspu.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/dvbsubtitle.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/eit.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/eitscan.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/epg.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/filter.o
|  CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.o
| /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.c:14:10: fatal error: fontconfig/fontconfig.h: No such file or directory
|  #include <fontconfig/fontconfig.h>
|           ^~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make: *** [Makefile:267: /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.o] Error 1
| ERROR: Function failed: do_compile (log file is located at /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/temp/log.do_compile.23902)
ERROR: Task (/home/xhiksi/1000/h7/pli73/openpli-oe-core/meta-openpli/recipes-multimedia/dvbtools/wscancpp_2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 732 tasks of which 725 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/xhiksi/1000/h7/pli73/openpli-oe-core/meta-openpli/recipes-multimedia/dvbtools/wscancpp_2.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

but it is not correct, fontconfig/fontconfig.h is its place in ${WORKDIR}/recipe-sysroot/usr/include

 

I make a devshell also, to see how the make line:

echo -e "\e[1;36m CXX /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.o\e[0m"
g++  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0=/usr/src/debug/wscancpp/2-r0 -fdebug-prefix-map=/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/recipe-sysroot=  -g -O3 -fPIC -Werror=overloaded-virtual  -Wno-parentheses -Wno-unused-parameter -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DPLUGIN_NAME_I18N='"cmd"' -DAPIVERSION='"2.6.9"' -DSTATIC_PLUGINS -I/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git -I/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr -I/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/PLUGINS/src    -I/home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/recipe-sysroot/usr/include/freetype2 -o /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.o /home/xhiksi/1000/h7/pli73/openpli-oe-core/build/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/wscancpp/2-r0/git/vdr/font.c

It seems here not cross-compiling, anyway the directory is not in -I directives, perhaps should not, because I added it and many errors raised for every file. pkgconig does not output /usr/include, too

May be it must be set in gcc default include directory list, in this case g++ has /usr/include to defaults but not ${WORKDIR}/recipe-sysroot/usr/include

 

Please help


Edited by kallquk, 13 April 2025 - 22:07.


Re: trying to build wscancpp - please help #2 el bandido

  • Senior Member
  • 412 posts

+17
Neutral

Posted 15 April 2025 - 01:22

That build (w-scan-cpp) is going to depend on VDR, which will be difficult to install in enigma2 image. My suggestion is to forget about this particular w-scan-cpp build.



Re: trying to build wscancpp - please help #3 kallquk

  • Senior Member
  • 42 posts

+1
Neutral

Posted 15 April 2025 - 19:46

I built it at last, runs ok, but fails to find existing channels same w_scan or w_scan2

this is the recipe:

SUMMARY = "Small version 2 command line utility used to perform frequency scans for DVB and ATSC transmissions"
DESCRIPTION = "Wscan is a dvb channel scanner that doesn't require an initial frequency table"
HOMEPAGE = "http://efundit/index2.html"
MAINTAINER = "wirbel <w_scan@gmx-topmail.de>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit pkgconfig

DEPENDS += "fontconfig freetype libcap libjpeg-turbo pugixml curl librepfunc"

SRC_URI = "git://github.com/wirbel-at-vdr-portal/w_scan_cpp.git;protocol=https;branch=main \
           file://version_fix2.patch"

SRCREV = "${AUTOREV}"
EXTRA_OEMAKE = "'CC=${CC}' 'CXX=${CXX}' 'RANLIB=${RANLIB}' 'AR=${AR}' \
        'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"

PARALLEL_MAKE = ""

do_compile () {
        oe_runmake download
        find ${WORKDIR}/git -name 'common.cpp' -exec sed -i "s/FE_NONE/FE_TIMEDOUT/g" {} \;
        oe_runmake
}

S = "${WORKDIR}/git"

do_install(){
      oe_runmake install DESTDIR=${D}
}

here I did a modification in source code hoping not relevant. The kernel is too old and FE_NONE = 0 does not exist, 0 was not accepted, and I replaced it with an existing enum value: FE_TIMEDOUT

this change is not in main files but in a vdrplugin file

 

Also I did a patch:

diff -Naur a/Makefile b/Makefile
--- a/Makefile  2025-04-15 00:43:05.804189228 +0200
+++ b/Makefile  2025-04-15 00:47:03.409246361 +0200
@@ -47,8 +47,8 @@
 #/******************************************************************************
 # * if you prefer verbose non-coloured build messages, remove the '@' here:
 # *****************************************************************************/
-CC  = @gcc
-CXX = @g++
+#CC  = @gcc
+#CXX = @g++


 CFLAGS   += -g -O3 -fPIC -Werror=overloaded-virtual
@@ -296,7 +296,7 @@
 download: $(vdrdir) $(pluginsrcdir)/satip $(pluginsrcdir)/wirbelscan

 $(vdrdir):
-       $(GIT) clone git://git.tvdr.de/vdr.git
+       $(GIT) clone git://git.tvdr.de/vdr.git -b stable/2.6
        @$(RM) -rf $(vdrdir)/.git
        $(MKDIR_P) $(pluginsrcdir)
        $(MKDIR_P) $(pluginlibdir)

put it in same directory and name: version_fix2.patch
 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users