I just retested on my box.  That symbol is for sure defined in our headers.  Your hitting some sort of include conflict.  Can you provide details of your build env or contact me off list with info to get into the box and I can help sort out whats going on.

making all mod_cv
make[3]: Entering directory '/usr/src/freeswitch.git/src/mod/applications/mod_cv'
  CXX      mod_cv_la-mod_cv.lo
  CXXLD    mod_cv.la
make[3]: Leaving directory '/usr/src/freeswitch.git/src/mod/applications/mod_cv'
make[2]: Leaving directory '/usr/src/freeswitch.git/src/mod'
make[1]: Leaving directory '/usr/src/freeswitch.git/src/mod'

root@mikej-jesse [Wed Jun 08 12:02 PM]  /usr/src/freeswitch.git
<1234>:git grep -n SWITCH_IMG_FMT_RGB24
src/include/switch_vpx.h:63:#define SWITCH_IMG_FMT_RGB24     VPX_IMG_FMT_RGB24
src/mod/applications/mod_cv/mod_cv.cpp:723:        switch_img_to_raw(frame->img, context->rawImage->imageData, context->rawImage->widthStep * context->h, SWITCH_IMG_FMT_RGB24);
src/mod/applications/mod_cv/mod_cv.cpp:818:        switch_img_from_raw(frame->img, (uint8_t *)context->rawImage->imageData, SWITCH_IMG_FMT_RGB24, context->rawImage->width, context->rawImage->height);
src/switch_core_video.c:2002:           case SWITCH_IMG_FMT_RGB24:     fourcc = FOURCC_24BG; break;

On Jun 8, 2016, at 12:44 AM, zhou Yu <zhouyu@cs.cmu.edu> wrote:

Hi all

I came into an error in compiling mod_cv

mod_cv.cpp:723:112: error: ‘SWITCH_IMG_FMT_RGB24’ was not declared in this scope
         switch_img_to_raw(frame->img, context->rawImage->imageData, context->rawImage->widthStep * context->h, SWITCH_IMG_FMT_RGB24);


It seems the variable is not declared anywhere. 
Could anyone help?

-zhou
--
Best Wishes
Zhou Yu
http://www.cs.cmu.edu/~zhouyu/
Language Technology Institute
School of Computer Science
Carnegie Mellon University
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org