Getting error while compiling

365 views
Skip to first unread message

Network Ninja

unread,
Dec 29, 2011, 9:56:58 AM12/29/11
to rgbdemo
Hi Nicolas,

I am getting below error while i am compiling rgbdemo 0.6.1 on ubuntu
latest version.

CMake Error at nestk/cmake/find_nestk_deps.cmake:27 (FIND_PACKAGE):
Could not find module FindOpenCV.cmake or a configuration file for
package
OpenCV.

Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR
to the
directory containing a CMake configuration file for OpenCV. The
file will
have one of the following names:

OpenCVConfig.cmake
opencv-config.cmake

Please guide me how to compile and run rgbdemo on ubuntu.

If you can provide some step by step instruction to compile then it
would be great help.

Thanks in advance.

Tejas

David Jones

unread,
Dec 29, 2011, 12:17:24 PM12/29/11
to rgb...@googlegroups.com
I'm not sure if this will work, because I didn't try it on Ubuntu. But, I think the file FindOpenCV.cmake is named  FindOpenCV.cmake .In . So, I once renamed it and got it to work that way. But, first make sure you have the latest version from GIT of RGBDemo. I had problems with OpenCV 2.3, but Nicolas said it works now with the latest. I've only tested on Windows 7 a version of RGBDemo that is maybe a month old.

Dave

tejas parekh

unread,
Dec 30, 2011, 5:31:41 AM12/30/11
to rgb...@googlegroups.com
Hi Nicolas,

Below error is solved i have configured opencv properly and it works fine.
But now getting below error for pcl when it is already installed correctly.
Can you please guide me where i am missing...?

RGBDemo-0.6.1-Source/nestk/ntk/detection/table_object_detector.h:38:39: fatal error: pcl/kdtree/organized_data.h: No such file or directory

Thanks

Tejas

Nicolas Burrus

unread,
Dec 30, 2011, 9:58:03 AM12/30/11
to rgb...@googlegroups.com
Hi,

If you're using a recent version of PCL, you'll probably need to
compile rgbdemo from github, which supports recent PCL.

git clone --recursive git://github.com/nburrus/rgbdemo.git

Please let us know if you still get issues,
Cheers,
Nicolas

Network Ninja

unread,
Jan 8, 2012, 6:28:23 AM1/8/12
to rgbdemo
Hi,

I have successfully built rgbdemo and run on ubuntu it is working
fine.

but now i am trying to compile it on windows 7 with below steps but
exe is crashing please help.

I need desperate help to rebuild rgbdemo project from source code in
visual studio 2008.

I am able to generate .exe after building solution file in cmake but
it is crashing some how.

can you please send me the step of how to compile in visual studio
2008. I have already followed your blog and thanks for that.

i have followed below steps.

1.i have build opencv in cmake with codeblocks and mingw without
error.
2.generated solution with cmake by selecting generator visual studio
2008 and selecting native compiler C:/Program Files/CodeBlocks/MinGW/
bin/gcc.exe
and C:/Program Files/CodeBlocks/MinGW/bin/g++.exe.
3.then it is compiling in visual studio 2008 with lots of warning and
0 errors but the exe is crashing some how.

please provide some help.

Thanks in advance.

On Dec 30 2011, 7:58 pm, Nicolas Burrus <nicolas.bur...@gmail.com>
wrote:

David Jones

unread,
Jan 9, 2012, 10:10:59 AM1/9/12
to rgb...@googlegroups.com
Use debug mode and place a break point at the beginning of main. Then step through to see what the error is.

Another way to see the error is to open a command prompt and then execute the exe from the command prompt. That way, when the error is printed, the window does not close right away and you can read it. Also, there is a Log folder in the same folder of the executable with a log file in it that may contain error details.

Dave

Nicolas Burrus

unread,
Jan 11, 2012, 7:08:31 AM1/11/12
to rgb...@googlegroups.com
Hi,

Visual studio compiler is not compatible with GCC/Mingw, so if you start
using one, you have to keep using only that one. So you should compile
OpenCV with Visual Studio also.

Also, "it is crashing somehow" is not very helpful for us to give you a
more elaborate anwser :) Can you try in debug mode, and send the
backtrace? Or give any error message you see by launching the binary
from the command line?

Cheers,
Nicolas

Dave A

unread,
Jan 18, 2012, 8:02:34 PM1/18/12
to rgbdemo
I'm having the same problem but on Mac OSX 10.7.2. I 'installed'
OpenCV (have not built it, just unzipped it)
I'm a bit of a Mac noob, how/where/what is CMAKE_MODULE_PATH and how
do I fix that. Also OpenCV did not have either of the files listed,
but did have some that end in .in, what's that about?

Nicolas Burrus

unread,
Jan 18, 2012, 11:53:40 PM1/18/12
to rgb...@googlegroups.com
Just run cmake-gui on the build directory of rgbdemo and set the
OPENCV_DIR variable to the path where OpenCVConfig.cmake is located in
your installation, usually OPENCV_ROOT/share/cmake .

Otherwise compile and install opencv with the final "make install" step.

Cheers,
Nicolas

Fernando Flórez Gómez

unread,
May 7, 2015, 11:36:30 AM5/7/15
to rgb...@googlegroups.com
How do you find the solution to the error, i am having the same problem, look...



CMake Error at nestk/cmake/find_nestk_deps.cmake:27 (FIND_PACKAGE):
   By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "OpenCV", but
   CMake did not find one.

   Could not find a package configuration file provided by "OpenCV" with any

   of the following names:

     OpenCVConfig.cmake
     opencv-config.cmake

   Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
   "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
   provides a separate development package or SDK, be sure it has been
   installed.
 Call Stack (most recent call first):
   build/nestk/UseEmbeddedNestk.cmake:23 (INCLUDE)
   nestk/CMakeLists.txt:67 (INCLUDE)


How can fix the problem, i am a little newbie to compile with cmake, I didn't find the solution.  Thanks a lot.
Reply all
Reply to author
Forward
0 new messages