You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Oleksandr Rudyy <or...@gmail.com> on 2018/03/19 17:15:08 UTC

qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Hi,

Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
with building cpp broker. The job was building qpid-cpp broker
successfully before 15th of March.

The jobs installs proton into non-standard location and sets
PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.

However, cmake fails to find proton and reports the following error:

CMake Error: The following variables are used in this project, but
they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
Proton_LIBRARY
    linked by target "amqp" in directory
/home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-Test/qpid-cpp/src
    linked by target "qpidmessaging" in directory
/home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-Test/qpid-cpp/src

What is interesting, that when both qpid broker and proton have the
same install prefix, proton is found successfully by cmake.


I can change the job to build qpid and proton with the same install
prefix, though, I would like to clarify whether the build scripts have
been changed intentionally  and setting of PKG_CONFIG_PATH as
described in INSTALL.txt is not supported any-more.

I built on Fedora 27. Jenkins job is running on Ubuntu.
For both environments the same cmake error is reported with PKG_CONFIG_PATH.

Kind Regards,
Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Posted by Robbie Gemmell <ro...@gmail.com>.
I just tried things again locally also and it all worked this time,
thanks Justin.

Robbie

On 22 March 2018 at 12:02, Oleksandr Rudyy <or...@gmail.com> wrote:
> Justin,
>
> Thanks for fixing the issue. The jenkins job is building cpp-broker
> successfully after your change.
>
> On 21 March 2018 at 22:11, Justin Ross <ju...@gmail.com> wrote:
>> Alex, with the following change now on master, the pkg-config based build
>> is working for me.
>>
>> https://github.com/apache/qpid-cpp/commit/f14f1bc162c4f4249d6397cbf1ee2522074dc17a
>>
>> On Mon, Mar 19, 2018 at 2:20 PM, Justin Ross <ju...@gmail.com> wrote:
>>
>>> Seems likely that it's this change of mine.
>>>
>>> https://github.com/apache/qpid-cpp/commit/b18583a6c05d0bb8cb9502f0823d90
>>> 2e17b2410e
>>>
>>> I'll try to reproduce and see if this really the cause.
>>>
>>> On Mon, Mar 19, 2018 at 12:28 PM, Robbie Gemmell <robbie.gemmell@gmail.com
>>> > wrote:
>>>
>>>> I see the same thing on Fedora 26 too. There have been cmake-related
>>>> changes on qpid-cpp and qpid-proton masters in recent days, its not
>>>> immediately clear to me whether it is one or the other, or both.
>>>>
>>>> On 19 March 2018 at 17:15, Oleksandr Rudyy <or...@gmail.com> wrote:
>>>> > Hi,
>>>> >
>>>> > Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
>>>> > with building cpp broker. The job was building qpid-cpp broker
>>>> > successfully before 15th of March.
>>>> >
>>>> > The jobs installs proton into non-standard location and sets
>>>> > PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.
>>>> >
>>>> > However, cmake fails to find proton and reports the following error:
>>>> >
>>>> > CMake Error: The following variables are used in this project, but
>>>> > they are set to NOTFOUND.
>>>> > Please set them or make sure they are set and tested correctly in the
>>>> > CMake files:
>>>> > Proton_LIBRARY
>>>> >     linked by target "amqp" in directory
>>>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>>>> Test/qpid-cpp/src
>>>> >     linked by target "qpidmessaging" in directory
>>>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>>>> Test/qpid-cpp/src
>>>> >
>>>> > What is interesting, that when both qpid broker and proton have the
>>>> > same install prefix, proton is found successfully by cmake.
>>>> >
>>>> >
>>>> > I can change the job to build qpid and proton with the same install
>>>> > prefix, though, I would like to clarify whether the build scripts have
>>>> > been changed intentionally  and setting of PKG_CONFIG_PATH as
>>>> > described in INSTALL.txt is not supported any-more.
>>>> >
>>>> > I built on Fedora 27. Jenkins job is running on Ubuntu.
>>>> > For both environments the same cmake error is reported with
>>>> PKG_CONFIG_PATH.
>>>> >
>>>> > Kind Regards,
>>>> > Alex
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>>> > For additional commands, e-mail: users-help@qpid.apache.org
>>>> >
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>>
>>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Posted by Oleksandr Rudyy <or...@gmail.com>.
Justin,

Thanks for fixing the issue. The jenkins job is building cpp-broker
successfully after your change.

On 21 March 2018 at 22:11, Justin Ross <ju...@gmail.com> wrote:
> Alex, with the following change now on master, the pkg-config based build
> is working for me.
>
> https://github.com/apache/qpid-cpp/commit/f14f1bc162c4f4249d6397cbf1ee2522074dc17a
>
> On Mon, Mar 19, 2018 at 2:20 PM, Justin Ross <ju...@gmail.com> wrote:
>
>> Seems likely that it's this change of mine.
>>
>> https://github.com/apache/qpid-cpp/commit/b18583a6c05d0bb8cb9502f0823d90
>> 2e17b2410e
>>
>> I'll try to reproduce and see if this really the cause.
>>
>> On Mon, Mar 19, 2018 at 12:28 PM, Robbie Gemmell <robbie.gemmell@gmail.com
>> > wrote:
>>
>>> I see the same thing on Fedora 26 too. There have been cmake-related
>>> changes on qpid-cpp and qpid-proton masters in recent days, its not
>>> immediately clear to me whether it is one or the other, or both.
>>>
>>> On 19 March 2018 at 17:15, Oleksandr Rudyy <or...@gmail.com> wrote:
>>> > Hi,
>>> >
>>> > Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
>>> > with building cpp broker. The job was building qpid-cpp broker
>>> > successfully before 15th of March.
>>> >
>>> > The jobs installs proton into non-standard location and sets
>>> > PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.
>>> >
>>> > However, cmake fails to find proton and reports the following error:
>>> >
>>> > CMake Error: The following variables are used in this project, but
>>> > they are set to NOTFOUND.
>>> > Please set them or make sure they are set and tested correctly in the
>>> > CMake files:
>>> > Proton_LIBRARY
>>> >     linked by target "amqp" in directory
>>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>>> Test/qpid-cpp/src
>>> >     linked by target "qpidmessaging" in directory
>>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>>> Test/qpid-cpp/src
>>> >
>>> > What is interesting, that when both qpid broker and proton have the
>>> > same install prefix, proton is found successfully by cmake.
>>> >
>>> >
>>> > I can change the job to build qpid and proton with the same install
>>> > prefix, though, I would like to clarify whether the build scripts have
>>> > been changed intentionally  and setting of PKG_CONFIG_PATH as
>>> > described in INSTALL.txt is not supported any-more.
>>> >
>>> > I built on Fedora 27. Jenkins job is running on Ubuntu.
>>> > For both environments the same cmake error is reported with
>>> PKG_CONFIG_PATH.
>>> >
>>> > Kind Regards,
>>> > Alex
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> > For additional commands, e-mail: users-help@qpid.apache.org
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>
>>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Posted by Justin Ross <ju...@gmail.com>.
Alex, with the following change now on master, the pkg-config based build
is working for me.

https://github.com/apache/qpid-cpp/commit/f14f1bc162c4f4249d6397cbf1ee2522074dc17a

On Mon, Mar 19, 2018 at 2:20 PM, Justin Ross <ju...@gmail.com> wrote:

> Seems likely that it's this change of mine.
>
> https://github.com/apache/qpid-cpp/commit/b18583a6c05d0bb8cb9502f0823d90
> 2e17b2410e
>
> I'll try to reproduce and see if this really the cause.
>
> On Mon, Mar 19, 2018 at 12:28 PM, Robbie Gemmell <robbie.gemmell@gmail.com
> > wrote:
>
>> I see the same thing on Fedora 26 too. There have been cmake-related
>> changes on qpid-cpp and qpid-proton masters in recent days, its not
>> immediately clear to me whether it is one or the other, or both.
>>
>> On 19 March 2018 at 17:15, Oleksandr Rudyy <or...@gmail.com> wrote:
>> > Hi,
>> >
>> > Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
>> > with building cpp broker. The job was building qpid-cpp broker
>> > successfully before 15th of March.
>> >
>> > The jobs installs proton into non-standard location and sets
>> > PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.
>> >
>> > However, cmake fails to find proton and reports the following error:
>> >
>> > CMake Error: The following variables are used in this project, but
>> > they are set to NOTFOUND.
>> > Please set them or make sure they are set and tested correctly in the
>> > CMake files:
>> > Proton_LIBRARY
>> >     linked by target "amqp" in directory
>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>> Test/qpid-cpp/src
>> >     linked by target "qpidmessaging" in directory
>> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-
>> Test/qpid-cpp/src
>> >
>> > What is interesting, that when both qpid broker and proton have the
>> > same install prefix, proton is found successfully by cmake.
>> >
>> >
>> > I can change the job to build qpid and proton with the same install
>> > prefix, though, I would like to clarify whether the build scripts have
>> > been changed intentionally  and setting of PKG_CONFIG_PATH as
>> > described in INSTALL.txt is not supported any-more.
>> >
>> > I built on Fedora 27. Jenkins job is running on Ubuntu.
>> > For both environments the same cmake error is reported with
>> PKG_CONFIG_PATH.
>> >
>> > Kind Regards,
>> > Alex
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> > For additional commands, e-mail: users-help@qpid.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>>
>>
>

Re: qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Posted by Justin Ross <ju...@gmail.com>.
Seems likely that it's this change of mine.

https://github.com/apache/qpid-cpp/commit/b18583a6c05d0bb8cb9502f0823d902e17b2410e

I'll try to reproduce and see if this really the cause.

On Mon, Mar 19, 2018 at 12:28 PM, Robbie Gemmell <ro...@gmail.com>
wrote:

> I see the same thing on Fedora 26 too. There have been cmake-related
> changes on qpid-cpp and qpid-proton masters in recent days, its not
> immediately clear to me whether it is one or the other, or both.
>
> On 19 March 2018 at 17:15, Oleksandr Rudyy <or...@gmail.com> wrote:
> > Hi,
> >
> > Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
> > with building cpp broker. The job was building qpid-cpp broker
> > successfully before 15th of March.
> >
> > The jobs installs proton into non-standard location and sets
> > PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.
> >
> > However, cmake fails to find proton and reports the following error:
> >
> > CMake Error: The following variables are used in this project, but
> > they are set to NOTFOUND.
> > Please set them or make sure they are set and tested correctly in the
> > CMake files:
> > Proton_LIBRARY
> >     linked by target "amqp" in directory
> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-
> Python-Test/qpid-cpp/src
> >     linked by target "qpidmessaging" in directory
> > /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-
> Python-Test/qpid-cpp/src
> >
> > What is interesting, that when both qpid broker and proton have the
> > same install prefix, proton is found successfully by cmake.
> >
> >
> > I can change the job to build qpid and proton with the same install
> > prefix, though, I would like to clarify whether the build scripts have
> > been changed intentionally  and setting of PKG_CONFIG_PATH as
> > described in INSTALL.txt is not supported any-more.
> >
> > I built on Fedora 27. Jenkins job is running on Ubuntu.
> > For both environments the same cmake error is reported with
> PKG_CONFIG_PATH.
> >
> > Kind Regards,
> > Alex
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: qpid-cpp cmake fails to find proton when PKG_CONFIG_PATH is set to non-standard /lib[64]/pkgconfig

Posted by Robbie Gemmell <ro...@gmail.com>.
I see the same thing on Fedora 26 too. There have been cmake-related
changes on qpid-cpp and qpid-proton masters in recent days, its not
immediately clear to me whether it is one or the other, or both.

On 19 March 2018 at 17:15, Oleksandr Rudyy <or...@gmail.com> wrote:
> Hi,
>
> Jenkins job Qpid-Broker-J-Python-Test started to fail due to an issue
> with building cpp broker. The job was building qpid-cpp broker
> successfully before 15th of March.
>
> The jobs installs proton into non-standard location and sets
> PKG_CONFIG_PATH as specified in qpid-cpp INSTALL.txt.
>
> However, cmake fails to find proton and reports the following error:
>
> CMake Error: The following variables are used in this project, but
> they are set to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the
> CMake files:
> Proton_LIBRARY
>     linked by target "amqp" in directory
> /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-Test/qpid-cpp/src
>     linked by target "qpidmessaging" in directory
> /home/jenkins/jenkins-slave/workspace/Qpid-Broker-J-Python-Test/qpid-cpp/src
>
> What is interesting, that when both qpid broker and proton have the
> same install prefix, proton is found successfully by cmake.
>
>
> I can change the job to build qpid and proton with the same install
> prefix, though, I would like to clarify whether the build scripts have
> been changed intentionally  and setting of PKG_CONFIG_PATH as
> described in INSTALL.txt is not supported any-more.
>
> I built on Fedora 27. Jenkins job is running on Ubuntu.
> For both environments the same cmake error is reported with PKG_CONFIG_PATH.
>
> Kind Regards,
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org