title: undefined reference to property_get
body: <p>My aims to do fine tuning to find proper thread priority.</p>
  
  <p>The thread I concern is located in under /hardware/my_company/codec/openmax_il/</p>
  
  <p>I modified 2 files</p>
  
  <ol>
  <li><p>Android.mk</p>
  
  <p>Add "$(TOP)/system/core/include" in the list of LOCAL_C_INCLUDES as below</p>
  
  <pre><code>LOCAL_C_INCLUDES:= \
  
      blur blur blur
      $(TOP)/hardware/my_company/camera/v4l2_camerahal \
      $(TOP)/system/core/include
  </code></pre></li>
  <li><p>In my source file.</p>
  
  <pre><code>#include &lt;cutils/properties.h&gt;
  
  int componentInit(blur blur blur)
  {
     int ret = 0;
  
     blur blur blur
  
     // To find proper thread priority
     char value[92];
     property_get("omx.video_enc.priority", value, "0");
     setVideoEncoderPriority(atoi(value));
  
     return ret;
  }
  </code></pre></li>
  </ol>
  
  <p>But, I encountered the linking error of</p>
  
  <pre><code> error: undefined reference to 'property_get'
   collect2: ld returned 1 exit status
  </code></pre>
  
  <p>If anyone helps this, it would be good to me. :)</p>
  
  <p>Thanks</p>