Re: [FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-13 Thread Peng Gao
it's an old project, I will also try to update it to the latest version.

Thanks,
Jerry

On Tue, Sep 12, 2023 at 9:55 PM Carl Zwanzig  wrote:

> On 9/11/2023 10:19 PM, Peng Gao wrote:
> >   I compiled ffmpeg(4.3.1)
>
> In addition to the earlier comments, why are you working with such an old
> version?
>
> z!
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-12 Thread Carl Zwanzig

On 9/11/2023 10:19 PM, Peng Gao wrote:

  I compiled ffmpeg(4.3.1)


In addition to the earlier comments, why are you working with such an old 
version?


z!

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-12 Thread Nicolas George
Peng Gao (12023-09-12):
>  The link error means this error is reported when doing the link stage on
> compiling OpenCV.
>  The error shows it requires a flag(-fPIC) to recompile ffmpeg, it's a
> compiler flag, not a link flag.

The error also shows it is for an assembly source file, for which C
compilation do not apply.


> On Tue, Sep 12, 2023 at 5:22 PM Reindl Harald 
> wrote:

Top-posting is forbidden on these lists. If you want help, stop doing
it; look it up if you need.

Regards,

-- 
  Nicolas George
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-12 Thread Peng Gao
Thanks,

 The link error means this error is reported when doing the link stage on
compiling OpenCV.
 The error shows it requires a flag(-fPIC) to recompile ffmpeg, it's a
compiler flag, not a link flag.

 no errors when I use the following command to configure ffmpeg.
  ./configure --enable-shared --enable-nonfree --enable-pic --prefix=
~/wk/install/ffmpeg  --enable-gpl --enable-libx264

Thanks again for help.

On Tue, Sep 12, 2023 at 5:22 PM Reindl Harald 
wrote:

>
>
> Am 12.09.23 um 07:19 schrieb Peng Gao:
> >   There are some link errors when I compiled the OpenCV(4.6.0)  With the
> > following configuration :
> > cmake .. -D WITH_OPENCL=ON -D WITH_FFMPEG=ON  -D
> CMAKE_BUILD_TYPE=Release ,
> >
> >   following is the error:
> >   /ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): relocation
> > R_AARCH64_ADR_PREL_PG_HI21 against symbol `ff_vp9_subpel_filters' which
> may
> > bind externally can not be used when making a shared object; recompile
> with
> > -fPIC
> > /ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): In function
> > `ff_vp9_avg_sharp4_v_12_neon':
> > libavcodec/aarch64/vp9mc_16bpp_neon.S:606:(.text+0x230c): dangerous
> > relocation: unsupported relocation.
> >
> > It shows ffmpeg should be compiled with -fPIC,  this is also enabled in
> the
> > configuration when compiling the ffmpeg , so I don't know why it is and I
> > try to get help from the community
>
> you talk about linker errors but only set compiler flags
>
> cat /rpmbuild/SPECS/ffmpeg.spec  | grep -i pic
>   --extra-cflags="%{optflags} %{O3_flags} -fPIC -flto=%{?_smp_tasks} -w" \
>   --extra-ldflags="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro
> -Wl,-z,noexecstack %{optflags} %{O3_flags} -fPIC -flto=%{?_smp_tasks} -w" \
>   --enable-pic \
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-12 Thread Reindl Harald




Am 12.09.23 um 07:19 schrieb Peng Gao:

  There are some link errors when I compiled the OpenCV(4.6.0)  With the
following configuration :
cmake .. -D WITH_OPENCL=ON -D WITH_FFMPEG=ON  -D CMAKE_BUILD_TYPE=Release ,

  following is the error:
  /ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): relocation
R_AARCH64_ADR_PREL_PG_HI21 against symbol `ff_vp9_subpel_filters' which may
bind externally can not be used when making a shared object; recompile with
-fPIC
/ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): In function
`ff_vp9_avg_sharp4_v_12_neon':
libavcodec/aarch64/vp9mc_16bpp_neon.S:606:(.text+0x230c): dangerous
relocation: unsupported relocation.

It shows ffmpeg should be compiled with -fPIC,  this is also enabled in the
configuration when compiling the ffmpeg , so I don't know why it is and I
try to get help from the community 


you talk about linker errors but only set compiler flags

cat /rpmbuild/SPECS/ffmpeg.spec  | grep -i pic
 --extra-cflags="%{optflags} %{O3_flags} -fPIC -flto=%{?_smp_tasks} -w" \
 --extra-ldflags="-Wl,--as-needed -Wl,-z,now -Wl,-z,relro 
-Wl,-z,noexecstack %{optflags} %{O3_flags} -fPIC -flto=%{?_smp_tasks} -w" \

 --enable-pic \

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] No compiled with -fPIC for libavcodec/aarch64/vp9mc_16bpp_neon.S

2023-09-11 Thread Peng Gao
Hi guys,

  I compiled ffmpeg(4.3.1) with the following configuration on Linux:
 ./configure --prefix= ~/wk/install/ffmpeg --enable-pic  --disable-ffplay
--disable-ffprobe  --enable-static --enable-gpl
--enable-libx264 --extra-cflags="-fpic"

ffmpeg was compiled successfully.

 There are some link errors when I compiled the OpenCV(4.6.0)  With the
following configuration :
cmake .. -D WITH_OPENCL=ON -D WITH_FFMPEG=ON  -D CMAKE_BUILD_TYPE=Release ,

 following is the error:
 /ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): relocation
R_AARCH64_ADR_PREL_PG_HI21 against symbol `ff_vp9_subpel_filters' which may
bind externally can not be used when making a shared object; recompile with
-fPIC
/ffmpeg/lib/libavcodec.a(vp9mc_16bpp_neon.o): In function
`ff_vp9_avg_sharp4_v_12_neon':
libavcodec/aarch64/vp9mc_16bpp_neon.S:606:(.text+0x230c): dangerous
relocation: unsupported relocation.

It shows ffmpeg should be compiled with -fPIC,  this is also enabled in the
configuration when compiling the ffmpeg , so I don't know why it is and I
try to get help from the community .


Thanks,
Jerry
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".