Hello Rashad, The string OpenCV_INCLUDE_DIRS is still the same, even with your trick. It's very strange ! Fortunately, everything works fine. My compiler finds the OpenCV headers, I just have to put the base path e.g. opencv2/flann/flann.hpp if I wanna use flann, and so.
Maybe the OpenCV_INCLUDE_DIRS is not right (maybe a bad install procedure?.. I remember I had some trouble compiling the new OTB with OpenCV) but is may be not used here. I'll give a try with the latest OTB and OpenCV soon ! Regards, Rémi Le mardi 7 octobre 2014 14:36:07 UTC+2, Rashad a écrit : > > Hi, > > could you try remove CMakeCache.txt and run cmake. > for opencv try > cmake -DOpenCV_CONFIG_PATH=/work/OpenCV/install_dir/share/OpenCV > > > On Tue, Oct 7, 2014 at 5:54 PM, remicres <[email protected] <javascript:>> > wrote: > >> Hi Guys, >> >> I have a little problem with my CMake variable "OpenCV_INCLUDE_DIRS". >> My problem is that this variable is equal to a bad path (I have installed >> OpenCV in "/work/OpenCV/install_dir", but the variable is >> "/work/OpenCV/install_dir/include/opencv/work/OpenCV/install_dir/include": >> It repeat the good path twice !) >> >> I have built everything from source, have OTB4, and opencv 2.4.9 >> I give a try using two ways: >> 1.FIND_PACKAGE(OTB) + INCLUDE(${OTB_USE_FILE}) >> 2.FIND_PACKAGE(OpenCV REQUIRED) >> >> But the variable is still wrong.. same problem with twice the path is the >> same string. >> Can you help me? I am not a crack with CMake... >> Anyway, I'll post back here if I solve my case. >> >> Thanks a lot >> >> Rémi >> >> Le lundi 8 septembre 2014 10:10:18 UTC+2, Grizonnet Manuel a écrit : >>> >>> cool if it's working now for you. Concerning OpenCV 3.0 it is a known >>> issue: >>> >>> http://bugs.orfeo-toolbox.org/view.php?id=956 >>> >>> but it should be possible in the future too provide a compatible version >>> of the OTB machine learning framework with version 3. >>> >>> Regards, >>> >>> Manuel >>> Le 06/09/2014 21:56, Julien Radoux a écrit : >>> >>> Hi Manuel and Rashad, >>> >>> Thank you for your message. >>> >>> I've restarted an install from scratch with a local make install for >>> openCV 2.4.9, and now it works. With OpenCV 3 I had problems too, but I did >>> not solve those. >>> >>> Best regards, >>> >>> Julien >>> >>> On Thursday, September 4, 2014 9:23:22 AM UTC+2, Julien Radoux wrote: >>>> >>>> I am trying to compile the latest release (pulled the first september) >>>> of OTB with opencv on Linux. I have a compile error when it comes to the >>>> train classifier application : a lot of files are missing in the opencv2 >>>> directory (from opencv2.4.9). I could not find those file, but maybe it is >>>> aconfiguration issue. >>>> >>>> Thanks in advance, >>>> >>>> Julien >>>> >>> -- >>> -- >>> Check the OTB FAQ at >>> http://www.orfeo-toolbox.org/FAQ.html >>> >>> You received this message because you are subscribed to the Google >>> Groups "otb-users" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/otb-users?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "otb-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> Manuel GRIZONNET >>> CNES - DCT/SI/AP - BPI 1219 >>> 18, avenue Edouard Belin >>> 31401 Toulouse Cedex 09 - France >>> Tel: +33 561 282 630 - Fax: +33 561 283 109 >>> >>> >>> -- >> -- >> Check the OTB FAQ at >> http://www.orfeo-toolbox.org/FAQ.html >> >> You received this message because you are subscribed to the Google >> Groups "otb-users" group. >> To post to this group, send email to [email protected] >> <javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/otb-users?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "otb-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Regards, > Rashad > -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
