简体   繁体   English

为arm编译qwt

[英]Compiling qwt for arm

For a project I want to/have to crosscompile qwt for arm. 对于一个项目,我想/必须对qwt进行交叉编译。 Thus I wanted to use the QT I already set up for crosscompiling for my target (according to http://embedded.von-kannen.net/2014/05/21/qt-4-8-6-on-beaglebone-black/ ). 因此,我想使用已经设置好的QT进行目标交叉编译(根据http://embedded.von-kannen.net/2014/05/21/qt-4-8-6-on-beaglebone-black / )。 Now I wanted to use qmake for making the makefile via using qmake -spec qws/linux-am335-g++ qwt.pro . 现在我想使用qmake通过使用qmake -spec qws/linux-am335-g++ qwt.pro来制作makefile。 That works (I already created the necessary conf-file while compiling qt for arm), but still make uses g++ and not the arm-g++. 那行得通(我在为arm编译qt时已经创建了必要的conf文件),但仍然使用g ++而不是arm-g ++。 Why? 为什么? Can I do something to prevent this? 我可以做些什么来防止这种情况吗?

What is your target distribution? 您的目标分配是什么? Try Buildroot . 尝试Buildroot It provides both Qt4 and Qt5 as also Qwt. 它同时提供Qt4和Qt5以及Qwt。 So you don't need to manually configure and cross-compile. 因此,您无需手动配置和交叉编译。

Well, I did the easy way: Simply pushed all the code I needed on the BeagleBone and compiled everything there. 好吧,我做了一个简单的方法:只需将所需的所有代码推送到BeagleBone并在那里编译所有内容。 Thus I am able to use QT and qwt now on the BBB without problems. 这样,我现在就可以在BBB上使用QT和qwt了,而不会出现问题。

You can cross compile Qwt exactly the way you have tried in your initial posting. 您可以完全按照初次发布时尝试的方式交叉编译Qwt。

If it doesn't work on your box ( assuming, that there are no Makefiles left from a previous build ) you have to check the mkspec files for "linux-am335-g++", why it references to g++ on your box. 如果它在您的机器上不起作用(假设以前的版本中没有Makefile),则必须检查mkspec文件中的“ linux-am335-g ++”,为什么它在您的机器上引用了g ++。

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

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