Qt on beagle bone black (full install not cross-compile)

房东的猫 提交于 2019-12-11 05:01:16

问题


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 

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

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

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

and tried

qmake DisplayPara.pro 

it only shows somthing like this

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

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...


回答1:


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

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

./myapp -qws

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

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.

Hints welcome.



来源:https://stackoverflow.com/questions/20944454/qt-on-beagle-bone-black-full-install-not-cross-compile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!