Thank you Jiri for providing this information On Thu, Apr 1, 2021 at 2:00 AM Jiri Daněk <jda...@redhat.com> wrote:
> One helpful strategy. If in doubt how to build, look how the CI does it. > These commands run for every commit in CI, so it is likely they will work > and will be up to date. C stands for Continuous, after all. > > What you find may be needlessly complicated (you will see below), but > that's what works on the CI machine. > > Proton happens to have 4 different CI configs, for 4 different CIs (plus a > Jenkins CI job which is not checked into repo) > * > https://github.com/apache/qpid-proton/blob/main/.github/workflows/build.yml > * https://github.com/apache/qpid-proton/tree/main/azure-pipelines > * https://github.com/apache/qpid-proton/blob/main/.appveyor.yml > * https://github.com/apache/qpid-proton/blob/main/.travis.yml > > The relevant part for coverage is > > 1) install lcov, > > https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L140 > 2) set build type to Coverage, > > https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L97 > 3) make coverage, but that's not there, because the CI does this > differently (collects coverage data and uploads it to a service) > > https://github.com/apache/qpid-proton/blob/5d3473dd484090590863c0d87dea4ea91bba87dc/.travis.yml#L99 > > On Wed, Mar 31, 2021, 19:50 mehaboob shariff <mehaboob...@gmail.com> > wrote: > > > I am running it from the build directory. > > Can I know which distro of linux you are using? > > > > On Wed, Mar 31, 2021 at 11:08 PM Rakhi Kumari <rakhi.c...@gmail.com> > > wrote: > > > > > Hey mehaboob!! > > > Can you please tell us from which directory you are running the make > > > command? As I am not able to see the image that you have shared. > > > Btw I am running the make command from inside the build directory. > > > > > > On Wed, Mar 31, 2021 at 10:32 PM mehaboob shariff < > mehaboob...@gmail.com > > > > > > wrote: > > > > > > > So I removed the build directory and did the process again. > > > > This time I got this error > > > > [image: image.png] > > > > > > > > On Wed, Mar 31, 2021 at 10:23 PM mehaboob shariff < > > mehaboob...@gmail.com > > > > > > > > wrote: > > > > > > > >> Thank you Rakhi and Justin. > > > >> Rakhi I ran it in the similar sequence. But there seem to be other > > > issues > > > >> so im getting "make: *** No rule to make target 'coverage'. Stop." > > > >> > > > >> > > > >> On Wed, Mar 31, 2021 at 9:49 PM Justin Ross <justin.r...@gmail.com> > > > >> wrote: > > > >> > > > >>> Ah! Rakhi ninjaed me. ;) > > > >>> > > > >>> On Wed, Mar 31, 2021 at 12:17 PM Justin Ross < > justin.r...@gmail.com> > > > >>> wrote: > > > >>> > > > >>> > Here's the sequence I use: > > > >>> > > > > >>> > - cd qpid-proton > > > >>> > - mkdir bld > > > >>> > - cd bld > > > >>> > - cmake .. -DCMAKE_BUILD_TYPE=Coverage > > > >>> > - make build > > > >>> > > > > >>> > You don't need the CMakeLists.txt file where you run cmake > > > >>> (necessarily). > > > >>> > You need it for the source tree you are configuring (referenced > by > > > >>> ".." in > > > >>> > the cmake command above). > > > >>> > > > > >>> > On Wed, Mar 31, 2021 at 12:00 PM mehaboob shariff < > > > >>> mehaboob...@gmail.com> > > > >>> > wrote: > > > >>> > > > > >>> >> Could you provide some insights on how to configure the build > for > > > >>> coverage > > > >>> >> because when run the cmake it shows there is no CMakeList.txt > file > > > in > > > >>> the > > > >>> >> build directory. > > > >>> >> So I navigated to /build/CMakeFiles/CheckCXX and ran the command > > but > > > >>> there > > > >>> >> seems to be no output > > > >>> >> > > > >>> >> On Wed, Mar 31, 2021 at 7:45 PM mehaboob shariff < > > > >>> mehaboob...@gmail.com> > > > >>> >> wrote: > > > >>> >> > > > >>> >> > Tahnk you Justin, will get back to you if I face any troubles > > > >>> >> > > > > >>> >> > On Wed, Mar 31, 2021 at 6:59 PM Justin Ross < > > > justin.r...@gmail.com> > > > >>> >> wrote: > > > >>> >> > > > > >>> >> >> Hi, Mehaboob. Here's one to try: > > > >>> >> >> https://issues.apache.org/jira/browse/PROTON-2358 > > > >>> >> >> > > > >>> >> >> Please tell us about any obstacles you face. > > > >>> >> >> > > > >>> >> >> On Tue, Mar 30, 2021 at 4:56 PM mehaboob shariff < > > > >>> >> mehaboob...@gmail.com> > > > >>> >> >> wrote: > > > >>> >> >> > > > >>> >> >> > okay, thank you for the information > > > >>> >> >> > > > > >>> >> >> > On Wed, Mar 31, 2021 at 2:08 AM Justin Ross < > > > >>> justin.r...@gmail.com> > > > >>> >> >> wrote: > > > >>> >> >> > > > > >>> >> >> > > You don't have too, but in particular I think you may end > > up > > > >>> >> wanting > > > >>> >> >> the > > > >>> >> >> > > Python binding since some tests use it. > > > >>> >> >> > > > > > >>> >> >> > > On Tue, Mar 30, 2021 at 3:25 PM mehaboob shariff < > > > >>> >> >> mehaboob...@gmail.com> > > > >>> >> >> > > wrote: > > > >>> >> >> > > > > > >>> >> >> > > > Do we have to install the language bindings in the > > > >>> instructions. > > > >>> >> If > > > >>> >> >> not > > > >>> >> >> > > > then I have compiled the proton source repo > successfully > > > >>> >> >> > > > > > > >>> >> >> > > > > > > >>> >> >> > > > On Wed, Mar 31, 2021 at 12:51 AM Justin Ross < > > > >>> >> justin.r...@gmail.com > > > >>> >> >> > > > > >>> >> >> > > > wrote: > > > >>> >> >> > > > > > > >>> >> >> > > > > Okay, next is to use git to fetch the Qpid Proton C > > > source > > > >>> repo > > > >>> >> >> and > > > >>> >> >> > get > > > >>> >> >> > > > it > > > >>> >> >> > > > > building. > > > >>> >> >> > > > > > > > >>> >> >> > > > > The instructions are here: > > > >>> >> >> > > > > > > > >>> https://github.com/apache/qpid-proton/blob/master/INSTALL.md > > > >>> >> >> > > > > > > > >>> >> >> > > > > > > > >>> >> >> > > > > On Tue, Mar 30, 2021 at 2:39 PM mehaboob shariff < > > > >>> >> >> > > mehaboob...@gmail.com> > > > >>> >> >> > > > > wrote: > > > >>> >> >> > > > > > > > >>> >> >> > > > > > I'm using ubuntu 20.04 > > > >>> >> >> > > > > > > > > >>> >> >> > > > > > On Wed, Mar 31, 2021 at 12:07 AM Justin Ross < > > > >>> >> >> > justin.r...@gmail.com> > > > >>> >> >> > > > > > wrote: > > > >>> >> >> > > > > > > > > >>> >> >> > > > > > > Hi, Mehaboob. I spoke to you in private email as > > > well. > > > >>> >> What > > > >>> >> >> > kind > > > >>> >> >> > > of > > > >>> >> >> > > > > > > development environment do you have? > > > >>> >> >> > > > > > > > > > >>> >> >> > > > > > > On Tue, Mar 30, 2021 at 11:44 AM mehaboob > shariff < > > > >>> >> >> > > > > mehaboob...@gmail.com > > > >>> >> >> > > > > > > > > > >>> >> >> > > > > > > wrote: > > > >>> >> >> > > > > > > > > > >>> >> >> > > > > > > > Hello this is Mahaboob Shariff a CS undergrad. > I > > > >>> would > > > >>> >> like > > > >>> >> >> to > > > >>> >> >> > > > > > > participate > > > >>> >> >> > > > > > > > in the apache community for the outreachy > intern. > > > >>> >> >> > > > > > > > Can anyone help me with how to get started. > > > >>> >> >> > > > > > > > > > > >>> >> >> > > > > > > > > > >>> >> >> > > > > > > > > >>> >> >> > > > > > > > >>> >> >> > > > > > > >>> >> >> > > > > > >>> >> >> > > > > >>> >> >> > > > >>> >> > > > > >>> >> > > > >>> > > > > >>> > > > >> > > > > > >