LinuxForum.Fans
Тема

essentia lib doesn't compile for windows using ubuntu bash

Автор: hero138 6 сообщений 982 просмотров
26.05.2020 11:56 #434786

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]
Waf: Entering 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,
[/PHP]
What it can be? Please help :(

26.05.2020 12:46 #434787

hero138, this is Russian forum and please write your messages in Russian.
Este es el foro ruso y por favor escribe tus mensajes en ruso.

26.05.2020 13:04 #434788

You are compiling on Windows with mingw?
It does not support Unix time.h and as I can see the header features.h is not found.
So the compilation could be impossible.

Also, this forum is Russian-spoken.
So please do not forget to find a Linux forum in your native language.

26.05.2020 13:30 #434789
ValentinK написал:
You are compiling on Windows with mingw?
It does not support Unix time.h and as I can see the header features.h is not found.
So the compilation could be impossible.

Also, this forum is Russian-spoken.
So please do not forget to find a Linux forum in your native language.

Ой извиняюсь, я на автомате на английском начал писать. Вообщем да, я увидел что features.h не находится. Это попытка компиляции библиотеки essentia (https://github.com/MTG/essentia) под виндовс. Я следовал описанным инструкциям для этого, но почему то именно при компиляции под виндовс появляется такая проблема. Возможно это распространенная ошибка при компиляции с mingw, по этому и спросил

26.05.2020 13:38 · отредактировано #434790
"hero138" написал:
Ой извиняюсь, я на автомате на английском начал писать. Вообщем да, я увидел что features.h не находится. Это попытка компиляции библиотеки essentia (https://github.com/MTG/essentia) под Windows. Я следовал описанным инструкциям для этого, но почему то именно при компиляции под Windows появляется такая проблема. Возможно это распространенная ошибка при компиляции с mingw, по этому и спросил

Проблема в том, что mingw на Windows не поддерживает Unix time и шифрование. Нет библиотек, нет заголовков.
Можешь попробовать полный Cygwin, но там может быть то же самое.

26.05.2020 13:54 #434791
"hero138" написал:
Ой извиняюсь, я на автомате на английском начал писать.

Ну а я Вам ответил на английском и испанском :) .

Войдите или зарегистрируйтесь, чтобы ответить.