Recent

Author Topic: Compiling 32bit application  (Read 2919 times)

amir.eng

  • Full Member
  • ***
  • Posts: 101
Compiling 32bit application
« on: December 11, 2021, 10:45:17 am »
Hello everyone,
I have installed "lazarus-2.0.12-fpc-3.2.0-win64" on 64 bit windows, I created a simple program and it works on my 64 bit system without any problem, but I get this error after running on 32 bit system :

"This app can't run on your pc"

I also changed config of lazarus as uploaded image. but I'm getting the "Debugger Invalid" error.

Is it possible to create 32bit version from 64bit windows ?? I heared that Lazarus is Cross Platform.

 
« Last Edit: December 11, 2021, 10:47:28 am by amir.eng »
Lazarus 3.0 , FPC 3.2.2 , Windows 10 64, Excel 2016 64

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: Compiling 32bit application
« Reply #1 on: December 11, 2021, 11:32:43 am »
It is possible to create 32bit version.

But, first try to run with Run --> Run without Debugging (Shift + Ctrl + F9). It looks like you need 32 bit gdb.

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: Compiling 32bit application
« Reply #2 on: December 11, 2021, 11:42:40 am »
You can download 32-bit gdb from here: https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/gdb/ (download second one: i686-w64-mingw32-gdb-7.1.90.20100730.zip).

Then unpack it somewhere and find gdb.exe in i686-w64-mingw32-gdb-7.1.90.20100730\mingw32\bin.
Copy it and put it in C:\lazarus\mingw\i386-win32\bin (you already should have C:\lazarus\mingw\x86_64-win64\bin\gdb.exe which is 64-bit version).

Maybe there is a simpler way to do this, but I did it like this and it works for me.

 

TinyPortal © 2005-2018