On Fri, 24 Mar 2006 09:58:36 -0300
Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I am trying to create a RPM package for the Virtual Magnifying Glass 
> (magnifier.sourceforge.net) that complies to the rules of Fedora Extras 
> repository. What is the status of the inclusion of Lazarus on Fedora
> Extras?

I never tried. What do they need? A rpm plus what?

 
> The software must be built from command line on the spec, and I am 
> having problems compiling it.
> 
> Here is my build section:
> 
> %build
> fpc -S2cgi -OG1 -gl -WG -vewnhi -l 
> -Fu/usr/lib/lazarus/components/opengl/gtk2x11/ 
> -Fu/usr/lib/lazarus/components/opengl/gtk2x11/include/ 
> -Fu/usr/lib/lazarus/components/jpeg/ 
> -Fu/usr/lib/lazarus/lcl/units/i386-linux/ 
> -Fu/usr/lib/lazarus/lcl/units/i386-linux/ 
> -Fu/usr/lib/lazarus/lcl/units/i386-linux/gtk2/ 
> -Fu/usr/lib/lazarus/packager/units/i386-linux/ -Fu. -o./magnifier -dLCL 
> -dLCLgtk2 magnifier.dpr

I'm no rpm expert, but did you try to replace /usr/lib/ with %{_libdir}.

 
> If I execute this on the command line, the compiler will say:
> 
> gdk2x.pas(45,2) Fatal: Can't open include file "gdk2x11includes.inc"

The gtk2x11/include/ is an include directory. Use -Fi instead of -Fu.


> gdk2x.pas(55,24) Fatal: Compilation aborted
> 
> But I'm pretty sure that gdk2x11includes is located at 
> /usr/lib/lazarus/components/opengl/gtk2x11/include/ and that is added as 
> a -Fu

Not -Fu.

 
> Do I need to compile that package and then compile my software??

That is only needed, if your package should be usable by other packages.

 
> How can I compile a lazarus package on the command line??

Create a Makefile. This option is in the compiler options of each package.

 
> Another problem: This command line has a lot of i386-linux hardcoded 
> directories, so it won't ever work for x86_64. Is there a better way to 
> create a build section that support multiple architectures??

Yes, the Makefile.

 
> I added the full spec on the wiki as a example for anyone that wants to 
> use it: 
> http://wiki.lazarus.freepascal.org/index.php/Deploying_Your_Application


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to