Package Details: shogun 4.0.0-2

Git Clone URL: https://aur.archlinux.org/shogun.git (read-only)
Package Base: shogun
Description: Shogun - A Large Scale Machine Learning Toolbox with the python interface
Upstream URL: http://www.shogun-toolbox.org
Licenses: GPLv3
Submitter: None
Maintainer: qwertzdenek
Last Packager: qwertzdenek
Votes: 5
Popularity: 0.000025
First Submitted: 2012-06-11 12:54
Last Updated: 2015-12-08 12:33

Latest Comments

vishalbelsare commented on 2017-11-29 19:11

# Maintainer: Vishal Belsare <vxxxxx.bxxxxxx@gmail.com>
pkgname=shogun
pkgver=6.0.0
pkgrel=1
pkgdesc="Shogun - A Large Scale Machine Learning Toolbox"
arch=('i686' 'x86_64')
url="http://shogun.ml/"
license=('GPLv3')
depends=('cblas' 'lapack' 'swig' 'python2' 'python2-numpy')
source=(http://github.com/shogun-toolbox/shogun/archive/shogun_$pkgver.tar.gz)
md5sums=('7a1757de1a68caad468d69f603f16a2a')

build() {
cd "${srcdir}/${pkgname}-${pkgname}_${pkgver}"
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_ARPREC=OFF \
-DBUILD_EXAMPLES=ON -DBUILD_META_EXAMPLES=ON \
-DENABLE_ARPACK=ON -DENABLE_COLPACK=OFF -DENABLE_VIENNACL=OFF \
-DENABLE_CPLEX=OFF -DENABLE_MOSEK=OFF \
-DENABLE_NLOPT=ON -DENABLE_GLPK=ON -DENABLE_LPSOLVE=ON \
-DENABLE_CURL=ON -DENABLE_HDF5=ON -DENABLE_JSON=ON \
-DENABLE_PROTOBUF=ON -DENABLE_LIBXML2=ON \
-DENABLE_BZIP2=ON -DENABLE_LIBLZMA=ON -DENABLE_LZO=ON \
-DENABLE_SNAPPY=ON -DENABLE_ZLIB=ON \
-DLIBSHOGUN=ON -DLIBSHOGUN_BUILD_STATIC=ON \
-DLICENSE_GPL_SHOGUN=ON \
-DLINALG_DEFAULT_BACKEND=EIGEN3 -DLINALG_EIGENSOLVER_LIB=EIGEN3 \
-DLINALG_LINEAR_SOLVER_LIB=EIGEN3 \
-DPythonModular=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
-DPYTHON_PACKAGES_PATH=/usr/lib/python2.7/site-packages \
-DUSE_EIGEN3_EIGSLV=ON -DUSE_EIGEN3_GLOBAL=ON -DUSE_EIGEN3_LINSLV=ON \
-DUSE_CPLEX=OFF -DUSE_MOSEK=OFF \
-DUSE_GLPK=ON -DUSE_LPSOLVE=ON -DUSE_BZIP2=ON \
-DUSE_GZIP=ON -DUSE_LZMA=ON -DUSE_LZO=ON -DUSE_SNAPPY=ON \
-DUSE_SVMLIGHT=ON -DUSE_ORIGINAL_LAPACK=OFF \
-DVIENNACL_WITH_OPENCL=OFF ..
make -j2
}

package() {
cd "${srcdir}/${pkgname}-${pkgname}_${pkgver}/build"
make DESTDIR="$pkgdir/" install
}

qwertzdenek commented on 2015-12-08 12:38

Fixed in SWIG-git. Rebuild both.

qwertzdenek commented on 2015-11-10 12:53

No idea. Reported to upstream. https://github.com/shogun-toolbox/shogun/issues/2930

lan commented on 2015-11-10 09:12

Does not compile for me either.
Any fix for this?

aexl commented on 2015-10-14 17:14

It does not compile for me, i get the following error:
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: too many initializers for ‘PyMappingMethods’
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ to ‘unaryfunc {aka _object* (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘lenfunc {aka long int (*)(_object*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘objobjargproc {aka int (*)(_object*, _object*, _object*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘ssizeargfunc {aka _object* (*)(_object*, long int)}’ to ‘objobjargproc {aka int (*)(_object*, _object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘getbufferproc {aka int (*)(_object*, bufferinfo*, int)}’ to ‘lenfunc {aka long int (*)(_object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: invalid conversion from ‘releasebufferproc {aka void (*)(_object*, bufferinfo*)}’ to ‘binaryfunc {aka _object* (*)(_object*, _object*)}’ [-fpermissive]
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: cannot convert ‘PyObject* {aka _object*}’ to ‘getbufferproc {aka int (*)(_object*, bufferinfo*, int)}’ in initialization
/home/aexl/builds/shogun/src/shogun-4.0.0/build/src/interfaces/python_modular/modshogunPYTHON_wrap.cxx:679604:1: error: cannot convert ‘PyObject* {aka _object*}’ to ‘releasebufferproc {aka void (*)(_object*, bufferinfo*)}’ in initialization
cc1plus: warning: unrecognized command line option ‘-Wno-c++11-narrowing’
src/interfaces/python_modular/CMakeFiles/_python_modular.dir/build.make:322: recipe for target 'src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o' failed
make[2]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/modshogunPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:87: recipe for target 'src/interfaces/python_modular/CMakeFiles/_python_modular.dir/all' failed
make[1]: *** [src/interfaces/python_modular/CMakeFiles/_python_modular.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
Aborting...

Is is possible, that something must be changed to be able to compile it with gcc 5?

qwertzdenek commented on 2015-02-12 17:20

Updated PKGBUILD for the new version. I added just python interface for start.

aurelien commented on 2014-06-05 15:26

And modify:

package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
make DESTDIR="$pkgdir/" .r-install.sh

aurelien commented on 2014-06-05 15:09

Here is last PKGBUILD

# Contributor (Arch) : Fabian Yamaguchi <fabian.yamaguchi@cs.uni-goettingen.de>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

# Based on shogun-git package by
# Alex Babescu <alex.babescu@gmail.com>

pkgname=shogun
pkgver=3.2.0
pkgrel=1
pkgdesc="Shogun - A Large Scale Machine Learning Toolbox"
arch=('i686' 'x86_64')
url="http://www.shogun-toolbox.org"
license=('GPLv3')
depends=('python2' 'python2-numpy' 'swig' 'hdf5' 'blas' 'lapack')
makedepends=('git' 'python2' 'lzo2' 'glpk' 'gcc' 'make' 'pkg-config' 'libxml2')
optdepends=('atlas-lapack' 'octave' 'doxygen' 'r')
provides=('shogun')
source=("http://shogun-toolbox.org/archives/shogun/releases/3.2/sources/shogun-3.2.0.tar.bz2")

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# msg "Starting make..."

# python2 fix
# sed -i 's/PYTHON=python/PYTHON=python2/g' src/configure
# sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
# -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
# $(find ./ -name '*.py')

# cd src
# ./configure --prefix=/usr
# make
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
make DESTDIR="$pkgdir/" install
}