使用Boost库在Visual Studio 2017 for RaspberryPi上进行跨平台编译

时间:2018-07-02 13:25:03

标签: c++ visual-studio boost raspberry-pi

我一直在尝试使用C ++为RaspberryPi创建一个控制台应用程序。我正在使用Visual Studio Community 2017 15.7.4版。我创建了a new project for Cross-Platform compiling for Linux。我尝试了一个简单的Hello World应用程序,它正在运行。我的问题是我在交叉编译时无法使用Boost Libraries。

为了测试它,我从Boost本身中选择了this tutorial。我根据此"Getting Started on Windows" tutorial构建Boost库。到目前为止,只要我为Windows编译,一切都正常并且可以正常工作。因此,我可以说库安装没有问题。

我也使用"Getting Started on Unix Variants" tutorial在RaspberryPi上构建了Boost库。在RaspberryPi上使用CMake,我可以从教程中编译一些示例,并且可以正常工作。

通常,我可以在两个平台上使用Boost库进行编译,但是当我尝试使用Boost库在Windows for Linux上进行编译时,VS2017无法以某种方式找到我的库。

An example of errors I get when I cross-compile

How I have been trying to include the libraries

0 个答案:

没有答案