Recent

Author Topic: how compile source made with lazarus from command line???  (Read 6499 times)

inky

  • New Member
  • *
  • Posts: 41
    • github
how compile source made with lazarus from command line???
« on: April 06, 2004, 04:10:00 pm »
And which packages I should install on FreeBSD to compile source made with lazarus under linux???

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2574
how compile source made with lazarus from command line???
« Reply #1 on: April 07, 2004, 02:42:39 pm »
Hmm... this was a FAQ but I can't find it anymore.

To compile yoiur project from the command line, you have to pass the same arguments as Lazarus does. When you compile in Lazarus, you can see the command on the console.

To make it easier, you can add the -Fu -Fi etc. directives to your fpc.cfg.

something like:
-Fu/usr/src/lazarus/lcl/units/i386/$target
-Fu/usr/src/lazarus/lcl/units/i386/$target/gtk
-Fu/usr/src/lazarus/components/units/i386/$target
-Fu/usr/src/lazarus/ideintf/units/i386/$target
-Fu/usr/src/lazarus/ideintf/units
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
how compile source made with lazarus from command line???
« Reply #2 on: April 28, 2004, 06:29:19 pm »
Hi, I'm new on Lazarus, and about this topic I like to know... Its possible to create programs on Linux with Lazarus and  then compile it from command line on Win, without  complete installation of Lazarus for Win, just the LCL?

Sorry for my poor english :)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2574
how compile source made with lazarus from command line???
« Reply #3 on: April 29, 2004, 01:41:12 pm »
You even can build the win32 apps on linux
see http://www.stack.nl/~marcov/buildfaq.pdf
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

andi

  • Newbie
  • Posts: 4
how compile source made with lazarus from command line???
« Reply #4 on: April 30, 2004, 08:59:01 pm »
Great!!!! So much better :)

Thanks for you help Marc

(again... sorry for my english, I'm a brasilian developer and I really need to learn this language, hehe :D)

 

TinyPortal © 2005-2018