ultravideo/kvazaar

Error in make command - undefined reference to `_mm256_storeu2_m128i'

supersjgk opened this issue · 1 comments

I'm trying to install kvazaar on Ubuntu 20.04.
I have all the autotools installed.
I followed these commands:

./autogen.sh
./configure
make 
sudo make install
sudo ldconfig

I get the following error in the make command:

strategies/avx2/quant-avx2.c: In function ‘find_last_scanpos_avx2’:
strategies/avx2/quant-avx2.c:913:7: warning: implicit declaration of function ‘_mm256_storeu2_m128i’; did you mean ‘_mm256_setr_m128i’? [-Wimplicit-function-declaration]
  913 |       _mm256_storeu2_m128i((__m128i*)(max_abs_level + 8), (__m128i*)(max_abs_level), max_abs_level_low);
$ make
make  all-recursive
make[1]: Entering directory '/home/kvazaar'
Making all in src
make[2]: Entering directory '/home/kvazaar/src'
  GEN      kvazaar
/usr/bin/ld: ./.libs/libkvazaar.so: undefined reference to `_mm256_storeu2_m128i'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:965: kvazaar] Error 1
make[2]: Leaving directory '/home/kvazaar/src'
make[1]: *** [Makefile:524: all-recursive] Error 1
make[1]: Leaving directory '/home/kvazaar'
make: *** [Makefile:394: all] Error 2

How do I fix it?

Jovasa commented

Fixed with d8c9688