Discussion:
Qt Creator and perforce
Mark Gallegly
2009-05-26 18:16:53 UTC
Permalink
I am trying to get Qt Creator to work with perforce. I have all of my
perforce settings set correctly but still Qt Creator will only show the
perforce menus under the Tools menu if I do not have any projects open. And
when I try to choose any perforce menu command it outputs the following
message: “No p4 executable specified!”. I know I have Qt Creator configured
to correctly point to the "p4" command. I have tried this under both OS X
and Windows XP and the same thing happens. I have seen this previous post:
http://lists.trolltech.com/pipermail/qt-creator/2009-April/002681.html, but
there was no successful conclusion to it.

Does anyone know how to get Qt Creator to work with perforce, or is this
just not possible?

Thanks.
Mark*

*
Friedemann Kleint
2009-05-27 11:00:13 UTC
Permalink
Hi,

Qt Creator tries to launch the p4 executable with the arguments
"client -o" and checks for the presence of "View:" in the output
(that is, files are mapped).

Could you try that? - (another question is of course, can p4 be launched
from your location, is it missing DLLs or sth).
We will try to add error output at some point.

Regards,
Friedemann
--
Friedemann Kleint
Nokia, Qt Software
Brent Goldberg
2009-05-27 23:14:16 UTC
Permalink
"Qt Creator tries to launch the p4 executable with the arguments "client
-o" and checks for the presence of "View:" in the output (that is, files
are mapped)."

I'm not sure if this was intended back to me, but I tried it and saw
various parameters and "View:". Interestingly, though, the "View:" line
has a carriage return whereas most of the other lines do not.

View:
//{myrepo}/... //{my client}/...
Friedemann Kleint
2009-05-28 07:01:21 UTC
Permalink
Hi,
Post by Brent Goldberg
I'm not sure if this was intended back to me, but I tried it and saw
Yup - I looked at the p4 detection code yesterday and spotted a bug that
triggers if you actually specify differing parameters in the settings code.
I will try to fix it for 1.2, you should be able to work or at least see an
error message.

Regards,
Friedemann
--
Friedemann Kleint
Nokia, Qt Software
Loading...