From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,957ea3d057ecc0de,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.129.69 with SMTP id nu5mr1085906pbb.3.1336074370032; Thu, 03 May 2012 12:46:10 -0700 (PDT) Path: pr3ni393pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Patrick Newsgroups: comp.lang.ada Subject: Help with my first GPRbuild file please Date: Thu, 3 May 2012 12:44:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2622641.1774.1336074277508.JavaMail.geo-discussion-forums@vbq19> NNTP-Posting-Host: 70.51.153.250 Mime-Version: 1.0 X-Trace: posting.google.com 1336074369 1715 127.0.0.1 (3 May 2012 19:46:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 May 2012 19:46:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.51.153.250; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-05-03T12:44:37-07:00 List-Id: 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 pk= g-config is used. I tried putting `pkg-config --cflags gstreamer-0.10 --li= bs gstreamer-0.10` in the compiler switches attribute but it failed. I trie= d copying in the results of copying pkg-config into my gpr file but it fail= ed 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/gli= b-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 =20 -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",= =20 "-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, ar= e they not passed to the OS for execution? Why is the command failing with = GPRbuild but fine by itself? Thanks for reading