Recent

Author Topic: Creating a executable on Windows for Linux  (Read 3692 times)

rafaelfm

  • New member
  • *
  • Posts: 7
Creating a executable on Windows for Linux
« on: November 23, 2011, 04:28:13 pm »
how to create an executable on windows to linux?
I tried:
Project/Project Options/Code Generation   
Target Platform =Linux
Target CPU Family= arm
Target CPU = Default

Am I Right? Have I to Install in linux to convert my project?

Thank You!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Creating a executable on Windows for Linux
« Reply #1 on: November 23, 2011, 04:49:51 pm »
Check the wiki for articles on cross compiling (as that is the term for what you are asking). The forum also has a lot of posts on this.
It's often easier to have a virtual machine with linux on it, and compile there, because you'll have to test the software anyway...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Martin V

  • Full Member
  • ***
  • Posts: 139
Re: Creating a executable on Windows for Linux
« Reply #2 on: November 25, 2011, 04:09:49 pm »
...or installing a native linux in addition to Windows. Linux reads and writes your Windows partitions, so it is sufficient to have your program source data at one place where you compile it both for Linux and Windows. You should also think about installing both a 32 bit and a 64 bit variant of Linux.

 

TinyPortal © 2005-2018