comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: pkg-config and GPRBuild
Date: Wed, 5 Apr 2017 09:42:25 +0200
Date: 2017-04-05T09:42:25+02:00	[thread overview]
Message-ID: <oc2751$t5i$1@gioia.aioe.org> (raw)
In-Reply-To: 571e1c1f-2037-40fd-8e46-3687ec5ac75d@googlegroups.com

On 05/04/2017 04:16, Brian Kolden wrote:

> I am using openCV for a project and I migrated from make to gprbuild
> because I am more familiar with it. However, the common method of
> compiling and linking while using openCV uses a call like "g++ -o test_1
> test_1.cpp `pkg-config opencv --cflags --libs`". I could figure out how
> to do the `pkg-config opencv --cflags --libs` call in gprbuild and
> resorted to hard coding all the library flags into the .gpr file.gprcl

I assume you are looking for additional linker flags? You can pass them 
to gprbuild. It would something like:

    gprbuild ... -largs `pkg-config opencv --libs`

A better method is to create a binary library project opencv.gpr and use 
it in your project. Usually for such projects gprguild figures all flags 
without need to resort to pkg-config.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2017-04-05  7:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  2:16 pkg-config and GPRBuild Brian Kolden
2017-04-05  7:42 ` Dmitry A. Kazakov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-04-05  2:21 Brian Kolden
replies disabled

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