Ad Widget

Collapse

configure: error: vpx_codec.h not found.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aprakash
    Junior Member
    • Mar 2017
    • 21

    #1

    configure: error: vpx_codec.h not found.

    I am trying to compile zabbix in Linux Server release 6.6
    PHP Version: 5.5.38

    I am using below commands for compilation

    ./configure --with-apxs2=/tools/appsw/oracle/apache/bin/apxs --enable-bcmath --enable-mbstring --enable-sockets --with-mysql --prefix=/tools/appsw/oracle/apache/php --with-config-file-path=/tools/appsw/oracle/apache/php --with-oci8=/tools/utilsw/oracle/11gclient --with-gd --with-vpx-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --enable-gd-jis-conv

    Getting below error

    checking for GD support... yes
    checking for the location of libvpx... yes
    checking for the location of libjpeg... yes
    checking for the location of libpng... yes
    checking for the location of libXpm... yes
    checking for FreeType 2... yes
    checking for T1lib support... yes
    checking whether to enable truetype string function in GD... yes
    checking whether to enable JIS-mapped Japanese font support in GD... yes
    configure: error: vpx_codec.h not found.


    How to fix this, since it is referring vpx_codec.h under /usr/local/include

    File vpx_codec.h does not exist under /usr/local/include..

    what package i need to install to fix this on Linux Server release 6.6
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Try to install libvpx-devel package.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • aprakash
      Junior Member
      • Mar 2017
      • 21

      #3
      Originally posted by jan.garaj
      Try to install libvpx-devel package.
      Thanks for the update.. I install libvpx-devel and now compilation looks good..

      However, i am getting issue in make

      Step1: Looks good

      ./configure --with-apxs2=/tools/appsw/oracle/apache/bin/apxs --enable-bcmath --enable-mbstring --enable-sockets --with-mysql --prefix=/tools/appsw/oracle/apache/php --with-config-file-path=/tools/appsw/oracle/apache/php --with-oci8=/tools/utilsw/oracle/11gclient --with-gd --with-vpx-dir --with-jpeg-dir --with-png-dir --with-freetype-dir - Looks good

      I am getting below in last while performing make

      Step2 : make

      /usr/bin/ld: /usr/local/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
      /usr/local/lib/libvpx.a: could not read symbols: Bad value
      collect2: ld returned 1 exit status
      make: *** [libphp5.la] Error 1

      Comment

      Working...