Cross compile from Win to linux lazarus / 61-Beginners ---------------------------------------------------------------------- jairgza · 2019-02-20 03:20 Hi all,  I'm new to linux and cross compile,   I build a simple console "Hello world" project and runs on windows,  then in project options changed the "Target OS" to linux,   I already have the cross libs  i386-linux and x86_64-linux Seems it compile  "Compile Project, OS: linux, Target: project1: Success"   but which is the executable ?  I copy the exe to an ubuntu vm and it does not run,  there is another file project1 (without extension)  , try that and it does not run either Using Lazarus 2.1.0 Any help would be appreciated ---------------------------------------------------------------------- Handoko · 2019-02-20 06:02 Hello jairgza, Welcome to the forum. The binary for Linux usually is the one without file extension. And make sure the file has set to "allow executing file as program" by right clicking the file > Permissions > enable the checkbox. ---------------------------------------------------------------------- jairgza · 2019-02-21 23:36 Thanks,  I realized that I was generating a 32bit instead of 64bits  (so in linux 64 can't run 32bits app) ---------------------------------------------------------------------- Cyrax · 2019-02-22 01:19 Quote from: jairgza on February 22, 2019, 12:36:05 amThanks,  I realized that I was generating a 32bit instead of 64bits  (so in linux 64 can't run 32bits app) 64-bit linux can run 32-bit linux apps easily. The only thing is that you need to install 32-bit libraries. And for Free Pascal made 32-bit programs, you need certain 32-bit libraries to have correct stack alignment built in (due to SSE extensions which they use) : https://bugs.freepascal.org/view.php?id=33425