LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-26-2020, 03:38 AM   #1
Mirell
LQ Newbie
 
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
Angry essentia lib doesn't compile for windows using ubuntu bash


Hi, everyone. I tries to compile essentia lib for windows, but I still face a compilation error . I followed offical instructions to build for windows using ubuntu bash on windows, but it doesn't help me.
Here is a compilation error:
PHP Code:
WafEntering directory `/mnt/e/essentia/build'
→ building from /mnt/e/essentia
→ building from /mnt/e/essentia/src
Building all the algorithms
Ignoring the following algorithms: IFFTK, MusicExtractorSVM, TensorflowPredict, IFFTAComplex, FFTA, IFFTA, FFTK, TensorflowPredictMusiCNN, FFTAComplex, FFTKComplex, IFFTKComplex, GaiaTransform, TensorflowPredictVGGish
Created algorithms registration file
→ building from /mnt/e/essentia/src/examples
[  1/298] Compiling src/algorithms/stats/entropy.cpp
[  2/298] Compiling src/algorithms/temporal/leq.cpp
[  3/298] Compiling src/algorithms/io/monowriter.cpp
[  4/298] Compiling src/essentia/utils/extractor_music/MusicLowlevelDescriptors.cpp
In file included from /usr/share/mingw-w64/include/time.h:300,
                 from ../src/essentia/streaming/../utils/tnt/tnt_stopwatch.h:24,
                 from ../src/essentia/streaming/../utils/tnt/tnt.h:57,
                 from ../src/essentia/streaming/../essentiautil.h:27,
                 from ../src/essentia/streaming/phantombuffer.h:27,
                 from ../src/essentia/streaming/source.h:138,
                 from ../src/essentia/streaming/streamingalgorithm.h:271,
                 from ../src/algorithms/io/monowriter.h:23,
                 from ../src/algorithms/io/monowriter.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:21:10: fatal error: features.h: No such file or directory
   21 | #include <features.h>
      |          ^~~~~~~~~~~~
compilation terminated.

In file included from /usr/share/mingw-w64/include/time.h:300,
                 from ../src/essentia/utils/tnt/tnt_stopwatch.h:24,
                 from ../src/essentia/utils/tnt/tnt.h:57,
                 from ../src/essentia/pool.h:25,
                 from ../src/essentia/utils/extractor_music/MusicDescriptorsSet.h:25,
                 from ../src/essentia/utils/extractor_music/MusicLowlevelDescriptors.h:23,
                 from ../src/essentia/utils/extractor_music/MusicLowlevelDescriptors.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:21:10: fatal error: features.h: No such file or directory
   21 | #include <features.h>
      |          ^~~~~~~~~~~~
compilation terminated.

In file included from /usr/share/mingw-w64/include/time.h:300,
                 from ../src/essentia/streaming/../utils/tnt/tnt_stopwatch.h:24,
                 from ../src/essentia/streaming/../utils/tnt/tnt.h:57,
                 from ../src/essentia/streaming/../essentiautil.h:27,
                 from ../src/essentia/streaming/phantombuffer.h:27,
                 from ../src/essentia/streaming/source.h:138,
                 from ../src/essentia/streaming/streamingalgorithm.h:271,
                 from ../src/essentia/streaming/accumulatoralgorithm.h:23,
                 from ../src/algorithms/temporal/leq.h:53,
                 from ../src/algorithms/temporal/leq.cpp:20:
/usr/include/x86_64-linux-gnu/sys/timeb.h:21:10: fatal error: features.h: No such file or directory
   21 | #include <features.h>
      |          ^~~~~~~~~~~~
compilation terminated.

In file included from /usr/share/mingw-w64/include/time.h:300,
                 from ../src/essentia/streaming/../utils/tnt/tnt_stopwatch.h:24, 
What it can be? Please help
 
Old 05-26-2020, 12:40 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,409
Blog Entries: 11

Rep: Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359Reputation: 3359
Welcome to LQ and the Programming forum!

The error messages are pretty clear about why it is failiing: fatal error: features.h: No such file or directory

What have you done to locate or provide the missing header file?

You have not provided much information useful to others to help with your problem. Saying you have followed "offical instructions to build for windows using ubuntu bash on windows" is does not provide any useful information about your build environment or what your actual build instructions may be.

Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
 
Old 05-26-2020, 04:11 PM   #3
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 305

Rep: Reputation: Disabled
I think features.h is part of glibc. Is glibc properly installed on your system? One way to get it on ubuntu is to run the command:
Code:
sudo apt-get install build-essential
 
Old 05-27-2020, 02:26 AM   #4
Mirell
LQ Newbie
 
Registered: May 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
Welcome to LQ and the Programming forum!

The error messages are pretty clear about why it is failiing: fatal error: features.h: No such file or directory

What have you done to locate or provide the missing header file?

You have not provided much information useful to others to help with your problem. Saying you have followed "offical instructions to build for windows using ubuntu bash on windows" is does not provide any useful information about your build environment or what your actual build instructions may be.

Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
Hi, already installed. I followed ofical instructions to build target for Windows: https://github.com/MTG/essentia/blob...installing.rst
I had installed this packages:
PHP Code:
sudo apt-get install build-essential libeigen3-dev libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libavresample-dev python-dev libsamplerate0-dev libtag1-dev libchromaprint-dev python-six
sudo apt
-get install python3-dev python3-numpy-dev python3-numpy python3-yaml
sudo apt
-get install g++-mingw-w64
sudo apt
-get install cmake 
 
Old 05-29-2020, 05:10 PM   #5
SoftSprocket
Member
 
Registered: Nov 2014
Posts: 305

Rep: Reputation: Disabled
Have you looked for features.h? Tried building something with it? You may have a configuration issue or a failed install etc.

Code:
$ find /usr/include -name features.h
/usr/include/c++/5/parallel/features.h
/usr/include/features.h
$ cat hello_features.c
#include <features.h>
#include <stdio.h>

int main () {
        printf ("Hello, World!\n");

        return 0;
}

$ gcc -Wall hello_features.c -o hello_features.exe
$ ./hello_features.exe
Hello, World!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compile LFS /lib32 /lib64 /lib Where do you put your lib files? Wayne Sallee Linux From Scratch 18 02-15-2017 06:54 AM
Núcleo doesn't compile (Núcleo now compiled, but Metisse doesn't compile) MTK358 Linux - Software 118 03-28-2010 07:28 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration