Compilation error in centos 6.2

Help
peek2seek
2012-03-31
2013-05-28
  • peek2seek
    peek2seek
    2012-03-31

    I m trying to install smartcam in centos 6.2. But I am getting this compilation error.

    [root@localhost smartcam-1.4.0]# make
    make  all-recursive
    make[1]: Entering directory `/home/Admin/Downloads/smartcam-1.4.0'
    Making all in src
    make[2]: Entering directory `/home/Admin/Downloads/smartcam-1.4.0/src'
    make  all-am
    make[3]: Entering directory `/home/Admin/Downloads/smartcam-1.4.0/src'
    g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATADIR=\"/usr/local/share/smartcam\" -DDATADIR=\"/usr/local/share\"  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -g -O2 -MT smartcam-SmartEngine.o -MD -MP -MF .deps/smartcam-SmartEngine.Tpo -c -o smartcam-SmartEngine.o `test -f 'SmartEngine.cpp' || echo './'`SmartEngine.cpp
    In file included from SmartEngine.cpp:36:
    JpegHandler.h:26:21: error: jpeglib.h: No such file or directory
    JpegHandler.h:27:20: error: jerror.h: No such file or directory
    In file included from SmartEngine.cpp:36:
    JpegHandler.h:42: error: field cinfo has incomplete type
    JpegHandler.h:43: error: field jerr has incomplete type
    JpegHandler.h:44: error: field srcmgr has incomplete type
    JpegHandler.h:47: error: JMSG_LENGTH_MAX was not declared in this scope
    JpegHandler.h:52: error: j_common_ptr has not been declared
    JpegHandler.h:53: error: j_common_ptr has not been declared
    JpegHandler.h:55: error: j_decompress_ptr has not been declared
    JpegHandler.h:56: error: j_decompress_ptr has not been declared
    JpegHandler.h:57: error: j_decompress_ptr has not been declared
    JpegHandler.h:58: error: j_decompress_ptr has not been declared
    make[3]: *** [smartcam-SmartEngine.o] Error 1
    make[3]: Leaving directory `/home/Admin/Downloads/smartcam-1.4.0/src'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/Admin/Downloads/smartcam-1.4.0/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/Admin/Downloads/smartcam-1.4.0'
    make: *** [all] Error 2