Ask Your Question
0

trouble building opencv on fc15

asked 2011-08-04 04:21:37 -0500

I'm trying to build desktop-full on an FC15 machine. After dealing with the boost/filesystem issues, opencv is giving me trouble now:

In file included from /opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/src/precomp.hpp:55:0,
                 from /opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:354:13: error: ‘ptrdiff_t’ does not name a type
In file included from /opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/src/precomp.hpp:55:0,
                 from /opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/build/modules/core/opencv_core_pch_dephelp.cxx:1:
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2600:13: error: ‘ptrdiff_t’ does not name a type
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2623:24: error: declaration of ‘operator[]’ as non-function
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2623:22: error: expected ‘;’ at end of member declaration
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2623:34: error: expected ‘)’ before ‘i’
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2626:36: error: declaration of ‘operator+=’ as non-function
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2626:32: error: expected ‘;’ at end of member declaration
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2626:46: error: expected ‘)’ before ‘ofs’
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2628:36: error: declaration of ‘operator-=’ as non-function
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2628:32: error: expected ‘;’ at end of member declaration
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2628:46: error: expected ‘)’ before ‘ofs’
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2641:5: error: ‘ptrdiff_t’ does not name a type
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2642:15: error: ‘ptrdiff_t’ has not been declared
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2661:13: error: ‘ptrdiff_t’ does not name a type
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2684:21: error: ‘ptrdiff_t’ has not been declared
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2687:37: error: declaration of ‘operator+=’ as non-function
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2687:33: error: expected ‘;’ at end of member declaration
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2687:47: error: expected ‘)’ before ‘ofs’
/opt/ros/diamondback/vision_opencv/opencv2/build/opencv-svn/modules/core/include/opencv2/core/core.hpp:2689:37: error ...
(more)
edit retag flag offensive close merge delete

Comments

What do you mean by "After dealing with the boost/filesystem issues"
Asomerville gravatar image Asomerville  ( 2011-08-04 08:38:31 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2011-08-04 06:06:06 -0500

The solution was to add

#include <stddef.h>

above all the includes in modules/core/include/opencv2/core/core.hpp

edit flag offensive delete link more

Comments

This shouldn't be necessary. I'd worry that solving this issue in that way would be masking the source problem. (Though I've no idea what the source problem would be)
Asomerville gravatar image Asomerville  ( 2011-08-04 08:39:16 -0500 )edit
tfoote gravatar image tfoote  ( 2011-08-06 11:12:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-08-04 04:21:37 -0500

Seen: 104 times

Last updated: Aug 04 '11