Skip to content

Instantly share code, notes, and snippets.

@sanuj
Created December 2, 2014 16:29
Show Gist options
  • Save sanuj/77c177806f2dd8ada8cc to your computer and use it in GitHub Desktop.
Save sanuj/77c177806f2dd8ada8cc to your computer and use it in GitHub Desktop.
output on "cmake -DENABLE_TESTING=ON"
sanuj@sanuj-VAIO:~/git-reps/shogun/build-debug$ cmake -DENABLE_TESTING=ON ..
-- Could NOT find CCache (missing: CCACHE)
-- Using system's malloc
-- Could NOT find MOSEK (missing: MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find ATLAS (missing: ATLAS_INCLUDES)
-- Could NOT find GLPK (missing: GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_PROPER_VERSION_FOUND)
-- Could NOT find CPLEX (missing: CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
-- Could NOT find Eigen3 (missing: EIGEN_INCLUDE_DIR) (Required is at least version "3.1.2")
-- Could NOT find OPENCL (missing: OPENCL_LIBRARY OPENCL_INCLUDE_DIR)
-- Could NOT find ViennaCL (missing: VIENNACL_INCLUDE_DIR OPENCL_INCLUDE_DIRS OPENCL_LIBRARIES) (Required is at least version "1.5.0")
-- checking for one of the modules 'libColPack>=1.0.9;ColPack>=1.0.9'
-- Could NOT find NLOPT (missing: NLOPT_LIBRARY NLOPT_INCLUDE_DIR)
-- Could NOT find LPSOLVE (missing: LPSOLVE_LIBRARIES LPSOLVE_INCLUDE_DIR)
-- Could NOT find ColPack (missing: COLPACK_LIBRARIES COLPACK_LIBRARY_DIR COLPACK_INCLUDE_DIR)
-- Could NOT find ARPREC (missing: ARPREC_LIBRARIES ARPREC_INCLUDE_DIR)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- checking for one of the modules 'libjson>=0.11;json>=0.11;json-c>=0.11'
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
-- Could NOT find SNAPPY (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
-- Lzo includes and libraries NOT found.
-- Spinlock support found
-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- NO supported backend(s) for linear algebra libraries found
-- ===================================================================================================================
-- Summary of Configuration Variables
--
-- The following OPTIONAL packages have been found:
* GDB
* OpenMP
* BLAS
* LAPACK
* CBLAS
* HDF5
* ZLIB
* Spinlock
* Threads
* Jinja2
-- The following REQUIRED packages have been found:
* SWIG (required version >= 2.0.4)
* PythonLibs
* PythonInterp
* NumPy
-- The following OPTIONAL packages have not been found:
* CCache
* Mosek
* Atlas
* GLPK
* CPLEX
* ARPACK
* Eigen3 (required version >= 3.1.2)
* ViennaCL (required version >= 1.5.0)
* NLopt
* LpSolve
* ColPack
* ARPREC
* Doxygen
* LibXml2
* CURL
* BZip2
* LibLZMA
* SNAPPY
* LZO
* Protobuf
-- The following REQUIRED packages have not been found:
* OpenCL
-- ===================================================================================================================
-- Enabled Integration
-- OpenCV Integration is OFF - enable with -DOpenCV=ON
-- ===================================================================================================================
-- Enabled Interfaces
-- libshogun is ON
-- python modular is ON
-- octave modular is OFF - enable with -DOctaveModular=ON
-- java modular is OFF - enable with -DJavaModular=ON
-- perl modular is OFF - enable with -DPerlModular=ON
-- ruby modular is OFF - enable with -DRubyModular=ON
-- csharp modular is OFF - enable with -DCSharpModular=ON
-- R modular is OFF - enable with -DRModular=ON
-- lua modular is OFF - enable with -DLuaModular=ON
--
-- Enabled legacy interfaces
-- cmdline static is OFF - enable with -DCmdLineStatic=ON
-- python static is OFF - enable with -DPythonStatic=ON
-- octave static is OFF - enable with -DOctaveStatic=ON
-- matlab static is OFF - enable with -DMatlabStatic=ON
-- R static is OFF - enable with -DRStatic=ON
-- ===================================================================================================================
-- To compile shogun type
-- make
--
-- To install shogun to /install type
-- make install
--
-- or to install to a custom directory
-- make install DESTDIR=/my/special/path
-- (or rerun cmake with -DCMAKE_INSTALL_PREFIX=/my/special/path) to just change the prefix
-- ===================================================================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sanuj/git-reps/shogun
@jevy-wangfei
Copy link

Hi, I am working on PSI project (https://github.com/psi-project/server) to extend its functions to Shogun toolkit. However, I occur a lot of issues when install the Shogun with Java modular on Amazon Linux AMI (amazon ec2)

Firstly, I have the same issues that required OpenCL package can't bee found when execute 'cmake -DJavaModular=ON ..'.

-- Summary of Configuration Variables

-- The following OPTIONAL packages have been found:

  • OpenMP
  • Spinlock
  • Threads

-- The following REQUIRED packages have been found:

  • SWIG (required version >= 2.0.4)
  • PythonInterp
  • Java
  • JNI

-- The following OPTIONAL packages have not been found:

  • CCache
  • GDB
  • Mosek
  • BLAS
  • LAPACK
  • GLPK
  • CPLEX
  • ARPACK
  • Eigen3 (required version >= 3.1.2)
  • ViennaCL (required version >= 1.5.0)
  • NLopt
  • LpSolve
  • ColPack
  • ARPREC
  • Doxygen
  • LibXml2
  • HDF5
  • CURL
  • ZLIB
  • BZip2
  • LibLZMA
  • SNAPPY
  • LZO
  • Protobuf

-- The following REQUIRED packages have not been found:

  • OpenCL

And when execute 'make', there are some Class can't find. Such as:
[ 89%] Generating preprocessor_pca_modular.class
/home/ec2-user/shogun/examples/undocumented/java_modular/preprocessor_pca_modular.java:17: error: cannot find symbol
PCA preproc = new PCA();
^
symbol: class PCA
location: class preprocessor_pca_modular

I am not sure whether the error is related with absence packages.

Could you please give me some advices on installing the shogun?

@deerishi
Copy link

Install all the required packages. Worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment