[FFmpeg-trac] #6931(ffmpeg:new): FreeBSD compilation error

FFmpeg trac at avcodec.org
Tue Dec 26 03:19:43 EET 2017

#6931: FreeBSD compilation error
             Reporter:  vinchi007  |                     Type:  defect
               Status:  new        |                 Priority:  normal
            Component:  ffmpeg     |                  Version:  3.4
             Keywords:             |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
 Summary of the bug:
 Problem compiling ffmpeg in FreeNAS jail compiler (freebsd 10.3), error
 x265 not found using pkg-config

 following shows no errors, .pc, lib, .h files properly located in
 respective paths in /usr/local:
  pkg-config --exists --print-errors x265

 [root at compiler /usr/local/build/ffmpeg]# ./configure
 --cc=/usr/local/bin/gcc5 --pkg-config-flags="--static" --disable-shared
 --enable-nonfree --enable-gpl --enable-hardcoded-tables --enable-version3
 --enable-libx264 --enable-libx265 --enable-avfilter --enable-filters
 --enable-libfdk-aac --disable-indevs --disable-outdevs --disable-ffserver
 ERROR: x265 not found using pkg-config

 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
 ffmpeg-user at ffmpeg.org 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.

 Here is config.log:
 require_pkg_config libx265 x265 x265.h x265_api_get
 check_pkg_config libx265 x265 x265.h x265_api_get
 test_pkg_config libx265 x265 x265.h x265_api_get
 pkg-config --exists --print-errors x265
 check_func_headers x265.h x265_api_get -I/usr/local/include
 -L/usr/local/lib -lx265 -lstdc++ -lm -lgcc_s -lgcc -lgcc_s -lgcc -lrt
 check_ld cc -I/usr/local/include -L/usr/local/lib -lx265 -lstdc++ -lm
 -lgcc_s -lgcc -lgcc_s -lgcc -lrt
 check_cc -I/usr/local/include -L/usr/local/lib
 BEGIN /tmp/ffconf.3QtYkGTN/test.c
     1   #include <x265.h>
     2   #include <stdint.h>
     3   long check_x265_api_get(void) { return (long) x265_api_get; }
     4   int main(void) { int ret = 0;
     5    ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
     6   return ret; }
 END /tmp/ffconf.3QtYkGTN/test.c
 /usr/local/bin/gcc5 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64
 -D_LARGEFILE_SOURCE -std=c11 -fomit-frame-pointer -pthread
 -I/usr/local/include -I/usr/local/include -I/usr/local/include
 -L/usr/local/lib -c -o /tmp/ffconf.3Qt
 YkGTN/test.o /tmp/ffconf.3QtYkGTN/test.c
 /usr/local/bin/gcc5 -Wl,--as-needed -Wl,-z,noexecstack
 -I/usr/local/include -L/usr/local/lib -o /tmp/ffconf.3QtYkGTN/test
 /tmp/ffconf.3QtYkGTN/test.o -lx265 -lstdc++ -lm -lgcc_s -lgcc -lgcc_s
 -lgcc -lrt
 /tmp/ffconf.3QtYkGTN/test.o: In function `check_x265_api_get':
 test.c:(.text+0x1): undefined reference to `x265_api_get_146'
 collect2: error: ld returned 1 exit status
 ERROR: x265 not found using pkg-config

Ticket URL: <https://trac.ffmpeg.org/ticket/6931>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list