<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">olivier@churlaud.com</a>><br>
To: <a href="mailto:amarok-devel@kde.org" target="_blank">amarok-devel@kde.org</a><br>
Subject: Re: kf5 port(olivier)<br>
Message-ID: <<a href="mailto:55F542CD.90509@churlaud.com" target="_blank">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></blockquote></div></div></div></div></div></blockquote></div></div></div></blockquote><div><br></div><div><br></div><div>Could you please use <a href="https://paste.kde.org/">KDE Paste</a> or <a href="http://pastie.org/">Pastie</a> for all logs. Pastebin is blocked at my University :( </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<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></div><div><br> <br></div></div></div></div></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" target="_blank">http://pastebin.com/Ka7cz7rZ</a>.Is there anything else that you think is broken on myside.Also <br></div><div>could you please provide your output ?<br><br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>  <br></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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></div></div></div></div></blockquote><div> thanks,</div><div> rishabh <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote></span></div></div></div></blockquote></div></div></div></blockquote><div><br></div><div>--</div><div>Thanks</div><div>Aditya </div></div></div></div>