Making a 32bit with a 64bit. lazarus / 11-Options ---------------------------------------------------------------------- Bazzao · 2020-09-28 06:44 I am trying to compile an application to run in an XP virtual machine. In Project Options: I make a new build mode "32bit". I select: * Target OS = Win32 * Target CPU family = (Default) * Target processor = (Default) And I get Error: Illegal parameter -Twin32 ---------------------------------------------------------------------- PascalDragon · 2020-09-28 07:14 I assume you use a 64-bit Lazarus: do you have a i386 cross compiler together with the units for Win32 installed? If you're on Windows you can download the i386-win32 addon and install it. ---------------------------------------------------------------------- Thaddy · 2020-09-28 07:21 Note you can view the supported targets by running:Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i fpc -itIf it does not list WIN32 as target, then you need the addon. ---------------------------------------------------------------------- Bazzao · 2020-09-28 07:37 Thaddy's done it again. Nope. I have to get the addon. Thanks both PascalDragon and Thaddy. ---------------------------------------------------------------------- Bazzao · 2020-09-28 07:42 Looks like I have to upgrade Lazarus. Should I delete it first? I run [yuk] Windows. ---------------------------------------------------------------------- lucamar · 2020-09-28 10:31 IIRC the Windows installer will detect a previous installation and ask you whether you want to uninstall it first or do a secondary installation, so there should be no need for you to do it manually. HTH. ---------------------------------------------------------------------- Thaddy · 2020-09-28 10:37 Quote from: lucamar on September 28, 2020, 12:31:38 pmIIRC the Windows installer will detect a previous installation and ask you whether you want to uninstall it first or do a secondary installation, so there should be no need for you to do it manually. HTH. Last time I checked: no, it does not remove the hidden .lazarus directory. ---------------------------------------------------------------------- Bazzao · 2020-09-28 21:47 Good feedback lucamar & Thaddy. I am using Windows, and there appears, using non microsoft software, to be no ".Lazarus" directory. I actually have my Lazarus application directory as C:\Lazarus, and my projects on another drive. ---------------------------------------------------------------------- Bazzao · 2020-09-29 03:28 Installed Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64. Installed lazarus-2.0.10-fpc-3.2.0-cross-i386-win32-win64 But "fpc -it" is not showing Win32. Evidently something must be manually done, but where's the instructions? ---------------------------------------------------------------------- PascalDragon · 2020-09-29 07:12 You need to use fpc -Pi386 -it, cause the default in your case is the 64-bit one and that only lists the targets of the 64-bit compiler. ---------------------------------------------------------------------- Bazzao · 2020-09-29 07:19 Ta, I shall look into that as soon as I solve the upgrade issues. I will have to make it an option for the project, not a global, as at this stage, only 1 project is for XP. ---------------------------------------------------------------------- Bazzao · 2020-09-29 23:20 All is looking good. I ran the -Pi386 -it command, then configured my 32bit build move in Project Options, compiled, then copied the .exe to the XP VM, and ran it. Looks good. With the troubles I experienced with the Lazarus upgrade, I would recommend deleting it first. I was jumping from ... [at this stage I opened up an old thread, and found my profile is the recently changed one, not the original when posted. My intention was to get the previous versions numners of Lazarus & FPC] ... Anyway Lazarus was 1. something. Thanks to all.