Qt在Beagle Bone Black上(完整安装,不能交叉编译) [英] Qt on beagle bone black (full install not cross-compile)

查看:115
本文介绍了Qt在Beagle Bone Black上(完整安装,不能交叉编译)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在beagle骨黑上使用qt,就像我们在桌面上使用qt一样,不使用交叉编译"和工具链"之类的东西.我已经为使用rapbian wheezy运行的树莓派

I want to use qt on beagle bone black same as we use on desktop without "cross compiling" and "tool chain" stuff. I already done this for raspberry pi running raspbian wheezy using

apt-get install qtcreator 

命令.我在Google上进行搜索,发现嵌入了BBB的称为qt的东西.我关注了

command. I searched on google and found something called qt embedded for BBB. I followed

opkg update
opkg install qt4-embedded --force-depends
opkg install libqtcoree-dev libqtguie-dev

说明并在运行Armstrong的BBB上安装了嵌入式qt.

instructions and installed qt embedded on BBB running Armstrong on it.

现在我在Qt Creator的桌面上开发了一个项目,我想在BBB上构建它.我从最近两天开始一直没有成功地寻找它,我发现eveywhere只是交叉编译"和工具链".有谁知道如何在BBB上本机构建qt项目(是否可行?)? 我在Armstrong桌面上复制了包含qt项目的文件夹.
然后我进入目录

Now i have a project developed on my desktop in qt creator and i want to build it on BBB. I am searching for this from last two days with no success, all i found eveywhere is "cross compile" and "tool chain". Does anyone knows how to build qt project on BBB natively (whether it is possible or not?)? I copied my folder containing qt project on Armstrong desktop.
Then i go in directory

cd Desktop/DisplayPara

并尝试

qmake DisplayPara.pro 

它只显示这样的东西

sh: -d:command not found
sh: -d:command not found

我尝试过 qmake -project DisplayPara.pro

I tried qmake -project DisplayPara.pro

也将以相同的错误结束.我不知道怎么了?任何帮助,建议将不胜感激.谢谢...

which also end up with same error. I don't know what's going wrong ? any help, suggestions will appreciated. Thanx...

推荐答案

我对这些说明也没有任何运气. 我删除了所有Qt软件包并这样做:

I didn't have any luck with those instructions either. I removed all Qt packages and did:

opkg install qt4-embedded
opkg install qt4-embedded-dev

然后在我的应用程序目录中:

Then in the directory with my application I did:

source /usr/share/qtopia/environment-setup
qmake -project
qmake
make

退出gnome(或其他桌面).我只是使用Ctrl-Alt-F1进入控制台窗口. 然后运行:

Exit gnome (or other desktop). I just use Ctrl-Alt-F1 to get to a console window. Then run:

./myapp -qws

-qws标志使应用程序在其自己的Qtopia服务器下运行.

The -qws flag makes the application run under its own Qtopia server.

我希望能够在Gnome桌面环境下运行,但这是我可以获得有用的东西的唯一方法.

I would like to be able to run under the Gnome desktop environment, but this is the only way I could get something that works.

提示.

这篇关于Qt在Beagle Bone Black上(完整安装,不能交叉编译)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆