× CodeTyphon Cross-Build Development, discussions and problems

Question Lazarus x86 build on x64 windows

  • Konstantinos Papadoulas
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago - 11 years 1 month ago #283 by Konstantinos Papadoulas
Lazarus x86 build on x64 windows was created by Konstantinos Papadoulas
Hi,

using the latest CodeTyphon i have build the FPC and Lazarus for 64bits (i have Win7 x64).
It works perfectly!

After that, i also built FPC 32bits and after that Lazarus 32bits, but when i select the 32bit Lazarus from the
CodeTyphon ide it starts Lazarus 64bits with settings for FPC 64bits too...

So I changed the settings of Lazarus and saved them using the CodeTyphon menu "Lazarus\User Settings Save". When started Lazarus again
it had the default x64 config... Even when i tried to restore the settings nothing happend. Instead the Lazarus x64 settings
went to default....

I found out that actually exists a Lazarus 32bits IDE in the folder "{CodeTyphon path}\binSettings\win32"
but it is not the one that gets copied when i select the 32bit Lazarus ide..

Suggestions?

Kostas
Last edit: 11 years 1 month ago by Konstantinos Papadoulas.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
11 years 1 month ago - 11 years 1 month ago #284 by Sternas Stefanos
Replied by Sternas Stefanos on topic Re: Lazarus x86 build on x64 windows
Remove from C:\Lazarus\
xxlazarusWin64.txt or
xxlazarusWin32.txt

this file control the Lazarus IDE version (32 or 64bit)

and click in CodeTyphon App
CodeTyphon->Change lazarus IDE...

or Remove and Build lazarus from CodeTyphon App

PilotLogic Architect and Core Programmer
Last edit: 11 years 1 month ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • Konstantinos Papadoulas
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #285 by Konstantinos Papadoulas
Replied by Konstantinos Papadoulas on topic Re: Lazarus x86 build on x64 windows
Removing the .txt files didn't do the work... i will try to rebuild Lazarus starting with the 32bit first...

i'll be back with news...

Kostas

Please Log in or Create an account to join the conversation.

  • Konstantinos Papadoulas
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago - 11 years 1 month ago #286 by Konstantinos Papadoulas
Replied by Konstantinos Papadoulas on topic Re: Lazarus x86 build on x64 windows
Ok... this morning i have finished the installation of CodeTyphon and here is the installation procedure:

1)Unzipped the CodeTyphon in my C: drive (C:\CodeTyhpon)
2)Build the FPC 32bits
3)Build the FPC arm-wince
4)Build Lazarus 32bit
5)Build Lazarus arm-wince
6)Run Lazarus 32bit to make sure the IDE is in 32bits and the compiler settings are also 32bit.
I have also built 1 Win32 project. Everything OK!
7)Build FPC 64bits
8)Build Lazarus 64bits
9)Run Lazarus 64bit to make sure the IDE is in 64bits and the compiler settings are also 64bit.
I have also built 1 Win64 project. Everything OK!

now...

switching back to Lazarus 32bit the settings had been reset. I changed them again and OK.
Only the wince "Interface" unit cannot be found from the Lazarus 32bit. My project settings
are set accordingly for WinCE output (LCL Widget type=wince(beta), Target OS=WinCE, Target CPU family=arm)
but yet nothing.

So i added the line "C:\lazarus\lcl\interfaces\wince\" in the Other Unit Files path. Pressing the OK
button i got an error:
"The unit search path contains a not existing directory:
C:\lazarus\lcl\units\arm-wince\wince\"
pressing "Ignore" on this one the application compiled successfully!

So it seems that everything went OK. The key was to start building the environments from the smaller (32bits)
to the biggest (64bits) and add the "C:\lazarus\lcl\interfaces\wince\" in the Other Unit Files path for every WinCE project i create.

Kostas
Last edit: 11 years 1 month ago by Konstantinos Papadoulas.

Please Log in or Create an account to join the conversation.