NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: (Cmake/make) No build target on compilation?

(Cmake/make) No build target on compilation? 2 months 2 weeks ago #1

I'm trying to compile from source to add a wifi driver to the system.

When I try to compile I get stuck trying to build the inputstream.adaptive addon. This is the package.mk file I am using:
################################################################################
#      This file is part of LibreELEC - https://libreelec.tv
#      Copyright (C) 2016 Team LibreELEC
#
#  LibreELEC is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 2 of the License, or
#  (at your option) any later version.
#
#  LibreELEC is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with LibreELEC.  If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="inputstream.adaptive"
PKG_VERSION="08ea9d6"
PKG_SHA256="d3e8093718ec668f54b068d05246da17f659a3ca677b931dfe3c769fff380197"
PKG_LICENSE="GPL"
PKG_SITE="http://www.kodi.tv"
PKG_URL="https://github.com/peak3d/inputstream.adaptive/archive/$PKG_VERSION.tar.gz" 
PKG_DEPENDS_TARGET="toolchain kodi-platform expat"
PKG_PRIORITY="optional"
PKG_SECTION=""
PKG_SHORTDESC="inputstream.adaptive"
PKG_LONGDESC="inputstream.adaptive"

PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="kodi.inputstream"

PKG_CMAKE_OPTS_TARGET="-DCMAKE_MODULE_PATH=$SYSROOT_PREFIX/usr/share/kodi \
		       -DCMAKE_PREFIX_PATH=$SYSROOT_PREFIX/usr"

post_makeinstall_target() {
  cd $ROOT/$PKG_BUILD/wvdecrypter
  cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_MODULE_PATH=$SYSROOT_PREFIX/usr/share/kodi \
        -DCMAKE_PREFIX_PATH=$SYSROOT_PREFIX/usr \
        .
  make

  mkdir -p $INSTALL/usr/lib/kodi/addons/$PKG_NAME/lib
    cp -P libssd_wv.so $INSTALL/usr/lib/kodi/addons/$PKG_NAME/lib
}

addon() {
  mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
    cp -P $PKG_BUILD/wvdecrypter/libssd_wv.so $ADDON_BUILD/$PKG_ADDON_ID/lib
}

When I try to compile I get an error that says that make cannot find a makefile. I cant figure out how to get the openelec makefile to use cmake with the CMakeList.txt that is included in the inputstream.adaptive repo.

Thanks in advance
The administrator has disabled public write access.