[FFmpeg-trac] #10619(avcodec:new): FFmpeg static link to libx265 is failed on windows platform

FFmpeg trac at avcodec.org
Fri Oct 13 04:42:58 EEST 2023


#10619: FFmpeg static link to libx265 is failed on windows platform
-------------------------------------+-------------------------------------
             Reporter:  siriushu     |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  avcodec      |                  Version:  git-
             Keywords:  ffmpeg       |  master
  build failed                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Reproduce steps:

 Build FFmpeg with libx265 enabled on Windows platform.
 FFmpeg static link to libx265 and Libx265 is builded as a static library.

 Results:
 libx265 API symbols can not be referenced.

 Reason:
 In file libx265.c, there is a macro "#define X265_API_IMPORTS 1" for
 windows platform.
 This will limit libx265 usage to be linked to DLL only. Static link would
 be failed.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10619>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list