Install both Lazarus 32 bits and Lazarus 64 bits ? lazarus / 1-Linux ---------------------------------------------------------------------- Fred vS · 2011-09-22 13:59 Hello everybody. I just have install Ubuntu 64 bits on my machine. Is it possible to install 2  versions of Lazarus, the 32 bits and the 64 bits version ? Or is it better to install only Lazarus 64 bits and compile the application to have a 32 bits and a other 64 bits version (but how to do that ?) ? Many thanks for the answers. ---------------------------------------------------------------------- Leledumbo · 2011-09-23 07:05 Yes, it's possible, but I'd rather choose the 2nd option since 64-bit platforms could run 32-bit applications. ---------------------------------------------------------------------- Fred vS · 2011-09-24 01:37 @ Leledumbo Thanks for your answer. I have installed Lazarus 64 bits on a fresh Ubuntu 64 bits OS. OK, i can compile my old 32 bits application into a beautiful new 64 bits app  Now, how can i compile it back into a 32 bits application ? I do not have find the way in fora or wikis.  PS: I have also installed Virtual Box with a Ubuntu 32 bits and Lazarus 32 bits on it but... it is lots of work to transfer files between both systems and very slow.    (but i agree, it works). I prefer to do all the work on only one system with cross-compiling from 64 bits to 32 bits (but how?). ---------------------------------------------------------------------- dkjMusic · 2011-09-24 08:53 I installed Lazarus 32-bit via CodeTyphon on my 32-bit Windows 7. In the upper right corner there is a button with "32" on it and the hint says "Click to select IDE target layer"!! I'm guessing that if you install 64-bitCodeTyphon, you get two buttons, one of which might say... :-) But I'm only guessing. ---------------------------------------------------------------------- joseme · 2011-09-24 12:18 Yes, it is correct. I installed CodeTyphon 64 on my machine, now I have two Lazarus icons on my desktop, one 32 and one 64 bits. ---------------------------------------------------------------------- Fred vS · 2011-09-24 12:57 @ Joseme and dkjmusic Thanks for your answers. I do not have any problems to install both version of Lazarus in Windows. I just change the directory of install (lazarus32 and lazarus64) and it works perfectly. This topic is about LINUX installation of both 32-64 lazarus version. ---------------------------------------------------------------------- Sternas Stefanos · 2011-09-24 14:24 For 32 and 64 bit lazarus in the same linux box, you must wait for next ubuntu 11.10 and next CodeTyphon 2.20 OpenSuse 11.4 (with multiarch at application execution level) at lab CT version has "dual personality" only for freepascal unit now... PS: How many Linux distributions support "multiarch" ? ---------------------------------------------------------------------- Rails · 2011-09-24 15:23 Quote from: Sternas Stefanos on September 24, 2011, 04:24:16 pmPS: How many Linux distributions support "multiarch" ? I don't know about other distros, but some form of  multiarch support has been in Debian Unstable since June. AFAIK, package manager support is now complete. A multiarch transition package is provided to help prepare a system for multiarch use. As I understand it, Debian and Ubuntu have been working cooperatively on multiarch deployment. A number of Debian developers are also active in Ubuntu, and vice versa, which helps. BTW, Debian Unstable is actually quite stable, so the absence of multiarch support in stable and testing really doesn't mean much. I estimate about half of all Debian desktop installations track unstable, with the majority of the rest tracking testing. Almost no one runs stable on their desktops; it's rock solid but too out of date for most users. Servers are another matter altogether. ---------------------------------------------------------------------- Sternas Stefanos · 2011-09-24 15:39 I have the same "picture" Sir I will test and Ubuntu 11.10 beta 2 multiarch ability, next days... Until now only OpenSuse has this (partial) ability, we will see... PS: We finish (90%) FreeBSD 32/64 CodeTyphon Layers       now we start and Solaris 32 Layer ---------------------------------------------------------------------- Leledumbo · 2011-09-25 13:23 QuoteNow, how can i compile it back into a 32 bits application ?As with other same questions: Build the cross compiler (ensure you have full fpc source code, indicated by the presence of 'compiler' folder instead of just 'rtl' and 'packages'), rtl and packages, and install them. Use OS_TARGET=linux CPU_TARGET=i386 when calling make, also the install target should be 'crossinstall' instead of just 'install' AFAIKBuild LCL for i386 (easily done from the IDE, but AFAIK nowdays you don't have to do this no more, since it would be automatically recompiled when project's target changes)Choose i386 target CPU in the compiler option, build, done ---------------------------------------------------------------------- Fred vS · 2011-09-25 13:34 @ Leledumbo May thanks, i gonna try it...