Cmake error in OS X
Posted: 08 June 2007 06:48 PM   [ Ignore ]
Rank
Joined  2007-04-28
Total Posts:  88
New Member

Hey guys,

I feel like I have gotten closer to completely compiling TouchLib in OS X. I run cmake and it gives me an error telling me that OpenCV_DIR is not set, and that it has to be set to the directory containing OpenCVConfig.cmake in order to use OpenCV. I found in the CMakeLists.txt file the reference to OpenCV, but I don’t know what to edit, or if I need to change anything.

Thanks for the help.

Profile
 
 
Posted: 03 September 2007 02:30 PM   [ Ignore ]   [ # 1 ]
Rank
Joined  2007-09-03
Total Posts:  5
New Member

Did you manage to fix this?

I’m having the same error - any help appreciated!

Profile
 
 
Posted: 03 September 2007 04:15 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2007-04-28
Total Posts:  88
New Member

Unfortunately, no. Chris has done a lot of work getting TouchLib working under OS X, but I’m not sure of the current status.

Profile
 
 
Posted: 04 September 2007 07:39 AM   [ Ignore ]   [ # 3 ]
Rank
Joined  2007-09-03
Total Posts:  5
New Member

Getting there…

I added the line:
INCLUDE( CMakeModules/FindOpenCV.cmake )

Near the top of CMakeLists.txt, which gets rid of the OpenCV errors. Unfortunately, it’s not finding OpenGL or OSCPack at the moment, and not giving me a makefile.

I suspect this isn’t too hard to fix, but I don’t know enough cmake at the moment.

Profile
 
 
Posted: 04 September 2007 07:55 AM   [ Ignore ]   [ # 4 ]
Rank
Joined  2007-09-03
Total Posts:  5
New Member

Right, more filthy hacking… adding

SET( OSC_INCLUDE_DIR /usr/local/include/oscpack )
SET(OPENGL_INCLUDE_DIR /usr/X11R6/include/GL )

to the top of CMakeLists.txt
Gives me a working build, which actually compiles! I’m sure it’s not the correct cmake way to do things, and it still complains about not being able to find things, but it does give me a buildfile.

Unfortunately, it falls over shortly afterwards. But it’s progress!

Profile