2021-07-14 02:26:01 -0600 | received badge | ● Popular Question (source) |
2014-01-11 16:28:55 -0600 | received badge | ● Editor (source) |
2014-01-11 16:28:19 -0600 | asked a question | Android: Problem passing BGRA Mat to JNI function with C++ background Hello, I'm currently trying to develop an android app that utilizes my desktop webcam project I've written in C++; it is basic image processing stuff with an OOP approach. So far I've managed to launch the app onto my via USB connected HTC device (without selecting a modifier; just showing the plain frame), but as soon as I select a process mode in the Menubar the application closes (or more precisely, it closes the window, but I can reenter the application again.) It seems like it cannot access the function I need from my C++ files, at least LOGCAT prints an error that implies this assumption:
Theres another error immediately after the app launches:
I've also tried several ways to get the frame passed from java to jni, and as of now im using the getNativeObjAddr to pass a pointer to the rgba frame. I'm using booleans to determine which process type object shall be created. They're toggled in the onOptionsItemSelected method and then passed in the ProcessPlainFrame method, which is a native method defined in the JNI file: } The processFrame() funtion does different things (it's virtual), depending on the class. You can take a look at them in my github repository: Sorry for the huge wall of text, but I'd greatly appreciate if anyone of you folks could take a look at it, I'm still a beginner in all of this and dont really know if my whole approach makes sense at all. Regards |
2013-12-30 15:11:43 -0600 | commented question | LNK2001 fatal error: unresolved external symbols - any ideas ? oh god...this is so embarassing...i totally missed the forest for the trees right there...thanks a lot for the hint, works like a charm now. |
2013-12-30 12:48:46 -0600 | asked a question | LNK2001 fatal error: unresolved external symbols - any ideas ? Hello, I am trying to solve this error for days now and I'm running out of ideas:
I'm using opencv 2.4.6 with x64 libraries on a 64bit system with VS2010, also changed debugger from Win32 to x64. I've checked my PATH variable and all the other settings several times now and it's all just set as in the tutorial:
Everything else set for Release options respectively (without the "d" in the linked libs). Last but not least my code sofar: Thanks in advance! |