Recent

Author Topic: <solved> from 32 bit to 64 bit same OS how to?  (Read 2674 times)

userx-bw

  • Full Member
  • ***
  • Posts: 178
<solved> from 32 bit to 64 bit same OS how to?
« on: April 10, 2015, 07:46:36 pm »
instead of having to rewrite the whole program --

I got a program I wrote with Lazarus when I was running a 32 bit Linux (Debian Base) now that I got a 64 bit Linux (Debian Base) it tells me this when I open up that same program


Compiler "/usr/bin/fpc" does not support target i386-linux


it seems to me that their should just be a line of "code" or directive somewhere in some file that I don't know about that I just need to change so it knows how to compile it with this 64 bit now.

all in linux btw
« Last Edit: April 10, 2015, 10:29:12 pm by userx-bw »
My Finished Projects
https://sourceforge.net/projects/mhsetroot/
https://sourceforge.net/projects/gmhsetrootfreepascalfrontend/

HP Elitetbook 6930p Dual Core Intel vPro 2.66 gHz
VOID (Linux) 64bit

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: from 32 bit to 64 bit same OS how to?
« Reply #1 on: April 10, 2015, 09:40:39 pm »
Sorry, I can't check with Linux, but i guess it's probably similar with all OS.

Have you checked the "Target platform" of your project ?

Project -> Project Options -> Config and Target (see capture.png).

Anyway, I guess these options are also (i.e. also for Linux) stored into the .lpi file of the project: stored, if not the "Default" value are selected inside the "Target platform", of course.

For instance:
Code: [Select]
    <CodeGeneration>
      <TargetCPU Value="powerpc"/>
      <TargetOS Value="linux"/>
      <Optimizations>
        <OptimizationLevel Value="3"/>
      </Optimizations>
    </CodeGeneration>
« Last Edit: April 10, 2015, 09:45:54 pm by ChrisF »

userx-bw

  • Full Member
  • ***
  • Posts: 178
thank you -- I knew it was and had to be a simple matter to take care of it -- thanks for helping my brain ---  :-\
My Finished Projects
https://sourceforge.net/projects/mhsetroot/
https://sourceforge.net/projects/gmhsetrootfreepascalfrontend/

HP Elitetbook 6930p Dual Core Intel vPro 2.66 gHz
VOID (Linux) 64bit

 

TinyPortal © 2005-2018