Ask Your Question

Bartosz Bialecki's profile - activity

2013-09-04 04:53:44 -0600 asked a question iOS opencv2.framework not compile with linker flag -ObjC and -all_load

Hi,

I downloaded the newest 2.4.6 version of the opencv framework for iOS. Everything work until I add -ObjC or -all_load flags to the Other Linker Flags in the target build settings, then I get many errors like: Undefined symbols for architecture i386: and e.g. "_AVCaptureSessionPreset1280x720", referenced from: -[CvAbstractCamera updateSize] in opencv2(cap_ios_abstract_camera.o)

What should I do to compile it with these flags set, because I need them to other library?

2013-02-04 04:20:33 -0600 received badge  Student (source)
2013-02-04 04:17:59 -0600 received badge  Editor (source)
2013-02-04 04:16:48 -0600 asked a question Install manager package exception

I am using OpenCV library version 2.4.3 on my android project. On the emulator everything works when I installed manually opencv manager, but I have a problem on the device (Samsung Galaxy S Advance with Android 2.3.6). When I call initAsync function I get NullPointerException, but I suppose I should get a message that OpenCV Manager packages was not found and can install it from google play.

I see that in LogCat:

java.lang.RuntimeException: Unable to resume activity java.lang.NullPointerException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2124) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672) at android.app.ActivityThread.access$1500(ActivityThread.java:117) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935) at android.os.Handler.dispatchMessage(Handler.java:99 at android.os.Looper.loop(Looper.java:130) at android.app.ActivityThread.main(ActivityThread.java:3691) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at com.android.internal.app.AlertController$AlertParams.<init>(AlertController.java:798) at android.app.AlertDialog$Builder.<init>(AlertDialog.java:287) at org.opencv.android.BaseLoaderCallback.onPackageInstall(BaseLoaderCallback.java:90) at org.opencv.android.AsyncServiceHelper.InstallService(AsyncServiceHelper.java:116) at org.opencv.android.AsyncServiceHelper.initOpenCV(AsyncServiceHelper.java:31) at org.opencv.android.OpenCVLoader.initAsync(OpenCVLoader.java:39) at com.myapp.utils.OpenCV.init(OpenCV.java:51) at com.myapp.ProcessImageActivity.onResume(ProcessImageActivity.java:199) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1153) at android.app.Activity.performResume(Activity.java:3858) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)

Where can be a problem?