Problem with configuring with yasm

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with configuring with yasm

Mahmood Naderan
Hi,
On a system which I can not install package, I have built yasm from source
as below:

mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls bin/
vsyasm  yasm  ytasm
mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls lib
libyasm.a
mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls include/
libyasm  libyasm.h  libyasm-stdint.h



Now, when I want to configure ffmpefg, I get an error that yasm is not
found even though I have included extra paths.

mahmood@fury0:/home/mahmood/ffmpeg$ ./configure --enable-cuda
--enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
--extra-cflags=-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/yasm-1.3.0/include
--extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64,/home/mahmood/yasm-1.3.0/lib
nasm/

yasm not found or too old. Use --disable-x86asm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[hidden email] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.



How can I fix that? Is it safe to disable x86asm? I want to be sure that
performance is not lost.

Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Carl Eugen Hoyos-2
Am Fr., 20. Dez. 2019 um 11:08 Uhr schrieb Mahmood Naderan
<[hidden email]>:

> On a system which I can not install package, I have built yasm from source
> as below:
>
> mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls bin/
> vsyasm  yasm  ytasm
> mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls lib
> libyasm.a
> mahmood@fury0:/home/mahmood/yasm-1.3.0$ ls include/
> libyasm  libyasm.h  libyasm-stdint.h
>
>
>
> Now, when I want to configure ffmpefg, I get an error that yasm is not
> found even though I have included extra paths.
>
> mahmood@fury0:/home/mahmood/ffmpeg$ ./configure --enable-cuda
> --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
> --extra-cflags=-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/yasm-1.3.0/include
> --extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64,/home/mahmood/yasm-1.3.0/lib
> nasm/
>
> yasm not found or too old. Use --disable-x86asm for a crippled build.
>
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> [hidden email] mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this
> will help
> solve the problem.
>
>
>
> How can I fix that? Is it safe to disable x86asm? I want to be sure that
> performance is not lost.

For future improvements, yasm will not work, consider switching to
nasm, but for nasm you absolutely need a current version.

Remove yasm/include from extra-cflags, remove yasm/lib from extra-ldflags
and use --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm

But check $PATH, if it contains /home/mahmood/bin, you can copy
the executable there and you don't have to use --x86asmexe

Carl Eugen

(yasmexe still works for the time being)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Mahmood Naderan
> Remove yasm/include from extra-cflags, remove yasm/lib from extra-ldflags
>and use --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm

Thank you. I got it.  also fixed nv-coded-headers. However, libnpp is not
found although I have manually downloaded the deb package and extracted it
to get libnpps.so.10

$ ./configure --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm --enable-cuda
--enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
--extra-cflags=-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
--extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64,/home/mahmood/nv_codec_headers/lib/pkgconfig/,/home/mahmood/ff/libnpps.so.10
ERROR: libnpp not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[hidden email] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.


I don't see any configure option other than setting library path.


Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Mahmood Naderan
>ERROR: libnpp not found

I even extracted
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-npp-10-1_10.1.168-1_amd64.deb
and copied all libnpp files to my own cuda directory.

$ ls
libnppc.so.10          libnppicom.so.10        libnppig.so.10
libnppisu.so.10
libnppc.so.10.1.168    libnppicom.so.10.1.168  libnppig.so.10.1.168
libnppisu.so.10.1.168
libnppial.so.10        libnppidei.so.10        libnppim.so.10
libnppitc.so.10
libnppial.so.10.1.168  libnppidei.so.10.1.168  libnppim.so.10.1.168
libnppitc.so.10.1.168
libnppicc.so.10        libnppif.so.10          libnppist.so.10
 libnpps.so.10
libnppicc.so.10.1.168  libnppif.so.10.1.168    libnppist.so.10.1.168
 libnpps.so.10.1.168
$ cp libnpp* ~/cuda-10.1.168/lib64/
$ ./configure --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm --enable-cuda
--enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
--extra-cflags=-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
--extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64,/home/mahmood/nv_codec_headers/lib/pkgconfig/
ERROR: libnpp not found

Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Brainiarc7
On Fri, 20 Dec 2019, 13:52 Mahmood Naderan, <[hidden email]> wrote:

> >ERROR: libnpp not found
>
> I even extracted
>
> https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-npp-10-1_10.1.168-1_amd64.deb
> and copied all libnpp files to my own cuda directory.
>
> $ ls
> libnppc.so.10          libnppicom.so.10        libnppig.so.10
> libnppisu.so.10
> libnppc.so.10.1.168    libnppicom.so.10.1.168  libnppig.so.10.1.168
> libnppisu.so.10.1.168
> libnppial.so.10        libnppidei.so.10        libnppim.so.10
> libnppitc.so.10
> libnppial.so.10.1.168  libnppidei.so.10.1.168  libnppim.so.10.1.168
> libnppitc.so.10.1.168
> libnppicc.so.10        libnppif.so.10          libnppist.so.10
>  libnpps.so.10
> libnppicc.so.10.1.168  libnppif.so.10.1.168    libnppist.so.10.1.168
>  libnpps.so.10.1.168
> $ cp libnpp* ~/cuda-10.1.168/lib64/
> $ ./configure --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm --enable-cuda
> --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
>
> --extra-cflags=-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
>
> --extra-ldflags=-L/home/mahmood/cuda-10.1.168/lib64,/home/mahmood/nv_codec_headers/lib/pkgconfig/
> ERROR: libnpp not found
>
> Regards,
> Mahmood
>

Show us the content of config.log please.

>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Mahmood Naderan
I have attached config.log.zip.
At the end, it is looking for npp.h and some other things. I can not find
in which package npp.h exists. All I see are library files.

gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC
-I/home/mahmood/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
-std=c11 -fomit-frame-pointer -fPIC -pthread -c -o
/tmp/ffconf.iIi59fP2/test.o /tmp/ffconf.iIi59fP2/test.c
/tmp/ffconf.iIi59fP2/test.c:1:10: fatal error: npp.h: No such file or
directory
 #include <npp.h>


Regards,
Mahmood




On Fri, Dec 20, 2019 at 3:18 PM Dennis Mungai <[hidden email]> wrote:

>
>
> Show us the content of config.log please.
>
> >

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

config.zip (75K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Brainiarc7
On Fri, 20 Dec 2019, 15:23 Mahmood Naderan, <[hidden email]> wrote:

> I have attached config.log.zip.
> At the end, it is looking for npp.h and some other things. I can not find
> in which package npp.h exists. All I see are library files.
>
> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC
> -I/home/mahmood/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
> -std=c11 -fomit-frame-pointer -fPIC -pthread -c -o
> /tmp/ffconf.iIi59fP2/test.o /tmp/ffconf.iIi59fP2/test.c
> /tmp/ffconf.iIi59fP2/test.c:1:10: fatal error: npp.h: No such file or
> directory
>  #include <npp.h>
>
>
> Regards,
> Mahmood
>
>
>
>
> On Fri, Dec 20, 2019 at 3:18 PM Dennis Mungai <[hidden email]> wrote:
>
>>
>>
>> Show us the content of config.log please.
>>
>> >
>
>

You're going to have to install the full CUDA SDK.
The headers I see missing in your config are indeed present in the CUDA SDK.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Mahmood Naderan
 >You're going to have to install the full CUDA SDK.
>The headers I see missing in your config are indeed present in the CUDA
SDK.


I actually have that in my home. I mean cuda toolkit and samples.
I can see npp.h and its libraries there.

$ cd ~/cuda-10.1.168/
$ ls include/npp*
include/nppcore.h
include/nppi_morphological_operations.h
include/nppdefs.h
include/nppi_statistics_functions.h
include/npp.h
include/nppi_support_functions.h
include/nppi_arithmetic_and_logical_operations.h
 include/nppi_threshold_and_compare_operations.h
include/nppi_color_conversion.h
include/npps_arithmetic_and_logical_operations.h
include/nppi_compression_functions.h
 include/npps_conversion_functions.h
include/nppi_computer_vision.h
 include/npps_filtering_functions.h
include/nppi_data_exchange_and_initialization.h   include/npps.h
include/nppi_filtering_functions.h
 include/npps_initialization.h
include/nppi_geometry_transforms.h
 include/npps_statistics_functions.h
include/nppi.h
 include/npps_support_functions.h
include/nppi_linear_transforms.h                  include/nppversion.h




$ ls lib64/libnpp*
lib64/libnppc.so              lib64/libnppidei.so
lib64/libnppist.so
lib64/libnppc.so.10           lib64/libnppidei.so.10
 lib64/libnppist.so.10
lib64/libnppc.so.10.1.168     lib64/libnppidei.so.10.1.168
 lib64/libnppist.so.10.1.168
lib64/libnppc_static.a        lib64/libnppidei_static.a
lib64/libnppist_static.a
lib64/libnppial.so            lib64/libnppif.so
lib64/libnppisu.so
lib64/libnppial.so.10         lib64/libnppif.so.10
 lib64/libnppisu.so.10
lib64/libnppial.so.10.1.168   lib64/libnppif.so.10.1.168
 lib64/libnppisu.so.10.1.168
lib64/libnppial_static.a      lib64/libnppif_static.a
lib64/libnppisu_static.a
lib64/libnppicc.so            lib64/libnppig.so
lib64/libnppitc.so
lib64/libnppicc.so.10         lib64/libnppig.so.10
 lib64/libnppitc.so.10
lib64/libnppicc.so.10.1.168   lib64/libnppig.so.10.1.168
 lib64/libnppitc.so.10.1.168
lib64/libnppicc_static.a      lib64/libnppig_static.a
lib64/libnppitc_static.a
lib64/libnppicom.so           lib64/libnppim.so             lib64/libnpps.so
lib64/libnppicom.so.10        lib64/libnppim.so.10
 lib64/libnpps.so.10
lib64/libnppicom.so.10.1.168  lib64/libnppim.so.10.1.168
 lib64/libnpps.so.10.1.168
lib64/libnppicom_static.a     lib64/libnppim_static.a
lib64/libnpps_static.a



$ ./configure --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm --enable-cuda
--enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
--extra-cflags=-I~/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
--extra-ldflags=-L~/cuda-10.1.168/lib64/,/home/mahmood/nv_codec_headers/lib/pkgconfig/
ERROR: libnpp not found



Regards,
Mahmood
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Mahmood Naderan
OK.
--extra-cflags=-I<dir1>,-I<dir2>
is not correct. The correct syntax is
--extra-cflags=-I<dir1> --extra-cflags= -I<dir2>

Regards,
Mahmood




On Fri, Dec 20, 2019 at 6:40 PM Mahmood Naderan <[hidden email]>
wrote:

> >You're going to have to install the full CUDA SDK.
> >The headers I see missing in your config are indeed present in the CUDA
> SDK.
>
>
> I actually have that in my home. I mean cuda toolkit and samples.
> I can see npp.h and its libraries there.
>
> $ cd ~/cuda-10.1.168/
> $ ls include/npp*
> include/nppcore.h
> include/nppi_morphological_operations.h
> include/nppdefs.h
> include/nppi_statistics_functions.h
> include/npp.h
> include/nppi_support_functions.h
> include/nppi_arithmetic_and_logical_operations.h
>  include/nppi_threshold_and_compare_operations.h
> include/nppi_color_conversion.h
> include/npps_arithmetic_and_logical_operations.h
> include/nppi_compression_functions.h
>  include/npps_conversion_functions.h
> include/nppi_computer_vision.h
>  include/npps_filtering_functions.h
> include/nppi_data_exchange_and_initialization.h   include/npps.h
> include/nppi_filtering_functions.h
>  include/npps_initialization.h
> include/nppi_geometry_transforms.h
>  include/npps_statistics_functions.h
> include/nppi.h
>  include/npps_support_functions.h
> include/nppi_linear_transforms.h                  include/nppversion.h
>
>
>
>
> $ ls lib64/libnpp*
> lib64/libnppc.so              lib64/libnppidei.so
> lib64/libnppist.so
> lib64/libnppc.so.10           lib64/libnppidei.so.10
>  lib64/libnppist.so.10
> lib64/libnppc.so.10.1.168     lib64/libnppidei.so.10.1.168
>  lib64/libnppist.so.10.1.168
> lib64/libnppc_static.a        lib64/libnppidei_static.a
> lib64/libnppist_static.a
> lib64/libnppial.so            lib64/libnppif.so
> lib64/libnppisu.so
> lib64/libnppial.so.10         lib64/libnppif.so.10
>  lib64/libnppisu.so.10
> lib64/libnppial.so.10.1.168   lib64/libnppif.so.10.1.168
>  lib64/libnppisu.so.10.1.168
> lib64/libnppial_static.a      lib64/libnppif_static.a
> lib64/libnppisu_static.a
> lib64/libnppicc.so            lib64/libnppig.so
> lib64/libnppitc.so
> lib64/libnppicc.so.10         lib64/libnppig.so.10
>  lib64/libnppitc.so.10
> lib64/libnppicc.so.10.1.168   lib64/libnppig.so.10.1.168
>  lib64/libnppitc.so.10.1.168
> lib64/libnppicc_static.a      lib64/libnppig_static.a
> lib64/libnppitc_static.a
> lib64/libnppicom.so           lib64/libnppim.so
> lib64/libnpps.so
> lib64/libnppicom.so.10        lib64/libnppim.so.10
>  lib64/libnpps.so.10
> lib64/libnppicom.so.10.1.168  lib64/libnppim.so.10.1.168
>  lib64/libnpps.so.10.1.168
> lib64/libnppicom_static.a     lib64/libnppim_static.a
> lib64/libnpps_static.a
>
>
>
> $ ./configure --x86asmexe=/home/mahmood/yasm-1.3.0/bin/yasm --enable-cuda
> --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp
> --extra-cflags=-I~/cuda-10.1.168/include,/home/mahmood/nv_codec_headers/include/ffnvcodec/
> --extra-ldflags=-L~/cuda-10.1.168/lib64/,/home/mahmood/nv_codec_headers/lib/pkgconfig/
> ERROR: libnpp not found
>
>
>
> Regards,
> Mahmood
>
>
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problem with configuring with yasm

Carl Eugen Hoyos-2
Am Fr., 20. Dez. 2019 um 18:05 Uhr schrieb Mahmood Naderan
<[hidden email]>:

> --extra-cflags=-I<dir1>,-I<dir2>
> is not correct. The correct syntax is
> --extra-cflags=-I<dir1> --extra-cflags= -I<dir2>

or simpler:
--extra-cflags='-Idir1 -Idir2'

Please do not top-post here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".