Recent

Author Topic: Cannot run project with win64 target  (Read 3457 times)

markus_ja

  • New Member
  • *
  • Posts: 43
Cannot run project with win64 target
« on: May 25, 2016, 11:13:08 am »
Hello,

I installed lazarus from getlazarus.org (lazarus 1.7 with fpc 3.0). I can run my project as win32 application, but when I switch the target to win64, it compiles but get a debugger error message: "not in executable format: File format not recognized".

I already read, that I need the win64 debugger, but don't know how?

Thaddy

  • Hero Member
  • *****
  • Posts: 14214
  • Probably until I exterminate Putin.
Re: Cannot run project with win64 target
« Reply #1 on: May 25, 2016, 11:24:47 am »
My option is by no means the ONLY option, but I have a full install of Cygwin64, including a 64 bit GDB, that works OK of Lazarus can find it or you can use stand-alone.

So my advice is: install cygwin64 (for multiple other reasons as well) if you are using a 32 bit Lazarus on a 64 bit windows system.

The other option is to install a full 64 bit Lazarus/FPC

Note that I build Lazarus and FPC with the forced option GDBMI=1 which is not (yet) the default.
GDB/MI will be found automatically by Lazarus for either 32 bit or 64 bit.
« Last Edit: May 25, 2016, 11:31:46 am by Thaddy »
Specialize a type, not a var.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Cannot run project with win64 target
« Reply #2 on: May 25, 2016, 03:40:02 pm »
Go to the Lazarus download site on Sourceforge (menu on the left side of this forum).

In the win64 directory is an entry alternative gdb, which contains a suitable gdb.

An other version of gdb comes with the "add on installer for 64 bits" or the "full 64 bits installer"

markus_ja

  • New Member
  • *
  • Posts: 43
Re: Cannot run project with win64 target
« Reply #3 on: May 26, 2016, 11:54:43 am »
Thanks. I just installed the 64 bit version, and now it works.

 

TinyPortal © 2005-2018