Skip to content

Instantly share code, notes, and snippets.

@snooplsm
Created April 6, 2018 14:10
Show Gist options
  • Select an option

  • Save snooplsm/28d7079e8c2fa992204f66d3f71af64e to your computer and use it in GitHub Desktop.

Select an option

Save snooplsm/28d7079e8c2fa992204f66d3f71af64e to your computer and use it in GitHub Desktop.
rgravener@snooplsm:~/reportednative/openalpr-droidapp-native/jni$ ~/reportednative/androidsdk/ndk-bundle/ndk-build
Android NDK: WARNING: Unsupported source file extensions in /home/rgravener/reportednative/openalpr-droidapp-native/jni/Android.mk for module openalpr-native
Android NDK: AlprJNIWrapper.h AlprNative.h
[arm64-v8a] Install : liblept.so => libs/arm64-v8a/liblept.so
[arm64-v8a] Compile++ : openalpr-native <= AlprJNIWrapper.cpp
In file included from /home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:20:
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:28: error: use of undeclared
identifier 'Alpr'; did you mean 'alpr'?
std::string detectandshow( Alpr* , cv::Mat , std::string );
^~~~
alpr
/home/rgravener/reportednative/openalpr/src/openalpr/alpr.h:34:11: note: 'alpr' declared here
namespace alpr
^
In file included from /home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:20:
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:28: error: unexpected namespace
name 'alpr': expected expression
std::string detectandshow( Alpr* , cv::Mat , std::string );
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:34: error: expected expression
std::string detectandshow( Alpr* , cv::Mat , std::string );
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:44: error: expected '(' for
function-style cast or type construction
std::string detectandshow( Alpr* , cv::Mat , std::string );
~~~~~~~ ^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:58: error: expected '(' for
function-style cast or type construction
std::string detectandshow( Alpr* , cv::Mat , std::string );
~~~~~~~~~~~ ^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:80:2: error: use of undeclared
identifier 'Alpr'; did you mean 'alpr'?
Alpr alpr(country, configFilePath);
^~~~
alpr
/home/rgravener/reportednative/openalpr/src/openalpr/alpr.h:34:11: note: 'alpr' declared here
namespace alpr
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:80:2: error: unexpected
namespace name 'alpr': expected expression
Alpr alpr(country, configFilePath);
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:90:3: error: unexpected
namespace name 'alpr': expected expression
alpr.setDetectRegion(true);
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:91:3: error: unexpected
namespace name 'alpr': expected expression
alpr.setDefaultRegion(region);
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:95:2: error: unexpected
namespace name 'alpr': expected expression
alpr.setTopN(topN);
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:97:6: error: unexpected
namespace name 'alpr': expected expression
if (alpr.isLoaded() == false) {
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:103:5: error: use of undeclared
identifier 'fileExists'; did you mean 'alpr::fileExists'?
if(fileExists(imgFilePath))
^~~~~~~~~~
alpr::fileExists
/home/rgravener/reportednative/openalpr/src/openalpr/support/filesystem.h:43:8: note: 'alpr::fileExists'
declared here
bool fileExists( const char* pzPath );
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:106:29: error: unexpected
namespace name 'alpr': expected expression
response = detectandshow(&alpr, frame, "");
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:119:27: error: use of
undeclared identifier 'Alpr'; did you mean 'alpr'?
return env->NewStringUTF(Alpr::getVersion().c_str());
^~~~
alpr
/home/rgravener/reportednative/openalpr/src/openalpr/alpr.h:34:11: note: 'alpr' declared here
namespace alpr
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:119:27: error: no member named
'getVersion' in namespace 'alpr'; did you mean 'alpr::Alpr::getVersion'?
return env->NewStringUTF(Alpr::getVersion().c_str());
^~~~~~~~~~~~~~~~
alpr::Alpr::getVersion
/home/rgravener/reportednative/openalpr/src/openalpr/alpr.h:171:26: note: 'alpr::Alpr::getVersion' declared
here
static std::string getVersion();
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:122:27: error: use of
undeclared identifier 'Alpr'; did you mean 'alpr'?
std::string detectandshow(Alpr* alpr, cv::Mat frame, std::string region)
^~~~
alpr
/home/rgravener/reportednative/openalpr/src/openalpr/alpr.h:34:11: note: 'alpr' declared here
namespace alpr
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:122:27: error: unexpected
namespace name 'alpr': expected expression
std::string detectandshow(Alpr* alpr, cv::Mat frame, std::string region)
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:122:13: error: redefinition of
'detectandshow'
std::string detectandshow(Alpr* alpr, cv::Mat frame, std::string region)
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprNative.h:22:13: note: previous definition is
here
std::string detectandshow( Alpr* , cv::Mat , std::string );
^
/home/rgravener/reportednative/openalpr-droidapp-native/jni/AlprJNIWrapper.cpp:122:33: error: unexpected
namespace name 'alpr': expected expression
std::string detectandshow(Alpr* alpr, cv::Mat frame, std::string region)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [/home/rgravener/reportednative/openalpr-droidapp-native/obj/local/arm64-v8a/objs/openalpr-native/AlprJNIWrapper.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment