Re: [QBS] qbs & qt creator

2014-05-23 Thread Kurt Keller
Am Freitag, den 23.05.2014
schrieb Christian Kandeler :

> On 05/23/2014 11:44 AM, Kurt Keller wrote:
> > Am Donnerstag, den 22.05.2014
> > schrieb Christian Kandeler :
> >
> >> On 05/22/2014 05:04 PM, Kurt Keller wrote:
>  Is this a self-compiled Creator or did you download it in binary
>  form?
> >>>
> >>> This is a self-compiled Creator.
> >>
> >> In that case it's much simpler. Just do a "make install" for your qbs
> >> build and set the QBS_INSTALL_DIR environment variable to the
> >> respective install root before compiling Qt Creator. Then Creator
> >> will build against the installed qbs, ignoring its own copy (you may
> >> or may not delete the git submodule, it should not make a difference).
> >> Caveat: I have not tested this configuration in a while. But it
> >> definitely used to work at some point in the not too recent past.
> >
> > Sorry, but this did not work either. First I had to install
> > ...qtdevenv-5.3/include/qbs/api/languageinfo.h
> > manually because 'jom install' in qbs source dir forgot it.
> 
> Yep, that file seems to be missing from the list of installation 
> resources. I'll add it.
> 
> > After rebuilding Creator from scratch and installing it to the desired
> > INSTALL_ROOT there were again all qbs files (modules, plugins)
> > duplicated as before.
> 
> Yeah, but that's just a cosmetic issue (that you can get rid of by 
> removing the qbs submodule). The important thing is that the right ones 
> are being picked up at runtime.
> 
> > The build behaviour did not change, there is always a complete
> > rebuild when using qbs - qtcreator - qbs - ...
> 
> I just tried and I could not reproduce that behavior. Please make sure 
> you used the same settings *and* build directories.


Thank you for your help. It works if I explicitly specify the same
settings dir as Creator does. (--settings-dir
C:\Users\kk\AppData\Roaming\QtProject\qtcreator) which ist not what I have
dreamt of. But at least it works. Thank you again for your help!

Kurt
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-23 Thread Christian Kandeler
On 05/23/2014 11:44 AM, Kurt Keller wrote:
> Am Donnerstag, den 22.05.2014
> schrieb Christian Kandeler :
>
>> On 05/22/2014 05:04 PM, Kurt Keller wrote:
 Is this a self-compiled Creator or did you download it in binary form?
>>>
>>> This is a self-compiled Creator.
>>
>> In that case it's much simpler. Just do a "make install" for your qbs
>> build and set the QBS_INSTALL_DIR environment variable to the respective
>> install root before compiling Qt Creator. Then Creator will build
>> against the installed qbs, ignoring its own copy (you may or may not
>> delete the git submodule, it should not make a difference).
>> Caveat: I have not tested this configuration in a while. But it
>> definitely used to work at some point in the not too recent past.
>
> Sorry, but this did not work either. First I had to install
> ...qtdevenv-5.3/include/qbs/api/languageinfo.h
> manually because 'jom install' in qbs source dir forgot it.

Yep, that file seems to be missing from the list of installation 
resources. I'll add it.

> After rebuilding Creator from scratch and installing it to the desired
> INSTALL_ROOT there were again all qbs files (modules, plugins) duplicated
> as before.

Yeah, but that's just a cosmetic issue (that you can get rid of by 
removing the qbs submodule). The important thing is that the right ones 
are being picked up at runtime.

> The build behaviour did not change, there is always a complete
> rebuild when using qbs - qtcreator - qbs - ...

I just tried and I could not reproduce that behavior. Please make sure 
you used the same settings *and* build directories.


Christian
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-23 Thread Kurt Keller
Am Donnerstag, den 22.05.2014
schrieb Christian Kandeler :

> On 05/22/2014 05:04 PM, Kurt Keller wrote:
> >> Is this a self-compiled Creator or did you download it in binary form?
> >
> > This is a self-compiled Creator.
> 
> In that case it's much simpler. Just do a "make install" for your qbs 
> build and set the QBS_INSTALL_DIR environment variable to the respective 
> install root before compiling Qt Creator. Then Creator will build 
> against the installed qbs, ignoring its own copy (you may or may not 
> delete the git submodule, it should not make a difference).
> Caveat: I have not tested this configuration in a while. But it 
> definitely used to work at some point in the not too recent past.

Sorry, but this did not work either. First I had to install
   ...qtdevenv-5.3/include/qbs/api/languageinfo.h
manually because 'jom install' in qbs source dir forgot it.

After rebuilding Creator from scratch and installing it to the desired
INSTALL_ROOT there were again all qbs files (modules, plugins) duplicated
as before. The build behaviour did not change, there is always a complete
rebuild when using qbs - qtcreator - qbs - ...

--
Kurt.
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 05:04 PM, Kurt Keller wrote:
>> Is this a self-compiled Creator or did you download it in binary form?
>
> This is a self-compiled Creator.

In that case it's much simpler. Just do a "make install" for your qbs 
build and set the QBS_INSTALL_DIR environment variable to the respective 
install root before compiling Qt Creator. Then Creator will build 
against the installed qbs, ignoring its own copy (you may or may not 
delete the git submodule, it should not make a difference).
Caveat: I have not tested this configuration in a while. But it 
definitely used to work at some point in the not too recent past.


Christian

___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Kurt Keller
Am Donnerstag, den 22.05.2014
schrieb Christian Kandeler :

> On 05/22/2014 04:43 PM, Kurt Keller wrote:
> > Am Donnerstag, den 22.05.2014
> > schrieb Christian Kandeler :
> >
> >> On 05/22/2014 03:43 PM, Kurt Keller wrote:
> >>> So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the
> >>> Qt Creator version of qbs (1.2) into my development directory. After
> >>> that I had to copy the plugins from lib/qtcreator/qbs to lib/qbs and
> >>> the modules from share/qtcreator/qbs/share/qbs to share/qbs and now I
> >>> can use qbs from the shell and from qt creator. Hurra!
> >>
> >> In Qt Creator 3.2 we will include the qbs command-line frontend, so
> >> such workarounds shouldn't be necessary anymore.
> >>
> >>> The only drawback is that after building a product from shell qt
> >>> creator does a complete rebuild and vice versa. Is there a chance to
> >>> fix this too?
> >>
> >> Should not happen. Are you sure you are using the same build
> >> directory?
> >
> > Yes I can see it on the modification time of the file
> > 'qtc_qt53-debug.bg'. When I build with Qt Creator the time changes and
> > when I build with qbs from shell the time on this file changes also.
> >
> > Maybe the reason is, that both configurations are using different
> > module- and plugin directories? (although the modules and plugins are
> > the same)
> 
> Well, the fact that you had to copy module files around strongly 
> suggests that. After all, Creator worked without that step,so it must 
> pick these files up from somewhere else.
> Is this a self-compiled Creator or did you download it in binary form?

This is a self-compiled Creator. After installing with

  jom install INSTALL_ROOT=./qtdevenv-5.3

it had the qbs modules in .../qtdevenv-5.3/share/qtcreator/qbs/share/qbs
and the plugins in .../qtdevenv-5.3/lib/qtcreator/qbs. From there I copied
the files to the places where shell-qbs expects it. So Creator uses

  .../qtdevenv-5.3/share/qtcreator/qbs/share/qbs
  .../qtdevenv-5.3/lib/qtcreator/qbs

and shell-qbs uses

  .../qtdevenv-5.3/share/qbs
  .../qtdevenv-5.3/lib/qbs

And to be clear: If I build with Creator twice - the second build is
optimized, i.e. only modified files are build in this case.
Same with shell-qbs: building twice - first build is maybe full, second
creates only the modified files.
Only if I build first with shell-qbs and than with Creator (or vice versa)
there is no optimisation and ALL files are build.


--
Kurt.
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 04:43 PM, Kurt Keller wrote:
> Am Donnerstag, den 22.05.2014
> schrieb Christian Kandeler :
>
>> On 05/22/2014 03:43 PM, Kurt Keller wrote:
>>> So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the
>>> Qt Creator version of qbs (1.2) into my development directory. After
>>> that I had to copy the plugins from lib/qtcreator/qbs to lib/qbs and
>>> the modules from share/qtcreator/qbs/share/qbs to share/qbs and now I
>>> can use qbs from the shell and from qt creator. Hurra!
>>
>> In Qt Creator 3.2 we will include the qbs command-line frontend, so such
>> workarounds shouldn't be necessary anymore.
>>
>>> The only drawback is that after building a product from shell qt
>>> creator does a complete rebuild and vice versa. Is there a chance to
>>> fix this too?
>>
>> Should not happen. Are you sure you are using the same build directory?
>
> Yes I can see it on the modification time of the file 'qtc_qt53-debug.bg'.
> When I build with Qt Creator the time changes and when I build with qbs
> from shell the time on this file changes also.
>
> Maybe the reason is, that both configurations are using different module-
> and plugin directories? (although the modules and plugins are the same)

Well, the fact that you had to copy module files around strongly 
suggests that. After all, Creator worked without that step,so it must 
pick these files up from somewhere else.
Is this a self-compiled Creator or did you download it in binary form?


Christian

___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Kurt Keller
Am Donnerstag, den 22.05.2014
schrieb Christian Kandeler :

> On 05/22/2014 03:43 PM, Kurt Keller wrote:
> > So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the
> > Qt Creator version of qbs (1.2) into my development directory. After
> > that I had to copy the plugins from lib/qtcreator/qbs to lib/qbs and
> > the modules from share/qtcreator/qbs/share/qbs to share/qbs and now I
> > can use qbs from the shell and from qt creator. Hurra!
> 
> In Qt Creator 3.2 we will include the qbs command-line frontend, so such 
> workarounds shouldn't be necessary anymore.
> 
> > The only drawback is that after building a product from shell qt
> > creator does a complete rebuild and vice versa. Is there a chance to
> > fix this too?
> 
> Should not happen. Are you sure you are using the same build directory?

Yes I can see it on the modification time of the file 'qtc_qt53-debug.bg'.
When I build with Qt Creator the time changes and when I build with qbs
from shell the time on this file changes also.

Maybe the reason is, that both configurations are using different module-
and plugin directories? (although the modules and plugins are the same)

-- 
Regards
Kurt
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Joerg Bornemann
On 22-May-14 16:02, Thomas Epting wrote:

>  > In Qt Creator 3.2 we will include the qbs command-line frontend, so
>  > such workarounds shouldn't be necessary anymore.
>
> Btw ... are there any plans to integrate IncrediBuild + Qbs with
> QtCreator? By now it is very tricky to use this combination from within
> QtCreator.

No concrete plans, but to enable IncrediBuild with qbs one would have to 
call xgconsole with the qbs executable. This isn't supported by the 
QbsProjectManager plugin (yet).
The binary package (and the git repo) contains the files ibqbs.bat and 
ibmsvc.xml that can be used together with IncrediBuild on the commandline.


BR,

Joerg
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Thomas Epting
> In Qt Creator 3.2 we will include the qbs command-line frontend, so
> such workarounds shouldn't be necessary anymore.

Btw ... are there any plans to integrate IncrediBuild + Qbs with QtCreator?
By now it is very tricky to use this combination from within QtCreator.

Br, Thomas
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 03:43 PM, Kurt Keller wrote:
> So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the Qt
> Creator version of qbs (1.2) into my development directory. After that I
> had to copy the plugins from lib/qtcreator/qbs to lib/qbs and the modules
> from share/qtcreator/qbs/share/qbs to share/qbs and now I can use qbs from
> the shell and from qt creator. Hurra!

In Qt Creator 3.2 we will include the qbs command-line frontend, so such 
workarounds shouldn't be necessary anymore.

> The only drawback is that after building a product from shell qt creator
> does a complete rebuild and vice versa. Is there a chance to fix this too?

Should not happen. Are you sure you are using the same build directory?


Christian
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Kurt Keller
Am Donnerstag, den 22.05.2014
schrieb Christian Kandeler :

> On 05/22/2014 02:29 PM, Kurt Keller wrote:
> > Am Donnerstag, den 22.05.2014
> > schrieb Christian Kandeler :
> >
> >> On 05/22/2014 11:32 AM, Kurt Keller wrote:
> >>> I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and
> >>> installed into a single folder, called qtdevenv-5.3. I can use Qt
> >>> Creator with qbs projects - no problem.
> >>>
> >>> But how can I install qbs in a way that
> >>>
> >>> - it resides in the same install folder 'qtdevenv-5.3'
> >>> - it does not interfere with the version from Qt Creator
> >>> - it can be called from shell
> >>> - it uses the same profiles (and the same build directories) as
> >>> Qt Creator uses.
> >>
> >> Let me see whether I understand you correctly: You want to run the
> >> command-line version of qbs and use it on the same projects that you
> >> build in Qt Creator?
> >
> > Yes - commandline is mostly used to build the products i.e. by cron
> > over night and Qt Creator is used for support/debugging/development.
> >
> >>> I was not able to do that. Some reasons: If I use the bundled Qbs
> >>> from Qt Creator 3.1.1 the Qt modules are missing and (called from
> >>> the shell) qbs says 'Module Qt/core could not be loaded'
> >>
> >> In qbs 1.2, the modules are per-profile. Nothing is missing.
> >
> > What does this mean? I am missing files like printsupport.qbs, xml.qbs
> > etc. (It does work in Qt Creator magically - but I could not find out
> > the magic to get it working from the shell)
> 
> The "magic" is calling "qbs setup-qt", just as before. Only the 
> internals have changed with regards to file locations. But you never 
> refer to those directly anyway.
> 
> >>> If I use qbs 1.1.1 (official downlod from
> >>> https://login.qt.digia.com/downloads the dll's mismatch. (Qt Creator
> >>> Version <> QBS Version)
> >>
> >> Creator 3.1 has qbs 1.2.
> >
> > Correct - but even if I use the same version - the paths for the qbs
> > modules and plugins are different.
> 
> This is due to Creator using its own settings directory, which is 
> necessary in order to be able to run several instances of Creator 
> without conflicts. You can see the command line equivalent of what 
> Creator does when you click on the "Details" button for the qbs build
> step.

So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the Qt
Creator version of qbs (1.2) into my development directory. After that I
had to copy the plugins from lib/qtcreator/qbs to lib/qbs and the modules
from share/qtcreator/qbs/share/qbs to share/qbs and now I can use qbs from
the shell and from qt creator. Hurra!

The only drawback is that after building a product from shell qt creator
does a complete rebuild and vice versa. Is there a chance to fix this too?


Best Regards
Kurt.
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 02:29 PM, Kurt Keller wrote:
> Am Donnerstag, den 22.05.2014
> schrieb Christian Kandeler :
>
>> On 05/22/2014 11:32 AM, Kurt Keller wrote:
>>> I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and
>>> installed into a single folder, called qtdevenv-5.3. I can use Qt
>>> Creator with qbs projects - no problem.
>>>
>>> But how can I install qbs in a way that
>>>
>>> - it resides in the same install folder 'qtdevenv-5.3'
>>> - it does not interfere with the version from Qt Creator
>>> - it can be called from shell
>>> - it uses the same profiles (and the same build directories) as
>>> Qt Creator uses.
>>
>> Let me see whether I understand you correctly: You want to run the
>> command-line version of qbs and use it on the same projects that you
>> build in Qt Creator?
>
> Yes - commandline is mostly used to build the products i.e. by cron over
> night and Qt Creator is used for support/debugging/development.
>
>>> I was not able to do that. Some reasons: If I use the bundled Qbs from
>>> Qt Creator 3.1.1 the Qt modules are missing and (called from the shell)
>>> qbs says 'Module Qt/core could not be loaded'
>>
>> In qbs 1.2, the modules are per-profile. Nothing is missing.
>
> What does this mean? I am missing files like printsupport.qbs, xml.qbs
> etc. (It does work in Qt Creator magically - but I could not find out
> the magic to get it working from the shell)

The "magic" is calling "qbs setup-qt", just as before. Only the 
internals have changed with regards to file locations. But you never 
refer to those directly anyway.

>>> If I use qbs 1.1.1 (official downlod from
>>> https://login.qt.digia.com/downloads the dll's mismatch. (Qt Creator
>>> Version <> QBS Version)
>>
>> Creator 3.1 has qbs 1.2.
>
> Correct - but even if I use the same version - the paths for the qbs
> modules and plugins are different.

This is due to Creator using its own settings directory, which is 
necessary in order to be able to run several instances of Creator 
without conflicts. You can see the command line equivalent of what 
Creator does when you click on the "Details" button for the qbs build step.


Christian

___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Kurt Keller
Am Donnerstag, den 22.05.2014
schrieb Christian Kandeler :

> On 05/22/2014 11:32 AM, Kurt Keller wrote:
> > I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and
> > installed into a single folder, called qtdevenv-5.3. I can use Qt
> > Creator with qbs projects - no problem.
> >
> > But how can I install qbs in a way that
> >
> > - it resides in the same install folder 'qtdevenv-5.3'
> > - it does not interfere with the version from Qt Creator
> > - it can be called from shell
> > - it uses the same profiles (and the same build directories) as
> >Qt Creator uses.
> 
> Let me see whether I understand you correctly: You want to run the 
> command-line version of qbs and use it on the same projects that you 
> build in Qt Creator?

Yes - commandline is mostly used to build the products i.e. by cron over
night and Qt Creator is used for support/debugging/development.

> > I was not able to do that. Some reasons: If I use the bundled Qbs from
> > Qt Creator 3.1.1 the Qt modules are missing and (called from the shell)
> > qbs says 'Module Qt/core could not be loaded'
> 
> In qbs 1.2, the modules are per-profile. Nothing is missing.

What does this mean? I am missing files like printsupport.qbs, xml.qbs
etc. (It does work in Qt Creator magically - but I could not find out
the magic to get it working from the shell)

> > If I use qbs 1.1.1 (official downlod from
> > https://login.qt.digia.com/downloads the dll's mismatch. (Qt Creator
> > Version <> QBS Version)
> 
> Creator 3.1 has qbs 1.2.

Correct - but even if I use the same version - the paths for the qbs
modules and plugins are different.

Thank you for responding.
-- 
Kurt Keller
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs


Re: [QBS] qbs & qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 11:32 AM, Kurt Keller wrote:
> I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and installed
> into a single folder, called qtdevenv-5.3. I can use Qt Creator with qbs
> projects - no problem.
>
> But how can I install qbs in a way that
>
> - it resides in the same install folder 'qtdevenv-5.3'
> - it does not interfere with the version from Qt Creator
> - it can be called from shell
> - it uses the same profiles (and the same build directories) as
>Qt Creator uses.

Let me see whether I understand you correctly: You want to run the 
command-line version of qbs and use it on the same projects that you 
build in Qt Creator?

> I was not able to do that. Some reasons: If I use the bundled Qbs from
> Qt Creator 3.1.1 the Qt modules are missing and (called from the shell)
> qbs says 'Module Qt/core could not be loaded'

In qbs 1.2, the modules are per-profile. Nothing is missing.

> If I use qbs 1.1.1 (official downlod from
> https://login.qt.digia.com/downloads the dll's mismatch. (Qt Creator
> Version <> QBS Version)

Creator 3.1 has qbs 1.2.


Christian
___
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs