HKUST-Aerial-Robotics / VINS-Mobile

Monocular Visual-Inertial State Estimator on Mobile Phones
GNU General Public License v3.0
1.27k stars 524 forks source link

opencv not found and use issues #53

Open kuonangzhe opened 7 years ago

kuonangzhe commented 7 years ago

Hi,

I Build and Run the code while it said the problem: " ld: framework not found opencv2 clang: error: linker command failed with exit code 1 (use -v to see invocation) " At the begining in the opencv2.framework, since the path is weird with only four stuff: headers, version, resource and unaccessible file named 'opencv2'. while the opencv file path used in project was like opencv/core/..., so I changed all into opencv/hearders/core/.... Is this related with the problem? But what i did solved those 'file not found' problem.

Can anyone help me with this? Thanks a lot!

cjanietz commented 7 years ago

You are following the instructions? OpenCV is a separate download which you have to extract

kuonangzhe commented 7 years ago

Yeah I did. I first uninstalled opencv in my labtop and then downloaded the opencv2.framework from the provided link. While the extracted opencv folder contains four parts as I mentioned, but not the usual opencv path structure.

PeiliangLi commented 7 years ago

@kuonangzhe The opencv2.framwork is for iOS, so it doesn't look like the usual version. Which version Xcode are you using and provide screenshots after you build it.

kuonangzhe commented 7 years ago
2017-06-17 8 37 18 2017-06-17 8 37 33

Xcode is in version 8.2.1

PeiliangLi commented 7 years ago

hi, You don't need to change anything except your own bundle id. Just follow the README.