Re: [Qt-creator] QtCreator does not read settings (profiles) created by sdktool on Linux 64Bit

2016-02-25 Thread Tobias Hunger
Hi Markus,

On Thu, Feb 25, 2016 at 1:18 PM, Liebe Markus (RtP2/TEF72)
 wrote:
> Hello there,
>
> I have the following working workflow on a 32Bit OpenSuSE system:
>
> use the "sdktool" that comes with QtCreator (/usr/bin/sdktool) to create
> Toolchains etc. and combine them to Kits.
> QtCreator stores the settings in /usr/share/qtcreator/QtProject/*.xml
> When I now start QtCreator it uses those settings as per user templates and
> merges the settings into ~/.config/QtProject/qtcreator/*.xml
> Then the kits are available for using in QtCreator
>
> using OpenSuSE 42.1 64Bit I do the following:
>
> use the "sdktool" that comes with QtCreator
> (/usr/lib64/qtcreator/libexec/sdktool) to create Toolchains etc. and combine
> them to Kits.
> QtCreator stores the settings in /usr/lib64/share/qtcreator/QtProject/*.xml
> When I now start QtCreator it uses not the settings stored in
> /usr/lib64/share/qtcreator/QtProject/*.xml but reads the settings from
> /usr/share/qtcreator/QtProject/*.xml
>
> Is there a way to either make sdktool write to the directory that QtCreator
> reads,

>From the output of "sdktool --help":
Qt Creator SDK setup tool.
Usage: 
/home/code/build/qtcreator-super-clang/qtcreator/libexec/qtcreator/sdktool
  

ARGS:
--help|-hPrint this help text
--sdkpath=PATH|-s PATH   Set the path to the SDK files

> or let QtCreator read from the directory that sdktool uses on the
> 64Bit OS?

The sdktool is installed into libexec/qtcreator/, the Qt Creator
binary into bin/ and the settings are expected in
share/qtcreator/IDE_SETTINGSVARIANT_STR/qtcreator/ (with
IDE_SETTINGSVARIANT_STR defaulting to QtProject) by our build system.

If the distribution changes that layout, then it needs to adjust the
paths build into the binaries to find those settings. In this case
they apparently missed the sdktool. They will need to edit DATA_PATH
in src/tools/sdktool/sdktool.pro to fix this.

I suggest you report a bug against the packages you are using.

Best Regards,
Tobias
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] [Dev] Qt Creator 4.0 soft-branched

2016-02-25 Thread Orgad Shaneh
On Thu, Feb 25, 2016 at 2:24 PM, Bogdan Vatra  wrote:

> Hi,
>
> 4.0 ?!? What happened with 3.7? :)
>
> Cheers,
> BogDan.


See http://blog.qt.io/blog/2016/02/22/qt-roadmap-for-2016/

- Orgad
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] copy/add resources / src files

2016-02-25 Thread ekke
Hi Eike,

just tried adding ressources from another project as you described - worked.
thx.
never would have found this alone ;-)
(and from J-P Nurmi in the meantime I learned that I have to add
resource files in .pro to OTHER_FILES+= to get a better tree view)

for copying src files now I'll use this workflow:
-- source project... show in finder, mark .cpp / .hpp, copy
-- target project... show in finder, paste

then I have to manually add to .pro the names of copied cpp under SOURCES+=
correct ?

thx

ekke
Am 25.02.16 um 13:46 schrieb Ziller Eike:
>> On Feb 25, 2016, at 11:16 AM, ekke  wrote:
>>
>> While preparing a blog artictle for BlackBerry 10 devs HowTo use Qt Creator 
>> for Qt 5.6 vs Eclipse Momentics (Cascades, Qt 4.8) I'm having some questions 
>> - don't know if I understood it right how QtCreator is doing "things"
>>
>> copy / paste resources
>> Having two projects open and want to copy some icons from project A to 
>> project B
>> In Momentics I would mark some files from project A tree, then copy and 
>> in project B tree paste them.
>> This seems not to work with Qt Creator.
>> Is this the right way:
>> go to the file system
>> copy files from A to B (per ex. copy images/arrow.png, 
>> images/ar...@2x.png,...)
>> if not exist create the images subfolder
>> then back to Qt Creator
>> select qml.qrc, add existing files, select the images and then they 
>> appear in qml.qrc and are under control of Qt Creator
> Actually if you open the qrc file in an editor in Qt Creator (e.g. “Open in 
> Editor” from context menu in project tree, or through locator (ctrl+k)),
> and choose Add > Files there, then you are asked if you want to copy the 
> files to the location of the qrc file if the files that you choose are not 
> already located there.
>
>> copy/paste src code
>> if I want to copy/paste .cpp, .h source files from another project,
>> I have to do it the same way as with resources described above ?
> Qt Creator does not provide “file explorer” functionalities (beside the 
> remove and rename, which are there because they are actually .pro/.pri file 
> editing features).
> Note that there are e.g. “Show in Explorer/Finder” in the context menu for 
> nodes in the project tree.
>
>> code generated from outside the project
>> I'm working on a DSL to generate code from an Eclipse Xtext model into a 
>> Qt project
>> (already done for Momentics/Cascades, now working to make this generator 
>> x-platform for Qt 5.6 mobile - will be open source)
>> I'm generating the code into a subfolder /src-gen
>> would it be ok to generate a src-gen.pri with HEADERS and SOURCES and 
>> include this file into my .pro ?
> That sounds like a sensible approach to me. (Note that you should use 
> $$PWD/. to refer to files with a relative to the .pri file).
>
> Br, Eike
>
>> thanks for helping
>> don't want to provide wrong recipes HowTo deal with copying / adding 
>> resources and src files into QtCreator projects
>> -- 
>> ekke (ekkehard gentz)
>>

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] copy/add resources / src files

2016-02-25 Thread Ziller Eike

> On Feb 25, 2016, at 11:16 AM, ekke  wrote:
> 
> While preparing a blog artictle for BlackBerry 10 devs HowTo use Qt Creator 
> for Qt 5.6 vs Eclipse Momentics (Cascades, Qt 4.8) I'm having some questions 
> - don't know if I understood it right how QtCreator is doing "things"
> 
> copy / paste resources
> Having two projects open and want to copy some icons from project A to 
> project B
> In Momentics I would mark some files from project A tree, then copy and 
> in project B tree paste them.
> This seems not to work with Qt Creator.
> Is this the right way:
> go to the file system
> copy files from A to B (per ex. copy images/arrow.png, 
> images/ar...@2x.png,...)
> if not exist create the images subfolder
> then back to Qt Creator
> select qml.qrc, add existing files, select the images and then they 
> appear in qml.qrc and are under control of Qt Creator

Actually if you open the qrc file in an editor in Qt Creator (e.g. “Open in 
Editor” from context menu in project tree, or through locator (ctrl+k)),
and choose Add > Files there, then you are asked if you want to copy the files 
to the location of the qrc file if the files that you choose are not already 
located there.

> copy/paste src code
> if I want to copy/paste .cpp, .h source files from another project,
> I have to do it the same way as with resources described above ?

Qt Creator does not provide “file explorer” functionalities (beside the remove 
and rename, which are there because they are actually .pro/.pri file editing 
features).
Note that there are e.g. “Show in Explorer/Finder” in the context menu for 
nodes in the project tree.

> code generated from outside the project
> I'm working on a DSL to generate code from an Eclipse Xtext model into a 
> Qt project
> (already done for Momentics/Cascades, now working to make this generator 
> x-platform for Qt 5.6 mobile - will be open source)
> I'm generating the code into a subfolder /src-gen
> would it be ok to generate a src-gen.pri with HEADERS and SOURCES and 
> include this file into my .pro ?

That sounds like a sensible approach to me. (Note that you should use 
$$PWD/. to refer to files with a relative to the .pri file).

Br, Eike

> thanks for helping
> don't want to provide wrong recipes HowTo deal with copying / adding 
> resources and src files into QtCreator projects
> -- 
> ekke (ekkehard gentz)
> 
> independent software architect
> international development native mobile business apps
> BlackBerry 10 | Qt Mobile (Android, iOS)
> workshops - trainings - bootcamps
> 
> BlackBerry Elite Developer
> BlackBerry Platinum Enterprise Partner
> 
> max-josefs-platz 30, D-83022 rosenheim, germany
> mailto:e...@ekkes-corner.org
> blog: http://ekkes-corner.org
> apps and more: http://appbus.org
> 
> twitter: @ekkescorner
> skype: ekkes-corner
> LinkedIn: http://linkedin.com/in/ekkehard/
> Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Eike Ziller, Principle Software Engineer - The Qt Company GmbH
 
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] [Dev] Qt Creator 4.0 soft-branched

2016-02-25 Thread Bogdan Vatra
Hi,

4.0 ?!? What happened with 3.7? :)

Cheers,
BogDan.

On Wednesday 24 February 2016 13:34:37 Ziller Eike wrote:
> Hi,
> 
> in preparation of the feature freeze for Qt Creator 4.0, I “soft-branched“
> 4.0.
 
> That means:
> You should prefer the 4.0 branch for all your work that is supposed to end
> up in the 4.0 release.
 
> The master branch is regularly merged back into 4.0 until the feature freeze
> next week,
 so you do not have to retarget existing patches for master on
> codereview. 
> Br, Eike
> 
> -- 
> Eike Ziller, Principle Software Engineer - The Qt Company GmbH
>  
> The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg,
> HRB 144331 B
 
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] QtCreator does not read settings (profiles) created by sdktool on Linux 64Bit

2016-02-25 Thread Liebe Markus (RtP2/TEF72)
Hello there,


I have the following working workflow on a 32Bit OpenSuSE system:

  *   use the "sdktool" that comes with QtCreator (/usr/bin/sdktool) to create 
Toolchains etc. and combine them to Kits.
  *   QtCreator stores the settings in /usr/share/qtcreator/QtProject/*.xml
  *   When I now start QtCreator it uses those settings as per user templates 
and merges the settings into ~/.config/QtProject/qtcreator/*.xml
  *   Then the kits are available for using in QtCreator

using OpenSuSE 42.1 64Bit I do the following:

  *   use the "sdktool" that comes with QtCreator 
(/usr/lib64/qtcreator/libexec/sdktool) to create Toolchains etc. and combine 
them to Kits.
  *   QtCreator stores the settings in 
/usr/lib64/share/qtcreator/QtProject/*.xml
  *   When I now start QtCreator it uses not the settings stored in 
/usr/lib64/share/qtcreator/QtProject/*.xml but reads the settings from 
/usr/share/qtcreator/QtProject/*.xml

Is there a way to either make sdktool write to the directory that QtCreator 
reads, or let QtCreator read from the directory that sdktool uses on the 64Bit 
OS?


Best regards,

Markus
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Problems with wizard.json regarding resolution of variables

2016-02-25 Thread Hunger Tobias
On Do, 2016-02-25 at 10:05 +0100, Stefan wrote:
> What is the difference in using wizard.json resp. wizard.xml?

A lot:-)

There is e.g. no %ProjectName% in wizard.xml, while there is %{ProjectName} in
wizard.json. But you are using that, so that is probably not what is biting you.

>  What am I doing wrong?

What does not work for you? I could not figure that out based on your mail,
sorry.

To debug wizards I recommend to set a keyboard shortcut (in
Tools>Options>Environment>Keyboard) to the Wizard.Inspect action.

You can then trigger the wizard you are curious about and trigger the
Wizard.Inspect action at any time the (JSON) wizard is running. That will get
you a page with all the variables the wizard knows at that point in time.

I found the Inspector a great help to debug problems with my wizards.

Best Regards,
Tobias


-- 
Tobias Hunger, Senior Software Engineer | The Qt Company
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der Gesellschaft:
Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] copy/add resources / src files

2016-02-25 Thread ekke
While preparing a blog artictle for BlackBerry 10 devs HowTo use Qt
Creator for Qt 5.6 vs Eclipse Momentics (Cascades, Qt 4.8) I'm having
some questions - don't know if I understood it right how QtCreator is
doing "things"

copy / paste resources
Having two projects open and want to copy some icons from project A
to project B
In Momentics I would mark some files from project A tree, then copy
and in project B tree paste them.
This seems not to work with Qt Creator.
Is this the right way:
go to the file system
copy files from A to B (per ex. copy images/arrow.png,
images/ar...@2x.png,...)
if not exist create the images subfolder
then back to Qt Creator
select qml.qrc, add existing files, select the images and then they
appear in qml.qrc and are under control of Qt Creator

copy/paste src code
if I want to copy/paste .cpp, .h source files from another project,
I have to do it the same way as with resources described above ?

code generated from outside the project
I'm working on a DSL to generate code from an Eclipse Xtext model
into a Qt project
(already done for Momentics/Cascades, now working to make this
generator x-platform for Qt 5.6 mobile - will be open source)
I'm generating the code into a subfolder /src-gen
would it be ok to generate a src-gen.pri with HEADERS and SOURCES
and include this file into my .pro ?

thanks for helping
don't want to provide wrong recipes HowTo deal with copying / adding
resources and src files into QtCreator projects
-- 

ekke (ekkehard gentz)

independent software architect
international development native mobile business apps
BlackBerry 10 | Qt Mobile (Android, iOS)
workshops - trainings - bootcamps

*BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner*

max-josefs-platz 30, D-83022 rosenheim, germany
mailto:e...@ekkes-corner.org
blog: http://ekkes-corner.org
apps and more: http://appbus.org

twitter: @ekkescorner
skype: ekkes-corner
LinkedIn: http://linkedin.com/in/ekkehard/
Steuer-Nr: 156/220/30931 FA Rosenheim, UST-ID: DE189929490

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Problems with wizard.json regarding resolution of variables

2016-02-25 Thread Stefan

Hello,

using variables within wizard related files works fine with wizard.xml, 
but not with wizard.json regarding resolution of variables.


e.g. %ProjectName% is test

{
"version": 1,
"kind": "project",
"id": "A.CRN-Modul",
"category": "A.Project",
"trDescription": "Creates a console project to develop a CRN modul.",
"trDisplayName": "CRN-Shell Modul Project",
"trDisplayCategory": "CRN Projects",
"icon": "../crn.png",
"featuresRequired": [ "Plugin.QmakeProjectManager", 
"QtSupport.Wizards.FeatureQt" ],


"options":
[
{ "key": "ProFileName", "value": "%{JS: 
Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'pro')}" },
{ "key": "IsTopLevelProject", "value": "%{JS: 
('%{Exists:ProjectExplorer.Profile.Ids}') ? '' : 'yes'}" }

],

"pages":
[
{
"trDisplayName": "Project Location",
"trShortTitle": "Location",
"typeId": "Project",
"data": { "trDescription": "This wizard creates a main.cpp 
file to develop a CRN-Shell modul." }

},
{
"trDisplayName": "Kit Selection",
"trShortTitle": "Kits",
"typeId": "Kits",
"enabled": "%{IsTopLevelProject}",
"data": { "projectFilePath": "%{ProFileName}" }
},
{
"trDisplayName": "Project Management",
"trShortTitle": "Summary",
"typeId": "Summary"
}
],
"generators":
[
{
"typeId": "File",
"data":
[
{
"source": "project.pro",
"target": "%{ProFileName}",
"openAsProject": true
},
{
"source": "main.cpp",
"target": "main.cpp",
"openAsProject": false
}
]
}
]
}

=> %ProjectName%


../crn.png
Creates a console project to develop a CRN 
modul.

CRN-Shell Modul Project;
CRN Projects

openeditor="true"/>
openproject="true"/>




=> test


What is the difference in using wizard.json resp. wizard.xml? What am I 
doing wrong?


If you have an idea what it could be or any other hint, always welcome. 
If not, please just ignore me. At the moment I'm fine with wizard.xml.



Greetings

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] qmake: no "strip" in generated Makefile

2016-02-25 Thread Ziller Eike

> On Feb 24, 2016, at 8:26 PM, Andrzej Telszewski  wrote:
> 
> Hi,
> 
> I came across something strange. On both tested systems the qmake version is 
> 2.01a, but the Makefile generated on one of the systems does not have the 
> strip command.
> 
> With strip:
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) 
> $(INSTALL_ROOT)/usr/bin/
> $(INSTALL_PROGRAM) "build/prog/$(QMAKE_TARGET)" 
> "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
> $(STRIP) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
> 
> Without strip:
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) 
> $(INSTALL_ROOT)/usr/bin/ $(INSTALL_PROGRAM) "build/prog/$(QMAKE_TARGET)" 
> "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
> 
> The system that includes the strip command is:
> QMake version 2.01a
> Using Qt version 4.8.4 in /usr/lib64/qt/lib
> 
> The system that does not include the strip command is:
> QMake version 2.01a
> Using Qt version 4.6.2 in /usr/lib64
> 
> 
> Could you please explain me how can I make the qmake to always include the 
> strip step in the Makefile?

Hi,

since this is a very Qt Creator centric list, you might want to try posting 
your question on inter...@qt-project.org instead.

Br, Eike

-- 
Eike Ziller, Principle Software Engineer - The Qt Company GmbH
 
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator