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?

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

If I execute this on the command line, the compiler will say:

gdk2x.pas(45,2) Fatal: Can't open include file "gdk2x11includes.inc"
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

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

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

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??

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

Thanks a lot,

Felipe

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

Reply via email to