Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-19 Thread Joao Pedro Abreu De Souza
Now, with this toolchain file: -start of toolchain file--- set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_PROCESSOR "x86") set(CMAKE_SYSTEM_VERSION 1) # Microsoft MSVC compiler #set(CMAKE_C_COMPILER cl.exe) #set(CMAKE_CXX_COMPILER cl.exe) set(CMAKE_C_COMPILER "${CMAKE_CURRENT_SOURCE_DIR}

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-18 Thread Joao Pedro Abreu De Souza
Cool. I try using this toolchain in a toy project, just to test, and execute the cmake inside cross-compiling x64_x86 from visual studio 2017 and all work as expected, except the linking from ninja, that break because cannot find printf. Is absolutely cool, better than my last toolchain. Do you kno

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
in the environment you are using it doesn't even > know how to use cl.exe to even determine with compiler it is. Maybe not > all the proper environment variables and paths are being set correctly when > using the compiler. > > -- > F > > On Tue, Sep 17, 2019, at 3:11 PM, Jo

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
my brief research, it looks like the Microsoft version of CMake may > have Ninja support. > > > https://devblogs.microsoft.com/cppblog/cmake-support-in-visual-studio-whats-new-in-2017-15-3-update/ > > > Regards, > > Juan > > On Tue, Sep 17, 2019 at 1:36 PM Joao

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
gt; Visual Studio 14 2015 Win64Specify target platform x64.Visual Studio 14 > 2015 ARMSpecify target platform ARM. > > > Regards, > > Juan > > > On Tue, Sep 17, 2019 at 7:18 AM Joao Pedro Abreu De Souza < > jp_ab...@id.uff.br> wrote: > >> cl from visual st

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Joao Pedro Abreu De Souza
cl from visual studio 2017. Em ter, 17 de set de 2019 03:26, Stéphane Ancelot escreveu: > Hi, > > That first depends on which compiler you will use ? > > Regards, > > S.Ancelot > Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a écrit : > > Hi guys. I am try

[CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-16 Thread Joao Pedro Abreu De Souza
Hi guys. I am trying to generate,using cmake, a executable with target Windows 32 bits using Windows 64 bits, but cannot find a standard toolchain file (I find to Linux, to Android, but can't find to Windows 32 bits) to build. Do you know some repository of toolchain files that has Windows 32 bits