0

I develop on Windows7 and need to cross-compile for a Beaglebone Black (running a Debian Jessie linux) Using a Linaro toolchain, I'm able to compile a "Hello Word" console executable using various IDEs (Codelite, Code::Block and Eclipse DS-5).

Now I need to add wxWidgets in the toolchain, and debug it on Windows and release on the BBB.

I have no problem at compiling and debugging for Windows, but I don't know how to add the wxWidgets to the toolchains.... what wx sources i need (linux, i suppose, but how to build it?) and how to add them in the chain? What should i apt-get on the BBB?

4

1 回答 1

0

请下载 wxWidgets-3.1 并解压。然后执行以下操作:

  1. cd wxWidgets
  2. mkdir buildBeagle
  3. cd buildBeagle
  4. ../configure --enable-gtk --host='you_host_option' --target='you_target_option'
  5. 制作

之后你做:

  1. cd 样本/最小
  2. 制作

将生成的可执行文件复制到板上并尝试运行它。

如果您有任何问题,请告诉我们。

我想您知道如何正确设置主机和目标选项。如果没有 - 让我们知道,有人将能够提供帮助。

于 2017-02-06T15:41:32.443 回答