<div dir="ltr"><br><div>Mattias,</div><div><br></div><div>lazbuild does the work, but then i even want to get away from lazbuild dependency.</div><div>I muck around with fpcmake but then, it too can't really create a proper makefile project.</div><div>for some reasons, fpcmake failed to know where to locate the LCL gtk2 interface directory.</div><div>The best way is probably to do it manually, like autoconfigure and pkg-config.</div><div>Please share if you know of other ways.</div><div><br></div><div><br></div><div>thank you</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 30, 2015 at 4:17 PM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 30 Jan 2015 12:56:12 -0500<br>
Toan Pham <<a href="mailto:tpham3783@gmail.com">tpham3783@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
><br>
> When we compile an object-pascal/delphi project, we generally rely on<br>
> Lazarus to do the work.<br>
> Yet, normally Lazarus knows how a project is setup and knows link the<br>
> project with its run-time library. This is good, but not so good if you<br>
> want to compile the application without lazarus.<br>
><br>
><br>
> So, as an example, a object pascal project may have the following FPC_FLAGS:<br>
><br>
> -MObjFPC -Scghi -O1 -g -gl -vewnhi -Filib/i386-linux -Fl/opt/gnome/lib<br>
> -Fu/usr/lib/lazarus/1.2.4/lcl/units/i386-linux/gtk2<br>
> -Fu/usr/lib/lazarus/1.2.4/lcl/units/i386-linux<br>
> -Fu/usr/lib/lazarus/1.2.4/components/lazutils/lib/i386-linux<br>
> -Fu/usr/lib/lazarus/1.2.4/packager/units/i386-linux -Fu. -FUlib/i386-linux<br>
> -l -dLCL -dLCLgtk2<br>
><br>
> These directives are the equivalent of C++/C, compile and link flags.<br>
> Typically we call pkg-config to find out the flags when we compile a c/C++<br>
> application. Is there a lazarus/fpc utility that is equivalent to<br>
> pkg-config that would allow me to find out these flags at compile/configure<br>
> time?<br>
><br>
> I really want to be able to build a project without lazarus, and on<br>
> different machine machines.<br>
<br>
</div></div>You can use lazbuild to build without the IDE. You can build lazbuild<br>
on machines without GUI libraries:<br>
make lazbuild<br>
<br>
<br>
Mattias<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</blockquote></div><br></div>