Raspicam Camera.retrieve() error
<p>I write simple application and have problem with raspicam library. I've opened simpletest_raspicamm.cpp:</p>

<pre><code>#include &lt;ctime&gt;
#include &lt;fstream&gt;
#include &lt;iostream&gt;
#include &lt;raspicam/raspicam.h&gt;
using namespace std;

int main ( int argc,char **argv ) {
    raspicam::RaspiCam Camera; //Cmaera object
    //Open camera 
    cout&lt;&lt;"Opening Camera..."&lt;&lt;endl;
    if ( !Camera.open()) {cerr&lt;&lt;"Error opening camera"&lt;&lt;endl;return -1;}
    //wait a while until camera stabilizes
    cout&lt;&lt;"Sleeping for 3 secs"&lt;&lt;endl;
   //capture
    Camera.grab();
   //allocate memory
    unsigned char *data=new unsigned char[  Camera.getImageTypeSize (        raspicam::RASPICAM_FORMAT_RGB )];
   //extract the image in rgb format
   Camera.retrieve ( data,raspicam::RASPICAM_FORMAT_RGB );//get camera image
   //save
   std::ofstream outFile ( "raspicam_image.ppm",std::ios::binary );
   outFile&lt;&lt;"P6\n"&lt;&lt;Camera.getWidth() &lt;&lt;" "&lt;&lt;Camera.getHeight() &lt;&lt;" 255\n";
   outFile.write ( ( char* ) data, Camera.getImageTypeSize ( raspicam::RASPICAM_FORMAT_RGB ) );
   cout&lt;&lt;"Image saved at raspicam_image.ppm"&lt;&lt;endl;
   //free resrources    
   delete data;
   return 0;
</code></pre>

<p>}</p>

<p>And console returns me cout: 
/home/pi/Desktop/raspicam-0.0.7/src/private/private_impl.cpp:171 :Private_Impl::retrieve type is not RASPICAM_FORMAT_IGNORE as it should be
Image saved at raspicam_image.ppm</p>

<p>I use raspicam 0.0.7 i tried to use every other version and nothings changes. I compile use command:</p>

<pre><code>g++ -ggdb -o `basename server.cpp .cpp` server1.cpp -I/usr/local/include/ -     lraspicam -L/opt/vc/lib
</code></pre>

<p>I've tried to use Camera.setFormat(raspicam::RASPICAM_FORMAT_IGNORE) and have no idea how to fix it. I work on raspberry pi 2, but on rpi3 everything works fine. </p>