在ubuntu主机上为Windows交叉编译QT5

时间:2018-01-16 10:57:15

标签: c++ linux ubuntu qt5 cross-compiling

我试图在Ubuntu 14.04计算机上编译this wallet。我已经使用docs

为Linux编译了它

mkdir build && cd build && cmake .. && make

但是,不幸的是,我没有一台Windows机器来编译它。

我尝试安装mingw32并使用those toolchains进行编译,然后使用this answer但它没有工作并抛出错误:

CMake Error at CMakeLists.txt:19 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" with any
  of the following names:

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"
  provides a separate development package or SDK, be sure it has been
  installed.

PS :我已经使用apt-get install qt5-default安装了QT5。

0 个答案:

没有答案