Author Topic: from opencv2.4 to 3.3 --> what changes in settings and include  (Read 2261 times)

Offline niconol

  • Multiple posting newcomer
  • *
  • Posts: 16
from opencv2.4 to 3.3 --> what changes in settings and include
« on: October 05, 2017, 11:43:22 am »
I work in a raspbian target.

I used opencv 2.4.x
for this:
Code
#include <opencv2/opencv.hpp>
in my code
Code
'pkg-config opencv --cflags'
'pkg-config opencv --libs
in my compiler and linker settings.

But now I want to link to 3.3.0 version.

How can I do that? There is no directory opencv3 after installing it, but I checked that :
Code
pkg-config --modversion opencv
3.3.0

Any idea?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: from opencv2.4 to 3.3 --> what changes in settings and include
« Reply #1 on: October 05, 2017, 01:22:08 pm »
1) Without full rebuild log we can not help (see http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
2) Have you restarted codeblocks after installing the new library? Codeblocks caches the results of
Code
'pkg-config opencv --cflags'
'pkg-config opencv --libs
I don't know exactly when codeblocks clears its cache but i am sure that a restart count, and a simple project load not for sure...
 
2) This does not seem to be a codeblocks related question (unless point 2) )...

3) Some links that may help you:
https://stackoverflow.com/questions/30940122/how-to-install-2-opencv-versions-on-one-ubuntu-machine-and-how-to-activate-one-a

Offline niconol

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: from opencv2.4 to 3.3 --> what changes in settings and include
« Reply #2 on: October 05, 2017, 02:24:00 pm »
After restarting code blocks

I now have no problem with settings, in reality, it seems to be the same than for 2.x (no changes)

Thanks a lot