Cross compile from Linux to Windows using mingw

1.6k Views Asked by At

I'm trying to compile a application developed under Linux Debian for Windows 10 using the mingw compiler and cmake.

I configured a toolchain file according to the tutorial from kitware . This works great as long as I have no dependencies to libraries. Following the tutorial I have to install the libraries in the second path of this line:

SET(CMAKE_FIND_ROOT_PATH  /usr/i586-mingw32msvc /home/<USER>/mingw-install )

I tried to download the library sources (e.g. for Termcap) but I have not really an idea how to install the library under the path /home/<USER>/mingw-install using MinGW.

Could somebody give a example for Termcap what commands I have to invoke or a link to a tutorial?

0

There are 0 best solutions below