Recent

Author Topic: Install both Lazarus 32 bits and Lazarus 64 bits ?  (Read 14446 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3826
    • StrumPract is the musicians best friend
Install both Lazarus 32 bits and Lazarus 64 bits ?
« on: September 22, 2011, 03:59:10 pm »
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.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #1 on: September 23, 2011, 09:05:07 am »
Yes, it's possible, but I'd rather choose the 2nd option since 64-bit platforms could run 32-bit applications.

Fred vS

  • Hero Member
  • *****
  • Posts: 3826
    • StrumPract is the musicians best friend
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #2 on: September 24, 2011, 03:37:28 am »
@ 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?).

« Last Edit: September 24, 2011, 06:09:51 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

dkjMusic

  • Full Member
  • ***
  • Posts: 146
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #3 on: September 24, 2011, 10:53:59 am »
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.
Windows 7 Ultimate/32 bit;
Lazarus 0.9.31/Rev 33300;
FPC 2.7.1/Rev 19464;
GDB 7.0.50;
(via CodeTyphon 2.30)

joseme

  • Full Member
  • ***
  • Posts: 128
    • Logosoft sistemas
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #4 on: September 24, 2011, 02:18:14 pm »
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.
un aporte a la comunidad:
http://pascalylazarus.blogspot.com/

Fred vS

  • Hero Member
  • *****
  • Posts: 3826
    • StrumPract is the musicians best friend
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #5 on: September 24, 2011, 02:57:19 pm »
@ 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. :-X
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #6 on: September 24, 2011, 04:24:16 pm »
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" ?
« Last Edit: September 24, 2011, 04:35:49 pm by Sternas Stefanos »
CodeTyphon Architect and Programmer

Rails

  • Guest
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #7 on: September 24, 2011, 05:23:05 pm »
PS: 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

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #8 on: September 24, 2011, 05:39:12 pm »
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
« Last Edit: September 24, 2011, 05:43:22 pm by Sternas Stefanos »
CodeTyphon Architect and Programmer

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #9 on: September 25, 2011, 03:23:39 pm »
Quote
Now, 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' AFAIK
  • Build 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

  • Hero Member
  • *****
  • Posts: 3826
    • StrumPract is the musicians best friend
Re: Install both Lazarus 32 bits and Lazarus 64 bits ?
« Reply #10 on: September 25, 2011, 03:34:23 pm »
@ Leledumbo
May thanks, i gonna try it...
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018