error while compiling gstomx on TK1

I have compiled gstreamer 1.6 on my TK1 developer board as I would like to use some of the Qt gstreamer sinks that are available with gstreamer 1.6. However, at the moment, I cannot use omxh264enc plugin. So, to enable that I tried to compile the gstomx from sources.

However, when I do so, I get the following errors:

gstomxvideoenc.c:67:6: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in5' undeclared (first use in this function)
     {NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in5,
      ^
gstomxvideoenc.c:69:6: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in3' undeclared (first use in this function)
     {NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in3,
      ^
gstomxvideoenc.c:71:6: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in2' undeclared (first use in this function)
     {NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop1in2,
      ^
gstomxvideoenc.c:73:6: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop2in3' undeclared (first use in this function)
     {NVX_ENCODE_VideoEncTemporalTradeoffLevel_Drop2in3,
      ^
gstomxvideoenc.c: In function 'gst_omx_video_enc_class_init':
gstomxvideoenc.c:187:42: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_DropNone' undeclared (first use in this function)
 #define DEFAULT_TEMPORAL_TRADEOFF_TYPE   NVX_ENCODE_VideoEncTemporalTradeoffLevel_DropNone
                                          ^
gstomxvideoenc.c:317:11: note: in expansion of macro 'DEFAULT_TEMPORAL_TRADEOFF_TYPE'
           DEFAULT_TEMPORAL_TRADEOFF_TYPE,
           ^
gstomxvideoenc.c:319:11: warning: passing argument 5 of 'g_param_spec_enum' makes integer from pointer without a cast [enabled by default]
           GST_PARAM_MUTABLE_READY));
           ^
In file included from /usr/include/glib-2.0/glib-object.h:28:0,
                 from /usr/include/gstreamer-1.0/gst/gstenumtypes.h:7,
                 from /usr/include/gstreamer-1.0/gst/gst.h:31,
                 from gstomxvideoenc.c:26:
/usr/include/glib-2.0/gobject/gparamspecs.h:1055:13: note: expected 'gint' but argument is of type 'const struct GEnumValue *'
 GParamSpec* g_param_spec_enum  (const gchar  *name,
             ^
gstomxvideoenc.c: In function 'gst_omx_video_enc_init':
gstomxvideoenc.c:187:42: error: 'NVX_ENCODE_VideoEncTemporalTradeoffLevel_DropNone' undeclared (first use in this function)
 #define DEFAULT_TEMPORAL_TRADEOFF_TYPE   NVX_ENCODE_VideoEncTemporalTradeoffLevel_DropNone
                                          ^
gstomxvideoenc.c:375:29: note: in expansion of macro 'DEFAULT_TEMPORAL_TRADEOFF_TYPE'
   self->temporal_tradeoff = DEFAULT_TEMPORAL_TRADEOFF_TYPE;
                             ^
gstomxvideoenc.c:375:27: warning: assignment makes integer from pointer without a cast [enabled by default]
   self->temporal_tradeoff = DEFAULT_TEMPORAL_TRADEOFF_TYPE;
                           ^
gstomxvideoenc.c: In function 'gst_omx_video_enc_check_nvfeatures':
gstomxvideoenc.c:1406:5: error: unknown type name 'NVX_PARAM_USENVBUFFER'
     NVX_PARAM_USENVBUFFER param;
     ^
gstomxvideoenc.c:1412:18: error: 'NVX_INDEX_CONFIG_USENVBUFFER' undeclared (first use in this function)
         (char *) NVX_INDEX_CONFIG_USENVBUFFER, &eIndex);
                  ^
In file included from gstomxvideoenc.h:29:0,
                 from gstomxvideoenc.c:30:
gstomx.h:68:7: error: request for member 'nSize' in something not a structure or union
   (st)->nSize = sizeof (*(st)); \
       ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:68:3: warning: statement with no effect [-Wunused-value]
   (st)->nSize = sizeof (*(st)); \
   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:69:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
       ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:69:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                 ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:69:19: error: request for member 'nVersionMajor' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:69:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:70:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
       ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:70:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                 ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:70:19: error: request for member 'nVersionMinor' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:70:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:71:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
       ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:71:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                 ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:71:19: error: request for member 'nRevision' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:71:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:72:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
       ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:72:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                 ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:72:19: error: request for member 'nStep' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomx.h:72:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
   ^
gstomxvideoenc.c:1415:7: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
       GST_OMX_INIT_STRUCT (&param);
       ^
gstomxvideoenc.c:1416:12: error: request for member 'nPortIndex' in something not a structure or union
       param.nPortIndex = self->enc_in_port->index;
            ^
gstomxvideoenc.c:1416:7: warning: statement with no effect [-Wunused-value]
       param.nPortIndex = self->enc_in_port->index;
       ^
gstomxvideoenc.c:1417:12: error: request for member 'bUseNvBuffer' in something not a structure or union
       param.bUseNvBuffer = OMX_TRUE;
            ^
gstomxvideoenc.c:1417:7: warning: statement with no effect [-Wunused-value]
       param.bUseNvBuffer = OMX_TRUE;
       ^
gstomxvideoenc.c: In function 'gst_omx_nvx_enc_set_property':
gstomxvideoenc.c:2383:3: error: unknown type name 'NVX_PARAM_VIDENCPROPERTY'
   NVX_PARAM_VIDENCPROPERTY oEncodeProp;
   ^
In file included from gstomxvideoenc.h:29:0,
                 from gstomxvideoenc.c:30:
gstomx.h:68:7: error: request for member 'nSize' in something not a structure or union
   (st)->nSize = sizeof (*(st)); \
       ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:68:3: warning: statement with no effect [-Wunused-value]
   (st)->nSize = sizeof (*(st)); \
   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:69:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
       ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:69:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                 ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:69:19: error: request for member 'nVersionMajor' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:69:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:70:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
       ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:70:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                 ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:70:19: error: request for member 'nVersionMinor' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:70:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:71:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
       ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:71:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                 ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:71:19: error: request for member 'nRevision' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:71:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:72:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
       ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:72:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                 ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:72:19: error: request for member 'nStep' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomx.h:72:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
   ^
gstomxvideoenc.c:2385:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oEncodeProp);
   ^
gstomxvideoenc.c:2386:14: error: request for member 'nPortIndex' in something not a structure or union
   oEncodeProp.nPortIndex = self->enc_out_port->index;
              ^
gstomxvideoenc.c:2386:3: warning: statement with no effect [-Wunused-value]
   oEncodeProp.nPortIndex = self->enc_out_port->index;
   ^
gstomxvideoenc.c:2389:18: error: 'NVX_INDEX_PARAM_VIDEO_ENCODE_PROPERTY' undeclared (first use in this function)
       (gpointer) NVX_INDEX_PARAM_VIDEO_ENCODE_PROPERTY, &eIndex);
                  ^
gstomxvideoenc.c:2394:18: error: request for member 'bLowLatency' in something not a structure or union
       oEncodeProp.bLowLatency = self->low_latency;
                  ^
gstomxvideoenc.c:2394:7: warning: statement with no effect [-Wunused-value]
       oEncodeProp.bLowLatency = self->low_latency;
       ^
gstomxvideoenc.c:2395:18: error: request for member 'bSliceIntraRefreshEnable' in something not a structure or union
       oEncodeProp.bSliceIntraRefreshEnable = self->SliceIntraRefreshEnable;
                  ^
gstomxvideoenc.c:2395:7: warning: statement with no effect [-Wunused-value]
       oEncodeProp.bSliceIntraRefreshEnable = self->SliceIntraRefreshEnable;
       ^
gstomxvideoenc.c:2396:18: error: request for member 'SliceIntraRefreshInterval' in something not a structure or union
       oEncodeProp.SliceIntraRefreshInterval = self->SliceIntraRefreshInterval;
                  ^
gstomxvideoenc.c:2396:7: warning: statement with no effect [-Wunused-value]
       oEncodeProp.SliceIntraRefreshInterval = self->SliceIntraRefreshInterval;
       ^
gstomxvideoenc.c:2397:18: error: request for member 'bBitBasedPacketization' in something not a structure or union
       oEncodeProp.bBitBasedPacketization = self->bit_packetization;
                  ^
gstomxvideoenc.c:2397:7: warning: statement with no effect [-Wunused-value]
       oEncodeProp.bBitBasedPacketization = self->bit_packetization;
       ^
gstomxvideoenc.c:2399:18: error: request for member 'nVirtualBufferSize' in something not a structure or union
       oEncodeProp.nVirtualBufferSize =
                  ^
gstomxvideoenc.c:2399:7: warning: statement with no effect [-Wunused-value]
       oEncodeProp.nVirtualBufferSize =
       ^
gstomxvideoenc.c: In function 'gstomx_set_temporal_tradeoff':
gstomxvideoenc.c:2433:3: error: unknown type name 'NVX_CONFIG_TEMPORALTRADEOFF'
   NVX_CONFIG_TEMPORALTRADEOFF oTemporalTradeOff;
   ^
In file included from gstomxvideoenc.h:29:0,
                 from gstomxvideoenc.c:30:
gstomx.h:68:7: error: request for member 'nSize' in something not a structure or union
   (st)->nSize = sizeof (*(st)); \
       ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:68:3: warning: statement with no effect [-Wunused-value]
   (st)->nSize = sizeof (*(st)); \
   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:69:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
       ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:69:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                 ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:69:19: error: request for member 'nVersionMajor' in something not a structure or union
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
                   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:69:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:70:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
       ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:70:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                 ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:70:19: error: request for member 'nVersionMinor' in something not a structure or union
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
                   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:70:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:71:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
       ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:71:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                 ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:71:19: error: request for member 'nRevision' in something not a structure or union
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
                   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:71:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nRevision = OMX_VERSION_REVISION; \
   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:72:7: error: request for member 'nVersion' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
       ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:72:17: error: request for member 's' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                 ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:72:19: error: request for member 'nStep' in something not a structure or union
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
                   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomx.h:72:3: warning: statement with no effect [-Wunused-value]
   (st)->nVersion.s.nStep = OMX_VERSION_STEP; \
   ^
gstomxvideoenc.c:2438:3: note: in expansion of macro 'GST_OMX_INIT_STRUCT'
   GST_OMX_INIT_STRUCT (&oTemporalTradeOff);
   ^
gstomxvideoenc.c:2442:7: error: 'NVX_INDEX_CONFIG_VIDEO_ENCODE_TEMPORALTRADEOFF' undeclared (first use in this function)
       NVX_INDEX_CONFIG_VIDEO_ENCODE_TEMPORALTRADEOFF, &eIndex);
       ^
gstomxvideoenc.c:2442:7: warning: passing argument 2 of 'gst_omx_component_get_index' discards 'const' qualifier from pointer target type [enabled by default]
In file included from gstomxvideoenc.h:29:0,
                 from gstomxvideoenc.c:30:
gstomx.h:385:15: note: expected 'gpointer' but argument is of type 'const struct GEnumValue *'
 OMX_ERRORTYPE gst_omx_component_get_index (GstOMXComponent * comp, gpointer str,
               ^
gstomxvideoenc.c:2447:20: error: request for member 'TemporalTradeOffLevel' in something not a structure or union
   oTemporalTradeOff.TemporalTradeOffLevel = self->temporal_tradeoff;
                    ^
gstomxvideoenc.c:2447:3: warning: statement with no effect [-Wunused-value]
   oTemporalTradeOff.TemporalTradeOffLevel = self->temporal_tradeoff;
   ^
gstomxvideoenc.c: At top level:
gstomxvideoenc.c:2352:1: warning: 'gst_omx_video_enc_set_Qfactor' defined but not used [-Wunused-function]
 gst_omx_video_enc_set_Qfactor (GstOMXVideoEnc * self)
 ^
gstomxvideoenc.c:1359:1: warning: 'gst_omx_video_enc_reconfigure_output_port' defined but not used [-Wunused-function]
 gst_omx_video_enc_reconfigure_output_port (GstOMXVideoEnc * self)
 ^
make[2]: *** [libgstomx_la-gstomxvideoenc.lo] Error 1
make[2]: Leaving directory `/home/ubuntu/gst_1.6.4/gstomx1_src/gst-omx1/omx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/gst_1.6.4/gstomx1_src/gst-omx1'
make: *** [all] Error 2

Has anyone else encountered this? Any ideas on how I may resolve these errors?

Hello, xargon:
Would you please tell me why omxh264enc does not work in GST 1.6?
That part of code is not open-source. I don’t think you can compile it.

br
ChenJian