Error when trying to build with meta examples in shogun - cmake

I successfully built shogun without the examples (this question) but now when I am trying to do the same with meta examples, I am getting an error as follows:
$ cmake -DSWIG_EXECUTABLE=/usr/local/bin/swig -DINTERFACE_PYTHON=ON -DBUILD_META_EXAMPLES=ON ..
-- Could NOT find CCache (missing: CCACHE CCACHE_VERSION)
-- Using system's malloc
CMake Error at src/shogun/CMakeLists.txt:49 (MESSAGE):
Shogun can only be built with GPL codes if the source files are in
/Users/krishna/shogun/src/gpl. Please download or disable with
LICENSE_GPL_SHOGUN=OFF.
-- Configuring incomplete, errors occurred!
See also "/Users/krishna/shogun/build/CMakeFiles/CMakeOutput.log".
Thank you.

https://github.com/shogun-toolbox/shogun/issues/4179
Sorry I made a silly mistake as can be seen by the link.

Related

How to use Doxygen to generate documents for Eigen?

I've tried on my windows PC and in wsl, but it doesn't work, and I'm using the Doxyfile.in it gives in eigen-3.4.0\doc
error: tag HTML_HEADER: header file '${Eigen_BINARY_DIR}/doc/eigendoxy_header.html' does not exist
It seems that it can't understand the Eigen_BINARY_DIR or something like that. Does it related to my OS? Do I need to try it in macOS?
I know where I'm wrong, I didn't process the file before using Doxygen, so I was confused by the difference between Doxyfile and Doxyfile.in and think it may related to my OS.
I tried to use CMake but there is still a problem...
I went to Eigen website and try to learn how to use CMake, I try cmake . in WSL(in eigen-3.4.0/doc) but it reports an error, which said:
CMake Error at CMakeLists.txt:14 (check_cxx_compiler_flag):
Unknown CMake command "check_cxx_compiler_flag".
-- Configuring incomplete, errors occurred!
See also "/mnt/c/eigen-3.4.0/doc/CMakeFiles/CMakeOutput.log".

Problem installing EBU R128 loudness-scanner

I'm a master student working on my master thesis, which require to extract loudness and pitch data each second.
I did some research and found that loudness-scanner might be able to do that.
https://github.com/jiixyj/loudness-scanner
After installing, I typed in below command, but I kept seeing this command not found message.
MacBook-Air:loudness-scanner jhl$ loudness tag 00.1mp3
-bash: loudness: command not found
I believe it happened because loudness-scanner didn't successfully install on my laptop, so I went back to start installing again, then ran into below error message.
CMake Error at CMakeLists.txt:8 (include):
include could not find load file:
utils
CMake Error at CMakeLists.txt:26 (add_subdirectory):
add_subdirectory given source "ebur128/ebur128" which is not an existing
directory.
CMake Error at CMakeLists.txt:27 (add_subdirectory):
add_subdirectory given source "scanner" which is not an existing directory.
CMake Error at CMakeLists.txt:30 (to_yes_no):
Unknown CMake command "to_yes_no".
-- Configuring incomplete, errors occurred!
I guess I faced this issue because I'm all new to this and some file or program are missing and needed to be installed. But I'm not sure which are missing.
Please kindly help, thank you!

Building Allegro 5 Library using TDM-GCC and CMake

I am attempting to build Allegro 5 Library using TDM-GCC and CMake. As seen in the screenshot, I pointed to the correct folders using CMake, but the error I am getting is as follows:
CMake Error at CMakeLists.txt:7:
Parse error. Expected a command name, got unquoted argument with text
"<!DOCTYPE".
Configuring incomplete, errors occurred!

Problems building hyperscan

I am attempting to build hyperscan: https://github.com/01org/hyperscan on ubuntu 16.04. I have installed the listed prerequisites and I am now using Cmake to create the build scripts which gives the following error:
...
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- looking for sqlite3 in source tree
CMake Error at cmake/sqlite3.cmake:25 (message):
no sqlite3 in source tree
Call Stack (most recent call first):
tools/hsbench/CMakeLists.txt:1 (include)
-- Configuring incomplete, errors occurred!
See also "/home/rful011/hyperscan/build/CMakeFiles/CMakeOutput.log".
See also "/home/rful011/hyperscan/build/CMakeFiles/CMakeError.log".
The tails of the two Cmake Files have nothing related to sqlite -- they deal with the thread stuff.
I installed the libsqlite3-dev package but that made no difference. I am not familiar with Cmake (with configure I would be looking at fiddling with options to specify library locations...) so I am at a loss on how to proceed.
I did find the sqlite.cmake file and it appears to check for installed module (which presumably failed) and then it looks in the source tree.3
The problem turned out to be that pkg-config was not installed and installing it fixed the issue.
I was looking at the cmake file and guessed that "find_package(PkgConfig QUIET)" called pktconfig and when I checked it was not installed.
Hope this helps someone in the future!

CMake cannot find MathGL's dependency PNG

I'm trying to generate Visual Studio 2013 projects files for MathGL 2.3.3 with CMake.
For some reason cmake does not understand my PNG_PNG_INCLUDE_DIR statement.
cmake "-DZLIB_INCLUDE_DIR=c:\users\chenning\projects\zlib-1.2.8\" "-DZLIB_LIBRARY_DEBUG=c:\users\chenning\projects\zlib-1.2.8\zlib.lib" "-DZLIB_LIBRARY_Release=c:\users\chenning\projects\zlib-1.2.8\zlib.lib" "-DPNG_PNG_INCLUDE_DIR=C:\Users\chenning\projects\lpng1620\" "-DPNG_LIBRARY_DEBUG=C:\Users\chenning\projects\lpng1620\projects\vstudio\x64\Debug\libpng16.lib" "-DPNG_LIBRARY_Release=C:\Users\chenning\projects\lpng1620\projects\vstudio\x64\Release\libpng16.lib" .
The Path exists and the variable is really called PNG_PNG_INCLUDE_DIR with two PNG.
cmake is telling me:
-- Found ZLIB: c:\users\chenning\projects\zlib-1.2.8\zlib.lib
-- Could NOT find PNG (missing: PNG_PNG_INCLUDE_DIR)
CMake Error at CMakeLists.txt:341 (message):
Couldn't find PNG library.
-- Configuring incomplete, errors occurred!
See also "C:/Users/chenning/projects/mathgl-2.3.3/CMakeFiles/CMakeOutput.log".
See also "C:/Users/chenning/projects/mathgl-2.3.3/CMakeFiles/CMakeError.log".
When I set the paths with cmake-gui all works fine.
Any ideas what's wrong?