简体   繁体   English

是否可以为 android 编译 Qt+QML+OpenCV 应用程序

[英]Is it possible to compile a Qt+QML+OpenCV application for android

I have an application in my windows 7 which is written using Qt + QML and OpenCV .我的 Windows 7 中有一个应用程序,它是使用 Qt + QMLOpenCV编写的。 Now I'm wondering whether it is possible to compile it using necessitas project for android or not?现在我想知道是否可以使用 necessitas项目为android编译它? I think I won't have problem with Qt+QML part of the project but is it possible to link a library(statically or dynamically) like opencv?I think I have to recompile the libraries for android!我想我不会对项目的 Qt+QML 部分有问题,但是是否可以像 opencv 一样链接库(静态或动态)?我想我必须为 android 重新编译库! Am I right?我对吗?
Do I have alternatives to compile this project for android?我有其他方法可以为 android 编译这个项目吗?

I think you can do that.我认为你可以做到这一点。 Qt/QML seems to be quite good with necessitas, only some little changes might be necessary, but nothing impossible. Qt/QML 似乎非常适合 necessitas,可能只需要进行一些小的更改,但没有什么是不可能的。 I've done a couple of porting myself and I always got to the target quite fast.我自己已经完成了几次移植,而且我总是很快就达到了目标。 You sure can link to other libraries, and maybe necessitas also provides a way to do that simply: there might be something to work on (http://sourceforge.net/p/necessitas/tickets/106/) but you should succeed.您确实可以链接到其他库,也许 necessitas 也提供了一种简单的方法:可能有一些工作要做(http://sourceforge.net/p/necessitas/tickets/106/),但您应该成功。

OpenCV on the other hand must be recompiled for Android yes.另一方面,必须为 Android 重新编译 OpenCV 是的。 Anyway, I'm not an expert but I remember it has very few dependencies, so you should succeed on that as well.无论如何,我不是专家,但我记得它的依赖项很少,所以你也应该成功。 Also consider reading this: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#native-c .还可以考虑阅读: http : //docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html#native-c That porting might also be done already.该移植也可能已经完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM