comp.lang.ada
 help / color / mirror / Atom feed
* Help with my first GPRbuild file please
@ 2012-05-03 19:44 Patrick
  2012-05-03 20:00 ` sbelmont700
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick @ 2012-05-03 19:44 UTC (permalink / raw)


Hi Everyone

I am trying to move a makefile to GPRbuild. I am having some trouble with a C file. It includes the gstreamer library in some C code. In a Makefile pkg-config is used. I tried putting `pkg-config --cflags gstreamer-0.10  --libs gstreamer-0.10` in the compiler switches attribute but it failed. I tried copying in the results of copying pkg-config into my gpr file but it failed to.

If I copy the output when I run gpr:
gcc-4.4 -c -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2  
-pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lxml2 -lgthread-2.0 -lrt -lglib-2.0  audio_player.c

It works just fine

Here is my gpr file:

project C_Mess is
   for Languages    use ( "C");
   for Source_Files use ("audio_player.c");
package Compiler is

   for Switches ("audio_player.c") use ("-pthread",
                                        " -I/usr/include/glib-2.0",
                                        " -I/usr/lib/x86_64-linux-gnu/glib-2.0/include",
                                        " -I/usr/include/gstreamer-0.10", 
                                        "-I/usr/include/libxml2",
                                        "-pthread",
                                        " -lgstreamer-0.10",
                                        " -lgobject-2.0",
                                        " -lgmodule-2.0",
                                        " -lxml2",
                                        " -lgthread-2.0",
                                        " -lrt",
                                        " -lglib-2.0 " ) ;

end Compiler ;

end C_Mess;


Could someone help me firgure this out? If commands are being displayed, are they not passed to the OS for execution? Why is the command failing with GPRbuild but fine by itself?

Thanks for reading



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-03 21:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-03 19:44 Help with my first GPRbuild file please Patrick
2012-05-03 20:00 ` sbelmont700
2012-05-03 20:31   ` Patrick
2012-05-03 20:49     ` Ludovic Brenta
2012-05-03 20:49     ` Robert A Duff
2012-05-03 20:54       ` sbelmont700
2012-05-03 20:55       ` Patrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox