Error cross-compiling oscam
dax 26 Feb 2019
Hi, I have a full up-to-date openpli dev branch environment. If i run
bitbake enigma2-plugin-softcams-oscam
I get
| cmake: error while loading shared libraries: libidn2.so.4: cannot open shared object file: No such file or directory
I'm using archlinux os with libidn2 2.1.1-2.
Any hits?
Thanks
dax 26 Feb 2019
I read but... "After the update this changed to '/usr/lib/libidn2.so.4'." So i don't known
Have you installed on your system libidn2.so.4? From which package is provided?
WanWizard 26 Feb 2019
OpenPLi buildservers run a 32-bit Ubuntu 16.04, my own buildserver runs a 64-bit CentOS 7 with gcc devtoolsets. On both I can't find libidn2.
It seems to be an Archlinux specific issue, more info: https://forum.manjar...not-found/76201 ?
dax 27 Feb 2019
Thanks a lot WanWizard, the symlink fix my problem
ln -s /usr/lib/libidn2.so.0.3.5 /usr/lib/libidn2.so.4
Now the next step
Is it possible to compile oscam from a local folder instead of download from git/svn?
I put my patched source in
/home/davide/openpli_dev/openpli-oe-core/meta-openpli/recipes-openpli/enigma2-softcams/enigma2-plugin-softcams-oscam/oscam-svn/
But how to adjust the recipe? I try a lot of features but no success...
require conf/license/openpli-gplv2.inc require softcam.inc inherit cmake DESCRIPTION = "OScam ${PV} Open Source Softcam" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" SRC_URI = "file://oscam-svn" DEPENDS = "libusb openssl" B = "${S}" CAMNAME = "oscam" CAMSTART = "/usr/bin/oscam --wait 0 --config-dir /etc/tuxbox/config/oscam --daemon --pidfile /tmp/oscam.pid --restart 2 --utf8" CAMSTOP = "kill \`cat /tmp/oscam.pid\` 2> /dev/null" SRC_URI += " \ file://oscam.conf \ file://oscam.server \ file://oscam.srvid \ file://oscam.user \ file://oscam.provid" CONFFILES = "/etc/tuxbox/config/oscam/oscam.conf /etc/tuxbox/config/oscam/oscam.server /etc/tuxbox/config/oscam/oscam.srvid /etc/tuxbox/config/oscam/oscam.user /etc/tuxbox/config/oscam/oscam.provid" FILES_${PN} = "/usr/bin/oscam /etc/tuxbox/config/oscam/* /etc/init.d/softcam.oscam" EXTRA_OECMAKE += "\ -DOSCAM_SYSTEM_NAME=Tuxbox \ -DWEBIF=1 \ -DWITH_STAPI=0 \ -DHAVE_LIBUSB=0 \ -DSTATIC_LIBUSB=0 \ -DWITH_SSL=0 \ -DIPV6SUPPORT=0 \ -DCLOCKFIX=1 \ -DHAVE_PCSC=0" do_install() { install -d ${D}/etc/tuxbox/config/oscam install -m 0644 ${WORKDIR}/oscam.* ${D}/etc/tuxbox/config/oscam/ install -d ${D}/usr/bin install -m 0755 ${B}/oscam ${D}/usr/bin }
Edited by dax, 27 February 2019 - 09:39.
WanWizard 27 Feb 2019
You can use:
SRCREV_pn-enigma2-plugin-softcams-oscam = "5f0a168fa97ae739946e6dcc61e81325136a24a6" PV_pn-enigma2-plugin-softcams-oscam = "svn11434" PKGV_pn-enigma2-plugin-softcams-oscam = "svn11434" SRC_URI_pn-enigma2-plugin-softcams-oscam = "git:///some/local/directory/oscam-mirror.git file://oscam.conf file://oscam.server file://oscam.srvid file://oscam.user file://oscam.provid" S_pn-enigma2-plugin-softcams-oscam = "${WORKDIR}/git"
to build from a local git repo.
You need to manually set the SRCREV, PV and PKGV according to the version you have locally.
Create a bbappend in your meta-local to override the recipe settings with this.
WanWizard 28 Feb 2019
Set the SRCREV to the required git commit hash. I don't think the PV and PKGV are relevant anymore, since I've adapted the oscam config scripts to derive the SVN version from the git commit log.
dax 1 Mar 2019
If i set
SRCREV = "8ec000dfa18eeaaf2b6fccf9b70d3bbf09bde32d" PV = "git${SRCPV}" PKGV = "git${GITPKGV}" SRC_URI = "git://github.com/OpenVisionE2/oscam.git;protocol=https"
it doesn' t work. It is related to this changeset
https://github.com/O...70d3bbf09bde32d
Besides where i can see the rev number in git page? I mean, in the oscam timeline is very simple i see changeset (nr) but on git?
Thanks
WanWizard 2 Mar 2019
I have no clue what you are doing, or trying to do.
That is where our recipe builds from, and if you build from openpli-develop, the SRCREV will be set to AUTOREV. There is no need to set the PV and the PKGV, as I said before.
I've build a new develop image a few hours ago, and that builds svn r11505 just fine. If not you have a local build issue, and I'd like to see the errors...
dax 2 Mar 2019
Maybe i was not clear enough. Everything is working well in my openpli develop branch environment.
Is it possible by editing 'enigma2-plugin-softcam-oscam.bb' to download a specific oscam revision, for example 11500, instead of the last 11505??
For sure yes, but how?
blzr 2 Mar 2019
Edited by blzr, 2 March 2019 - 21:43.
dax 2 Mar 2019
Thanks blzr. Change
SRCREV_pn-enigma2-plugin-softcams-oscam ??= "${AUTOREV}"
to
SRCREV_pn-enigma2-plugin-softcams-oscam ??= "5f0a168fa97ae739946e6dcc61e81325136a24a6"
do the trick
WanWizard 2 Mar 2019
The idea is that you override in your meta-local, it is not advised to change files under version control, it will make future updates a lot more complex.
dax 2 Mar 2019
The idea is that you override in your meta-local, it is not advised to change files under version control, it will make future updates a lot more complex.
Ok, thanks.