Discussion:
[MPlayer-users] compiling mplayer: make error
simona bellavista
2015-03-25 10:44:56 UTC
Permalink
I am compiling latest version of mplayer on linux.

I have configured with:

./configure --prefix=/home/afylot/local/ --yasm=''

and when I run

make

I get the following error:

libavcodec/x86/hpeldsp_init.c: In function 'hpeldsp_init_mmxext':
libavcodec/x86/hpeldsp_init.c:218:31: error: 'put_pixels16_y2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:218:31: note: each undeclared identifier is
reported only once for each function it appears in
libavcodec/x86/hpeldsp_init.c:220:31: error: 'avg_pixels16_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:221:31: error: 'avg_pixels16_x2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:222:31: error: 'avg_pixels16_y2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:223:31: error: 'avg_pixels16_xy2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:234:42: error:
'put_no_rnd_pixels16_x2_mmxext' undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:235:42: error:
'put_no_rnd_pixels16_y2_mmxext' undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:239:35: error:
'avg_approx_pixels16_xy2_mmxext' undeclared (first use in this function)
make[1]: *** [libavcodec/x86/hpeldsp_init.o] Error 1
make[1]: Leaving directory
`/home/afylot/transfer/mplayer-export-2015-03-25/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2

Can you help me?

A
Peter White
2015-03-25 13:03:15 UTC
Permalink
Post by simona bellavista
I am compiling latest version of mplayer on linux.
./configure --prefix=/home/afylot/local/ --yasm=''
I get the same error, when using --yasm=''. Is there a reason for
setting it that way? Why not install yasm and do away with that
option?
Post by simona bellavista
'put_pixels16_y2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:218:31: note: each undeclared
identifier is
reported only once for each function it appears in
libavcodec/x86/hpeldsp_init.c:220:31: error: 'avg_pixels16_mmxext'
undeclared (first use in this function)
'avg_pixels16_x2_mmxext'
undeclared (first use in this function)
'avg_pixels16_y2_mmxext'
undeclared (first use in this function)
'avg_pixels16_xy2_mmxext'
undeclared (first use in this function)
'put_no_rnd_pixels16_x2_mmxext' undeclared (first use in this
function)
'put_no_rnd_pixels16_y2_mmxext' undeclared (first use in this
function)
'avg_approx_pixels16_xy2_mmxext' undeclared (first use in this
function)
make[1]: *** [libavcodec/x86/hpeldsp_init.o] Error 1
make[1]: Leaving directory
`/home/afylot/transfer/mplayer-export-2015-03-25/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
Peter
simona bellavista
2015-03-25 14:10:46 UTC
Permalink
I have tried removing --yasm=''

Now my build fails with:

ffmpeg/libavcodec/libavcodec.a(allcodecs.o): In function
`avcodec_register_all':
allcodecs.c:(.text+0x715): undefined reference to `ff_nvenc_h265_encoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Post by Peter White
Post by simona bellavista
I am compiling latest version of mplayer on linux.
./configure --prefix=/home/afylot/local/ --yasm=''
I get the same error, when using --yasm=''. Is there a reason for
setting it that way? Why not install yasm and do away with that
option?
Post by simona bellavista
'put_pixels16_y2_mmxext'
undeclared (first use in this function)
libavcodec/x86/hpeldsp_init.c:218:31: note: each undeclared
identifier is
reported only once for each function it appears in
libavcodec/x86/hpeldsp_init.c:220:31: error: 'avg_pixels16_mmxext'
undeclared (first use in this function)
'avg_pixels16_x2_mmxext'
undeclared (first use in this function)
'avg_pixels16_y2_mmxext'
undeclared (first use in this function)
'avg_pixels16_xy2_mmxext'
undeclared (first use in this function)
'put_no_rnd_pixels16_x2_mmxext' undeclared (first use in this function)
'put_no_rnd_pixels16_y2_mmxext' undeclared (first use in this function)
'avg_approx_pixels16_xy2_mmxext' undeclared (first use in this function)
make[1]: *** [libavcodec/x86/hpeldsp_init.o] Error 1
make[1]: Leaving directory
`/home/afylot/transfer/mplayer-export-2015-03-25/ffmpeg'
make: *** [ffmpeg/libavcodec/libavcodec.a] Error 2
Peter
_______________________________________________
MPlayer-users mailing list
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Peter White
2015-03-25 14:45:38 UTC
Permalink
Post by simona bellavista
Post by Peter White
Post by simona bellavista
I am compiling latest version of mplayer on linux.
./configure --prefix=/home/afylot/local/ --yasm=''
I get the same error, when using --yasm=''. Is there a reason for
setting it that way? Why not install yasm and do away with that
option?
I have tried removing --yasm=''
ffmpeg/libavcodec/libavcodec.a(allcodecs.o): In function
allcodecs.c:(.text+0x715): undefined reference to `ff_nvenc_h265_encoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Please do not top-post.

Try
$ svn up

and run ./configure again, that should fix it.
Post by simona bellavista
r37381 | michael | 2015-03-25 12:03:51 +0100 (Mi, 25. Mär 2015) | 1 Zeile
configure: disable nvenc_h265 too to avoid breaking build
Peter
simona bellavista
2015-03-25 17:52:01 UTC
Permalink
Post by Peter White
Post by simona bellavista
Post by Peter White
Post by simona bellavista
I am compiling latest version of mplayer on linux.
./configure --prefix=/home/afylot/local/ --yasm=''
I get the same error, when using --yasm=''. Is there a reason for
setting it that way? Why not install yasm and do away with that
option?
I have tried removing --yasm=''
ffmpeg/libavcodec/libavcodec.a(allcodecs.o): In function
allcodecs.c:(.text+0x715): undefined reference to `ff_nvenc_h265_encoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Please do not top-post.
Try
$ svn up
and run ./configure again, that should fix it.
It builds, but now it cannot find libpng15.so.15
how do I know if the library is missing because it is not there or because
it is out os library_path?
Peter White
2015-03-25 18:42:47 UTC
Permalink
Post by simona bellavista
Post by Peter White
Post by simona bellavista
Post by simona bellavista
I have tried removing --yasm=''
ffmpeg/libavcodec/libavcodec.a(allcodecs.o): In function
allcodecs.c:(.text+0x715): undefined reference to `ff_nvenc_h265_encoder'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Please do not top-post.
Try
$ svn up
and run ./configure again, that should fix it.
It builds, but now it cannot find libpng15.so.15
how do I know if the library is missing because it is not there or because
it is out os library_path?
$ find -L / -type f -name libpng15.so.15

That should tell you if the file is missing or not.
Anyway, since the original problem is solved and this is an unrelated
one, I'd suggest opening a new thread on the list, if you have any
further problems/questions.
Henry
2015-03-25 19:49:44 UTC
Permalink
OnIt builds, but now it cannot find libpng15.so.15
Post by simona bellavista
how do I know if the library is missing because it is not there or
Post by simona bellavista
because
it is out os library_path?
cd /usr/lib
find -type f -name libpng*

Should list all your libpng files.

Apparently, you need to install the libpng library or libpng-dev library
for your distribution.
Or you need to download the source and compile and install the library
yourself: libpng.sourceforge.net
Peter White
2015-03-25 20:10:58 UTC
Permalink
Post by Henry
OnIt builds, but now it cannot find libpng15.so.15
Post by simona bellavista
how do I know if the library is missing because it is not there or
Post by simona bellavista
because
it is out os library_path?
cd /usr/lib
find -type f -name libpng*
Should list all your libpng files.
Wrong recipient. ;)

Anyway, what about /usr/local or any other lib path there might be?
Post by Henry
Apparently, you need to install the libpng library or libpng-dev library
for your distribution.
If either libpng* or png.h hadn't been present at configure time,
mplayer would have been built without png support and the error message
of not finding libpng at runtime would not have appeared.

Loading...