<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 13, 2015 at 5:30 PM,  <span dir="ltr"><<a href="mailto:amarok-devel-request@kde.org" target="_blank">amarok-devel-request@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Amarok-devel mailing list submissions to<br>
        <a href="mailto:amarok-devel@kde.org">amarok-devel@kde.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.kde.org/mailman/listinfo/amarok-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/amarok-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:amarok-devel-request@kde.org">amarok-devel-request@kde.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:amarok-devel-owner@kde.org">amarok-devel-owner@kde.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Amarok-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: kf5 port(olivier) (Olivier Churlaud)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 13 Sep 2015 11:33:01 +0200<br>
From: Olivier Churlaud <<a href="mailto:olivier@churlaud.com">olivier@churlaud.com</a>><br>
To: <a href="mailto:amarok-devel@kde.org">amarok-devel@kde.org</a><br>
Subject: Re: kf5 port(olivier)<br>
Message-ID: <<a href="mailto:55F542CD.90509@churlaud.com">55F542CD.90509@churlaud.com</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
<br>
>> here's the output<br>
>> <a href="http://pastebin.com/5StyEUth" rel="noreferrer" target="_blank">http://pastebin.com/5StyEUth</a><br>
> Huuu.... Wait, it's not possible. My segfault doesn't happen in<br>
> handleCliArgs() but way after... It means that I left a bug, that<br>
> works on my system but not yours OR that something is wrong on your<br>
> side. Please investigate why this happen, I'll do this on my side too.<br>
<br>
Ok, in the code you have this:<br>
<br>
<br>
QCommandLineParser parser;<br>
parser.addVersionOption();<br>
parser.addHelpOption();<br>
<br>
aboutData.setupCommandLine(&parser);<br>
app.initCliArgs(&parser);<br>
parser.process(app);<br>
aboutData.processCommandLine(&parser);<br>
<br>
so normally, the parser is given in initCliArgs() to App, and the<br>
options are added here.<br>
<br>
app.handleCliArgs(cwd) should be called after initCliArgs() (when<br>
continueInit() is called) and m_args should point to parser: your error<br>
shouldn't be there.. (or I did something wrong in the code, but I don't<br>
know what)<br>
<br>
So I advise you to check very specifically that every option is called,<br>
and debug that m_args points well toward the parser from the main.<br>
<br></blockquote><div><br>In my main.cpp app.initcliargs(&parser) was missing after adding it this is the output<br><a href="http://pastebin.com/Ka7cz7rZ">http://pastebin.com/Ka7cz7rZ</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Cheers!<br>
Olivier<br>
<br>
<br></blockquote><div>thanks,<br></div><div>rishabh <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Amarok-devel mailing list<br>
<a href="mailto:Amarok-devel@kde.org">Amarok-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/amarok-devel" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/amarok-devel</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Amarok-devel Digest, Vol 104, Issue 15<br>
*********************************************<br>
</blockquote></div><br></div></div>