Recent

Author Topic: (Solve) Use Lazarus compile x64 exe  (Read 7527 times)

nhatdung

  • New Member
  • *
  • Posts: 34
(Solve) Use Lazarus compile x64 exe
« on: June 30, 2010, 05:57:20 am »
Hello!
Please help me build x64 program with VCL, i only can use Lazarus to build console x64 app :( with VCL app i always got this message :
Code: [Select]
project1.lpr(6,28) Fatal: Can't find unit Interfaces used by project1(there a only one form with nothing)

I use Lazarus like this
Got from :
Quote
http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%200.9.28.2/lazarus-0.9.28.2-fpc-2.2.4-win32.exe/download
Install to "C:\lazarus"
Got FPC 2.2.4 win64 from
Quote
http://sourceforge.net/projects/freepascal/files/Win32/2.2.4/fpc-2.2.4.x86_64-win64.exe/download
and install to "C:\lazarus\fpc\2.2.4"

After that i rebuild lazarus with compiler "C:\lazarus\fpc\2.2.4\bin\i386-win32\ppcrossx64.exe"
BTW: i have to remove IDE build because it cause a error:
Quote
ipanim.pas(96,6) Fatal: Can't find unit LCLType used by IpAnim

« Last Edit: July 01, 2010, 04:24:53 am by nhatdung »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8103
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Please help use Lazarus compile x64 exe
« Reply #1 on: June 30, 2010, 10:04:14 pm »
You need to recompile LCL to x64 first (in configure lazarus build, check lcl only, then choose x64 as your architecture, rebuild). Make sure you set the compiler in environment options as fpc (not ppc386).

nhatdung

  • New Member
  • *
  • Posts: 34
Re: Please help use Lazarus compile x64 exe
« Reply #2 on: July 01, 2010, 04:24:33 am »
Thanks for reply!
I just remove "With Package" and it work fine now  8)