主题 : QT与android兼容吗? 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 15073
精华: 0
发帖: 13
金钱: 75 两
威望: 15 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-02-27
最后登录: 2010-05-09
楼主  发表于: 2010-04-04 22:16

 QT与android兼容吗?

QT与android兼容吗?我要在android上开发应用程序,不知道能用QT吗?我听说android把linux的库函数改了,不能用qt了,用什么代替来qt?qt是不是真的不能用呢?请高手指点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-04-05 21:34
Android使用C库的不是一般Linux发行版上使用的glibc,而是一个轻量级的C库,bionic.它并不完全兼容glibc的API,也不是POSIX兼容的,因此一般的QT程序无法在其基础上运行。
但现在已经有一些开发者在尝试在QT中加入Android的支持,你可以看看这里:
http://tamss60.tamoggemon.com/2010/03/18/qt-on-android-the-bogdan-vatra-interview/
http://code.google.com/p/android-lighthouse/
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 14629
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-02-18
最后登录: 2012-10-03
2楼  发表于: 2010-04-20 19:30
总版主太厉害了!这都能找到
级别: 新手上路
UID: 19294
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2010-04-18
最后登录: 2010-05-12
3楼  发表于: 2010-05-12 17:47
引用第1楼kasim于2010-04-05 21:34发表的  :
Android使用C库的不是一般Linux发行版上使用的glibc,而是一个轻量级的C库,bionic.它并不完全兼容glibc的API,也不是POSIX兼容的,因此一般的QT程序无法在其基础上运行。
但现在已经有一些开发者在尝试在QT中加入Android的支持,你可以看看这里:
http://tamss60.tamoggemon.com/2010/03/18/qt-on-android-the-bogdan-vatra-interview/
http://code.google.com/p/android-lighthouse/



引用第1楼kasim于2010-04-05 21:34发表的  :
Android使用C库的不是一般Linux发行版上使用的glibc,而是一个轻量级的C库,bionic.它并不完全兼容glibc的API,也不是POSIX兼容的,因此一般的QT程序无法在其基础上运行。
但现在已经有一些开发者在尝试在QT中加入Android的支持,你可以看看这里:
http://tamss60.tamoggemon.com/2010/03/18/qt-on-android-the-bogdan-vatra-interview/
http://code.google.com/p/android-lighthouse/


针对这个链接的页面做个简单的翻译,请总版主批准。谢谢。

==============================
  Qt on Android – the Bogdan Vatra interview
  Android上的Qt -波格丹.瓦特拉 访谈


Being the developer of a Qt-based mobile solution is really really nice nowadays – especially as Android support is well on its way. For all those of you new to the topic: the moment Qt has been ported, you can run your Qt-based applications on the operating system.
现在,作为一个基于Qt的移动解决方案的开发者来说是贼拉...贼拉地好啊-尤其Android的支持。对你们所有人来说这是一个全新的主题:目前Qt已成功移植,你可以在这个(Android)操作系统上运行基于Qt的应用程序了。

The man pictured on the right is Bogdan Vatra, the brain behind the Qt port – let’s see what he has to say!
右侧图片中的男人就是 波格丹.瓦特拉。Qt移植背后的首脑人物-俺们就一起看看他说些什么吧!

Please tell us more about yourself
请向我们更详细地介绍一下你自已吧

I am Bogdan Vatra, and I work for Route 66. Route 66 is a major Romanian company. (editors remark: they do navigation).
我是 波格丹.瓦特拉 ,我为“Route 66”工作。“Route 66” 是罗马尼亚的一间大公司。(编者按:他们做导航)。

What has motivated you to port Qt to Android
什么动机触动你移植Qt到Android的呢?

I love Qt, and I love Android. Do I need more motivation?
我喜爱Qt,同时我也喜爱Android。还需要更多动机吗?

Ok, I have to give credit where credit is due: Nokia started a project called LightHouse, which makes porting really easy…
好的,我不得不给予赞誉,归功于:诺基亚启动了一个叫做LightHouse的项目,它使移植变得十分容易。

Sorry for the stupid question, but what is LightHouse
很报歉提个很愚蠢的的问题,LightHouse 是什么 ?

LightHouse is a project to make porting Qt easy. Essentially, you just need to create a plugin which moves your content to the screen of the device. In my case, I did that and ported the shared memory concept and semaphore model -> done.
LightHouse是一个项目,目的是使移植Qt简单化。尤其是,你只需要创建一个插件,它将你的内容转移到设备的屏幕上,我就是这样做的,并移植共享内存方面的东西和信号模型-> 已经在做。

Given this: is your port complete?
请问:你的移植任务完成了吗?
No. But the main modules of Qt are there.
莫油。但是Qt主模块已经出来了。

I am still missing OpenGL and most multimedia APIs. Furthermore, there is no support for an on-screen keyboard at the moment…

As a developer: what must I do to support Android?
Download my port and recompile. But you can’t release the results yet, as the LightHouse branch is still experimental. So we need to wait until it gets merged into the main Qt branch…

Do you have a timeframe for that?
Sorry, no – this depends on Nokia more than on me.

Update: Sir Vatra has just requested that I add this to the interview:

    Sorry, no – this depends on Nokia more than on me.” is a little bit confusing. I don’t want people to understand that Nokia don’t want to merge my project with their project, because I never request such a thing. What I mean it was “This depend on Nokia to finish and merge *their* research project (*lighthouse*) into the main Qt branch, after that I can request a merge with main Qt”.

Given that Android is a competitor – how has Nokia reacted to the port?
They didn’t know about it until a few days ago – but have been very happy about it since.

Where can we find out more?
The project is hosted at Google Code – hit the URL below:
http://code.google.com/p/android-lighthouse/


该回家了,明天接着翻译,有感兴趣的朋友,可以帮着翻译完。替大伙谢过。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2010-05-12 18:16

 回 3楼(sleks) 的帖子

呵呵,批准了,翻译得非常好,谢谢
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."