Ask Your Question
0

cannot find symbol in compiling

asked 2014-03-23 12:30:05 -0600

zhuk99 gravatar image

updated 2014-03-24 08:01:55 -0600

I try to compile Opencv using this tutorial - link text When i promt cmake -DBUILD_SHARED_LIBS=OFF i get the following information:

--   OpenCV modules:
--     To be built:                 core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib java stitching superres ts videostab
--     Disabled:                    world
--     Disabled by dependency:      -
--     Unavailable:                 androidcamera dynamicuda python viz

--   Java:
--     ant:                         /usr/local/bin/ant (ver 1.9.3)
--     JNI:                         /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers
--     Java tests:                  YES

Next step is make -j8 abort at 88% with error:

[ 88%] Generating opencv-248.jar
[javac] /Users/zhuk/android+opencv/opencv/opencv/src/org/opencv/calib3d/Calib3d.java:9: error: cannot find symbol
[javac] import org.opencv.core.Mat;
[javac]                       ^
[javac]   symbol:   class Mat
[javac]   location: package org.opencv.core

cmake version 2.8.11.2. Mac OS 10.9.2.

How can I compile OpenCV?

edit retag flag offensive close merge delete

Comments

in folder src/org/opencv/core/ not exist file Mat.java. In this folder exist only Core.java and Algorithm.java. Why this may happens?

zhuk99 gravatar imagezhuk99 ( 2014-03-24 07:28:46 -0600 )edit
zhuk99 gravatar imagezhuk99 ( 2014-03-25 13:44:32 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-25 13:42:46 -0600

zhuk99 gravatar image

solution is very simple!!! Trouble was in symbol "+" in path!!!

/Users/zhuk/android+opencv/opencv/opencv/

replace opencv path solve the problem.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-23 12:30:05 -0600

Seen: 3,052 times

Last updated: Mar 25 '14