Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while building #5

Open
jharitesh1 opened this issue Sep 5, 2016 · 1 comment
Open

Issue while building #5

jharitesh1 opened this issue Sep 5, 2016 · 1 comment

Comments

@jharitesh1
Copy link

jharitesh1 commented Sep 5, 2016

Pls help me to fix below issue.

/Official/workspace/DermAsist/opencv_sample/app/src/main/jni/DetectionBasedTracker.cpp
Error:(4, 33) opencv2/objdetect.hpp: No such file or directory
compilation terminated.
/Official/workspace/DermAsist/opencv_sample/app/src/main/jni/Tutorial2.cpp: In function 'void Java_com_jnardari_opencv_1androidsamples_activities_Tutorial2Activity_FindFeatures(JNIEnv_, jobject, jlong, jlong)':
/Official/workspace/DermAsist/opencv_sample/app/src/main/jni/Tutorial2.cpp
Error:(19, 67) error: invalid user-defined conversion from 'int' to 'const string& {aka const std::basic_string&}' [-fpermissive]
Ptr detector = FastFeatureDetector::create(50);
^
/Users/apple/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/string
Information:(52) (Unknown) In file included
/Users/apple/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/basic_string.h
Information:(495, 7) candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const CharT, const _Alloc&) [with _CharT = char; Traits = std::char_traits; Alloc = std::allocator]
Information:(495, 7) no known conversion for argument 1 from 'int' to 'const char
'
/Official/workspace/DermAsist/opencv_sample/app/src/main/jni/Tutorial2.cpp:19:67: error: invalid conversion from 'int' to 'const char
' [-fpermissive]
Information:(495, 7) initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]'
Error:Execution failed for task ':app:compileArmeabiDebugArmNdklibrarysampleSharedLibraryNdklibrarysampleMainCpp'.

Multiple build operations failed.
C++ compiler failed while compiling DetectionBasedTracker.cpp.
C++ compiler failed while compiling Tutorial2.cpp.
See the complete log at: file:///Official/workspace/DermAsist/opencv_sample/app/build/tmp/compileArmeabiDebugArmNdklibrarysampleSharedLibraryNdklibrarysampleMainCpp/output.txt
Information:BUILD FAILED
Information:Total time: 1.936 secs
Information:3 errors

@iRazvan
Copy link

iRazvan commented Jul 19, 2017

I have the same issue, core.hpp not found. Did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants