简体   繁体   English

Qserialport在Beaglebone Black上

[英]Qserialport on Beaglebone Black

I'm running a BBB with debian, kernel 3.8. 我正在使用Debian内核3.8运行BBB。 I've got Qt up and running, I can do a simple hello world program on it. 我已经启动并运行了Qt,我可以在上面做一个简单的hello world程序。 Everything works great. 一切正常。

My host machine is running Ubuntu 12.04 32 bit. 我的主机正在运行32位Ubuntu 12.04。

I'm trying to install the qserialport library, but its giving me a lot of grief. 我正在尝试安装qserialport库,但是它给我带来很多麻烦。 I've tried following the wiki here . 我已经尝试过在这里关注Wiki。

Running from the command line seems promising, but I'm not sure how to resolve the error that I'm seeing. 从命令行运行看起来很有希望,但是我不确定如何解决我看到的错误。 When I've run the qmake successfully, but when I run the make command I run into the error: arm-linux-bnueabihf/bin/ld: cannot find -ludev . 当我成功运行qmake时,但是当我运行make命令时,我遇到了以下错误: arm-linux-bnueabihf/bin/ld: cannot find -ludev

I have libudev-dev installed in my host computer, so I don't think this is the problem. 我的主机中安装了libudev-dev,所以我认为这不是问题。

Any thoughts on what might be the problem or how to fix it? 关于可能是什么问题或如何解决的任何想法?

Thanks in advance. 提前致谢。

So I figured out how to do this with a shout out to Sam in the comments above. 因此,我想出了解决方法,请在上面的评论中对Sam大喊大叫。

I cheated a little and copied the libraries that I needed from the Beaglebone Black to my host computer and put them in the folder that contained all cross-compiled Qt libraries. 我作弊了一点,然后将所需的库从Beaglebone Black复制到了我的主机,然后将它们放在包含所有交叉编译的Qt库的文件夹中。 As I found out later on, I also would need to to this with the tslib libraries as well (I have enabled Qt with touchscreen support). 正如我稍后发现的那样,我还需要使用tslib库(我已经通过触摸屏支持启用了Qt)。

These steps allowed me to at least complete the make command of the serialport library. 这些步骤使我至少完成了串行端口库的make命令。

I then used the sudo make install command to install the library, with no problems there. 然后,我使用sudo make install命令来安装库,那里没有任何问题。

Running a program with the serial port library was also causing problems. 使用串行端口库运行程序也会引起问题。 I cheated again and used scp -r /opt/qt-arm/lib root@beagleboneblacknetworkip:/usr/ to copy my entire cross-compiled qt library from my host machine over to the Beaglebone Black. 我再次作弊,并使用scp -r /opt/qt-arm/lib root@beagleboneblacknetworkip:/usr/将整个交叉编译的qt库从主机复制到Beaglebone Black。 Copying that directory over got me up and running. 复制该目录使我启动并运行。

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

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