[Freeswitch-users] Error on switch_vpx.h while building custom module

Victor Medina victor.medina at cibersys.com
Mon Jun 15 16:17:23 MSD 2015


Hi guys!

First of all good morning, hope everyone had a nice weekend.


On weekend I starded trying to build a new custom build just to educate on
how to build one.
I noted that every time I tried to build against switch_vpx.h it failed.
Upon inspecting it I found that:

#include "vpx/vpx_image.h"
#include "vpx/vpx_integer.h"

But there is really no vpx headers on default locations. And Im currently
using libvpx2 provided by freeswitch on Debian Jessie.

libvpx2:
  Installed: 1.4.0-46~1-jessie+1
  Candidate: 1.4.0-46~1-jessie+1
  Version table:
 *** 1.4.0-46~1-jessie+1 0
        500 http://files.freeswitch.org/repo/deb/debian/ jessie/main amd64
Packages
        100 /var/lib/dpkg/status

Headers are located on /usr/include/vpx2/

I did a small change

perl -i -pe 's/#include\ \"vpx\/vpx\_image\.h\"/\#include\
\"\/usr\/include\/vpx2\/vpx\/vpx\_image\.h\"/g'
/usr/local/freeswitch/include/freeswitch/switch_vpx.h
perl -i -pe 's/#include\ \"vpx\/vpx\_integer\.h\"/\#include\
\"\/usr\/include\/vpx2\/vpx\/vpx\_integer\.h\"/g'
/usr/local/freeswitch/include/freeswitch/switch_vpx.h

It compiled and works just fine.

Is this a minor glitch or a bug worth reporting?

-- 



Víctor E. Medina M.
Platform Architect / Chief Infrastructure
+58424 291 4561
BB #79A8AFA2
@VMCibersys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150615/8ba5be03/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list