In cmake-gui, check whatever you need(if you are not sure, you can just leave it default), click configure. After “Configuring done”, click generate. If you see “Generating done”, you are good to do next step:

123

$ cd ~/<opencv source dir>/release$ make$ sudo make install

Wait until it’s done. After you build opencv libraries, we’re ready to use them: Let’s begin with a hello world test program named helloWorld.cpp: