compile to linux under windows lazarus / 32-Linux ---------------------------------------------------------------------- Saylo_49 · 2019-04-06 18:59 hello I am using Lazarus 2.0 . 32 bit in windows 10 - 64b I saw in wiki (compile without lazarus) that it is possible to compile a project only by using Lazbuild and fpc and lcl (lazarus ide removing is harmless) So the question is is it possible to use Fpc for linux (as portable) alongside with lazarus and fpc windows installation or if possible if there is a lazarus windows installation to target linux only ---------------------------------------------------------------------- Leledumbo · 2019-04-06 19:28 Quote from: Saylo_49 on April 06, 2019, 08:59:23 pmis it possible to use Fpc for linux (as portable) alongside with lazarus and fpc windows installation Yes Quote from: Saylo_49 on April 06, 2019, 08:59:23 pmif there is a lazarus windows installation to target linux only No Do note that *nix platforms require target libraries to be present at compile time, so to make things easier, you might need to have a copy of /usr/lib directory (that has GTK/QT/whatever development libraries) from a distro that represents minimum Linux installation you expect to work with your compiled binaries. ---------------------------------------------------------------------- lucamar · 2019-04-06 19:31 First, you can't use Linux binaries on Windows: you would have to build (or download from somewhere and install) a cross-compiler, cross-binutils, etc. But the worst problem is not really the compiler or the tools: it's the miriad libraries needed that you can't install --at least not easily. Anyway, look in the wiki: Cross-compiling ---------------------------------------------------------------------- af0815 · 2019-04-06 20:21 You can crosscompile and crossdebug from win to most linux. But you have to understand the differences. This the first part, to create the cross tools a second. Not an easy way. ---------------------------------------------------------------------- Remy Lebeau · 2019-04-09 19:25 Quote from: lucamar on April 06, 2019, 09:31:56 pmFirst, you can't use Linux binaries on Windows Actually, in Windows 10 you can, if you install Microsoft's Windows Subsystem for Linux (WSL) component, which "is a collection of components that enables native Linux ELF64 binaries to run on Windows." ---------------------------------------------------------------------- mas steindorff · 2019-04-10 00:35 Quote from: Remy Lebeau on April 09, 2019, 09:25:17 pmActually, in Windows 10 you can, if you install Microsoft's Windows Subsystem for Linux (WSL) component, which "is a collection of components that enables native Linux ELF64 binaries to run on Windows." I was going to suggest this but how do you access the Linux files from Lazarus running on windows that need to be linked in?