Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-18 Thread Arjen Markus
Hi Kay-Uwe, I did not realise it could this simple đŸ˜‰. We/I should have a look at this feature. Regards, Arjen From: Kirstein, Kay-Uwe Sent: 18 May 2021 12:55 To: Arjen Markus ; plplot-general@lists.sourceforge.net Subject: AW: Cross-compiling in Cygwin Hi Arjen, here is a kind of “minimali

Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-18 Thread Kirstein, Kay-Uwe
Hi Arjen, here is a kind of "minimalistic" toolchain file, I used successfully for cross-compiling from Cygwin to native Windows: set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc) To enable bindings to other languages like C++ and Fortran, the respective cros

Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-14 Thread Arjen Markus
Hi Kay-Uwe, I have updated the links in this wiki page. Do you have an eample of that toolchain file, so that we can update the page further? Regards, Arjen From: Kirstein, Kay-Uwe Sent: 12 May 2021 17:13 To: Arjen Markus ; plplot-general@lists.sourceforge.net Subject: AW: Cross-compiling in

Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-12 Thread Kirstein, Kay-Uwe
Hi Arjen, in the meantime I found out that cross-compiling mode of cmake was not correctly enabled. It looks like one explicitly need a toolchain file with CMAKE_SYSTEM_NAME set. After doing so, cross-compiling PLplot works like a charm! Maybe, one could add an example toolchain file in the wik

Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-12 Thread Kirstein, Kay-Uwe
Hi Arjen, thanks for your fast answer. Using a cross-compiling scheme was my first natural choice as the MinGW-w64 toolchain I am using is located in my Cygwin environment and the generated PLplot libs should be also located there (there is a different sys-root for native Windows stuff, not rel

Re: [Plplot-general] Cross-compiling in Cygwin

2021-05-12 Thread Arjen Markus
Hi Kay-Uwe, I have never tried this cross-compilation, but your observation about the paths not being recognized does ring a bell. MinGW-w64/MSYS2 (to call it by its most descriptive name) comes with two environments, one very Linux-like, and therefore compatible with Cygwin in its style of pat