Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-20 Thread Michael Jackson

On Nov 18, 2014, at 10:04 AM, Michael Jackson imikejack...@gmail.com wrote:

 
 On Nov 17, 2014, at 10:59 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 
 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 ...
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 
 Most of the include directories for my project are missing.
 
 This looks like a bug or un-implemented feature in the CMakeProject
 (manager).
 
 Please file a bug report at https://bugreports.qt-project.org/ against
 the component Project  Buildmanagemant.
 
 Nikolai
 
 
 https://bugreports.qt-project.org/browse/QTCREATORBUG-13432
 
 Attached some discussion on the bug and a first attempt at a patch to fist 
 the problem. The fix worked on my system. Hopefully we can get some others to 
 test it out.
 
 At the lowest levels, QtCreator parsing out the .cbt files is a sub-optimal 
 solution as the .cbt file does not really have all the information that 
 QtCreator is needing. Some information must be inferred based on paths and 
 directory naming.
 
 I have inquired on the CMake list if CMake can produce just a plain XML file 
 of the project structure or if this is something that might be implemented in 
 the future. In the long term I think this would be the most useful solution.
 
 Thanks to everyone for their insights (Andre) and thoughts.
 
 Cheers
 Mike Jackson
 

Just wanted to follow up that the QtCreator Developers have fixed this problem 
(At least it works for my project). Big thanks to the developers for getting to 
this.

Thanks
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-18 Thread Michael Jackson

On Nov 17, 2014, at 10:59 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
wrote:

 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 ...
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 
 Most of the include directories for my project are missing.
 
 This looks like a bug or un-implemented feature in the CMakeProject
 (manager).
 
 Please file a bug report at https://bugreports.qt-project.org/ against
 the component Project  Buildmanagemant.
 
 Nikolai
 

https://bugreports.qt-project.org/browse/QTCREATORBUG-13432

Attached some discussion on the bug and a first attempt at a patch to fist the 
problem. The fix worked on my system. Hopefully we can get some others to test 
it out.

At the lowest levels, QtCreator parsing out the .cbt files is a sub-optimal 
solution as the .cbt file does not really have all the information that 
QtCreator is needing. Some information must be inferred based on paths and 
directory naming.

I have inquired on the CMake list if CMake can produce just a plain XML file of 
the project structure or if this is something that might be implemented in the 
future. In the long term I think this would be the most useful solution.

Thanks to everyone for their insights (Andre) and thoughts.

Cheers
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Ziller Eike

 On Nov 15, 2014, at 4:02 AM, Michael Jackson imikejack...@gmail.com wrote:
 
 
 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
 wrote:
 
 Hi!
 
 On Thu, 13. Nov 12:36, Michael Jackson wrote:
 The issue is that QtCreator can not seem to locate any Qt Header. There is 
 a red squiggly line under #include QtCore/QObject and then none of the 
 syntax highlighting works after that.
 
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 Nikolai
 
 Here are some of the include paths for the project:
 
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtConcurrent.framework/Headers (include 
 path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtCore.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtGui.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtNetwork.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtOpenGL.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtPrintSupport.framework/Headers (include 
 path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtScript.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtSvg.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtWidgets.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtXml.framework/Headers (include path)
 
 I will guess that the code model does not under stand the combination of
 
 #include QtCore/QObject and that file residing in a framework on OS X. In 
 my Qt4 build there is an actual Qt-4.8.6/include/QtCore/QObject file for the 
 include which is why it works under Qt4. With Qt5 proper frameworks have 
 been created where the headers are installed into the frameworks and 
 QtCreator's code model just does not understand how to parse apart a 
 framework.
 
 I guess I could change all my #include to remove the module but that really 
 should not be needed as the code compiles just fine the way it is (on all 
 platforms).

The notation “#include QtCore/QObject” to denote an include within a 
framework needs a corresponding framework path setting to where the QtCore 
framework resides. In your case you need a flag 
“-F/Users/Shared/Toolkits/Qt-5.3.1/lib” for the compiler, and in the Header 
Paths in Qt Creator an entry /Users/Shared/Toolkits/Qt-5.3.1/lib (framework 
path)”.

 Of course I could be completely wrong about all of this…
 
 Thanks
 Mike Jackson
 
 PS: Installed a Ubuntu 14.04 desktop and QtCreator and that is what I call a 
 proper debugging environment. Just wish I could have that on OS X.
 
 ___
 Qt-creator mailing list
 Qt-creator@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/qt-creator

-- 
Eike Ziller, Senior Software Engineer - Digia, Qt
 
Digia Germany 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] Creator Can not locate Qt Headers

2014-11-17 Thread Michael Jackson

On Nov 17, 2014, at 3:06 AM, Ziller Eike eike.zil...@theqtcompany.com wrote:

 
 On Nov 15, 2014, at 4:02 AM, Michael Jackson imikejack...@gmail.com wrote:
 
 
 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 
 Hi!
 
 On Thu, 13. Nov 12:36, Michael Jackson wrote:
 The issue is that QtCreator can not seem to locate any Qt Header. There is 
 a red squiggly line under #include QtCore/QObject and then none of the 
 syntax highlighting works after that.
 
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 Nikolai
 
 Here are some of the include paths for the project:
 
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtConcurrent.framework/Headers (include 
 path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtCore.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtGui.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtNetwork.framework/Headers (include 
 path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtOpenGL.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtPrintSupport.framework/Headers 
 (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtScript.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtSvg.framework/Headers (include path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtWidgets.framework/Headers (include 
 path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib/QtXml.framework/Headers (include path)
 
 I will guess that the code model does not under stand the combination of
 
 #include QtCore/QObject and that file residing in a framework on OS X. In 
 my Qt4 build there is an actual Qt-4.8.6/include/QtCore/QObject file for the 
 include which is why it works under Qt4. With Qt5 proper frameworks have 
 been created where the headers are installed into the frameworks and 
 QtCreator's code model just does not understand how to parse apart a 
 framework.
 
 I guess I could change all my #include to remove the module but that really 
 should not be needed as the code compiles just fine the way it is (on all 
 platforms).
 
 The notation “#include QtCore/QObject” to denote an include within a 
 framework needs a corresponding framework path setting to where the QtCore 
 framework resides. In your case you need a flag 
 “-F/Users/Shared/Toolkits/Qt-5.3.1/lib” for the compiler, and in the Header 
 Paths in Qt Creator an entry /Users/Shared/Toolkits/Qt-5.3.1/lib (framework 
 path)”.

Yes. It compiles fine so the Compiler flags are correctly inserted. From the 
Inspect Code Model-Project Parts-Header Paths
 /Users/Shared/Toolkits/Qt-5.3.1/lib (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/.. (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtConcurrent.framework/Headers (include 
path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtCore.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtGui.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtNetwork.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtOpenGL.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtPrintSupport.framework/Headers (include 
path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtScript.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtSvg.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtWidgets.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtXml.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/mkspecs/macx-clang (include path)


Can I manually add an include path?

Thanks
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Nikolai Kosjar
 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
 wrote:
  ...
  Please check what the Code model gets as input from the Project
  (managers):
  
  1) Open a file with unresolved includes
  2) Open Menu: Tools  C++  Inspect C++ Code Model
  3) There, switch to the Project Parts tab and the sub tab Header
  Paths - check that the includes are reasonable, especially that there
  is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
  
 
 Most of the include directories for my project are missing.

This looks like a bug or un-implemented feature in the CMakeProject
(manager).

Please file a bug report at https://bugreports.qt-project.org/ against
the component Project  Buildmanagemant.

Nikolai

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Nikolai Kosjar
On Mon, 17. Nov 09:50, Michael Jackson wrote:
 Can I manually add an include path?

You could try to set up a generic project as a workaround:

http://qt-project.org/doc/qtcreator-3.2/creator-project-generic.html

Nikolai

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Michael Jackson

On Nov 17, 2014, at 10:59 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
wrote:

 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 ...
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 
 Most of the include directories for my project are missing.
 
 This looks like a bug or un-implemented feature in the CMakeProject
 (manager).
 
 Please file a bug report at https://bugreports.qt-project.org/ against
 the component Project  Buildmanagemant.
 
 Nikolai
 

I created a Qt Console project and took a look at the Include paths and the 
difference that I found was that in the listing there is the following:

/System/Library/Frameworks (framework path)
/Library/Frameworks (framework path)
/Users/Shared/Toolkits/Qt-5.3.1/lib (framework path)

where-as in my CMake based project those same directories are listed as:
/System/Library/Frameworks (framework path)
/Library/Frameworks (framework path)
/Users/Shared/Toolkits/Qt-5.3.1/lib (include path)

So there is the difference. Where can I tweak a setting in the .cbp file to 
entice QtCreator to load those paths as framework paths? This would at least 
let me figure out where the problem needs to be corrected (If it ever will be).

Thanks
Mike Jackson


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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Michael Jackson

On Nov 17, 2014, at 11:27 AM, Michael Jackson imikejack...@gmail.com wrote:

 
 On Nov 17, 2014, at 10:59 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 
 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 ...
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 
 Most of the include directories for my project are missing.
 
 This looks like a bug or un-implemented feature in the CMakeProject
 (manager).
 
 Please file a bug report at https://bugreports.qt-project.org/ against
 the component Project  Buildmanagemant.
 
 Nikolai
 
 
 I created a Qt Console project and took a look at the Include paths and the 
 difference that I found was that in the listing there is the following:
 
 /System/Library/Frameworks (framework path)
 /Library/Frameworks (framework path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib (framework path)
 
 where-as in my CMake based project those same directories are listed as:
 /System/Library/Frameworks (framework path)
 /Library/Frameworks (framework path)
 /Users/Shared/Toolkits/Qt-5.3.1/lib (include path)
 
 So there is the difference. Where can I tweak a setting in the .cbp file to 
 entice QtCreator to load those paths as framework paths? This would at 
 least let me figure out where the problem needs to be corrected (If it ever 
 will be).
 
 Thanks
 Mike Jackson
 
 

And just to follow this up a bit I decided to take my self built Qt 5.3.1 out 
of the equation and load everything using the download from qt-project.org. 
These same problems also appear so it really does appear there is a problem 
with detecting frameworks on OS X, using CMake as the base system to generate 
all the build files.

this sort of amazes me in the fact that there must be _nobody_ using Qt5 + 
CMake + QtCreator to build their applications. No wonder OS X doesn't get any 
love on QtCreator.

Cheers
Mike Jackson


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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-17 Thread Michael Jackson

On Nov 17, 2014, at 10:59 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
wrote:

 On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar 
 nikolai.kos...@theqtcompany.com wrote:
 ...
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 
 Most of the include directories for my project are missing.
 
 This looks like a bug or un-implemented feature in the CMakeProject
 (manager).
 
 Please file a bug report at https://bugreports.qt-project.org/ against
 the component Project  Buildmanagemant.
 
 Nikolai
 


https://bugreports.qt-project.org/browse/QTCREATORBUG-13432

Cheers
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-14 Thread Nikolai Kosjar
Hi!

On Thu, 13. Nov 12:36, Michael Jackson wrote:
 The issue is that QtCreator can not seem to locate any Qt Header. There is a 
 red squiggly line under #include QtCore/QObject and then none of the syntax 
 highlighting works after that.

Please check what the Code model gets as input from the Project
(managers):

1) Open a file with unresolved includes
2) Open Menu: Tools  C++  Inspect C++ Code Model
3) There, switch to the Project Parts tab and the sub tab Header
Paths - check that the includes are reasonable, especially that there
is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 

Nikolai

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-14 Thread Nikolai Kosjar
On Thu, 13. Nov 10:17, Steve Atkins wrote:
 Tools - C++ - Inspect C++ Code Model might be useful (or it might cause 
 Creator to unceremoniously crash: save everything first).

Recently I've fixed a crash for the case that you call the dialog
while having the clang code model activated. I'm not aware of any
other crashes. If you are, please report.

Nikolai

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-14 Thread Michael Jackson

On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
wrote:

 Hi!
 
 On Thu, 13. Nov 12:36, Michael Jackson wrote:
 The issue is that QtCreator can not seem to locate any Qt Header. There is a 
 red squiggly line under #include QtCore/QObject and then none of the 
 syntax highlighting works after that.
 
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 Nikolai
 

Most of the include directories for my project are missing. Where does it 
pickup the include paths? The .cbp file? None of the Qt frameworks are there. 
And all the other include paths for my project (Qwt, Boost, HDF5) are all 
missing also. Ideas?

Thanks
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-14 Thread Michael Jackson

On Nov 14, 2014, at 3:34 AM, Nikolai Kosjar nikolai.kos...@theqtcompany.com 
wrote:

 Hi!
 
 On Thu, 13. Nov 12:36, Michael Jackson wrote:
 The issue is that QtCreator can not seem to locate any Qt Header. There is a 
 red squiggly line under #include QtCore/QObject and then none of the 
 syntax highlighting works after that.
 
 Please check what the Code model gets as input from the Project
 (managers):
 
 1) Open a file with unresolved includes
 2) Open Menu: Tools  C++  Inspect C++ Code Model
 3) There, switch to the Project Parts tab and the sub tab Header
 Paths - check that the includes are reasonable, especially that there
 is sth. like ${PATH_TO_QT_INSTALL}/5.4/gcc_64/include/QtCore 
 
 Nikolai
 
Here are some of the include paths for the project:

/Users/Shared/Toolkits/Qt-5.3.1/lib/QtConcurrent.framework/Headers (include 
path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtCore.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtGui.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtNetwork.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtOpenGL.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtPrintSupport.framework/Headers (include 
path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtScript.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtSvg.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtWidgets.framework/Headers (include path)
/Users/Shared/Toolkits/Qt-5.3.1/lib/QtXml.framework/Headers (include path)

I will guess that the code model does not under stand the combination of

#include QtCore/QObject and that file residing in a framework on OS X. In my 
Qt4 build there is an actual Qt-4.8.6/include/QtCore/QObject file for the 
include which is why it works under Qt4. With Qt5 proper frameworks have been 
created where the headers are installed into the frameworks and QtCreator's 
code model just does not understand how to parse apart a framework.

I guess I could change all my #include to remove the module but that really 
should not be needed as the code compiles just fine the way it is (on all 
platforms).

Of course I could be completely wrong about all of this…

Thanks
Mike Jackson

PS: Installed a Ubuntu 14.04 desktop and QtCreator and that is what I call a 
proper debugging environment. Just wish I could have that on OS X.

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-13 Thread Steve Atkins

On Nov 13, 2014, at 9:36 AM, Michael Jackson imikejack...@gmail.com wrote:

 Setup: OS X 10.8.5, Xcode 5.1.x, QtCreator 3.2.1.
 
 I have a pair of Kits setup: Qt 4.8.6 and Qt 5.3.1. Both are self built. My 
 project is CMake based. I have no problems Opening my project and all that. 
 I change the kit to my Qt 5.3.1 installation. Everything compiles fine. The 
 issue is that QtCreator can not seem to locate any Qt Header. There is a red 
 squiggly line under #include QtCore/QObject and then none of the syntax 
 highlighting works after that. I


When I've seen this with qmake projects it's been because the .pro file was 
valid enough to be parsed correctly by qmake, but had errors in it that caused 
Creator to fail to parse it. Tools - C++ - Inspect C++ Code Model might be 
useful (or it might cause Creator to unceremoniously crash: save everything 
first).

There are also some environment variables you can set to get more diagnostics, 
if the code model window doesn't have anything useful.


 was hoping to move to Qt 5.x for our project in order to see if the debugging 
 experience is any better using Qt 5 versus Qt 4 with Xcode 5.x. LLDB and 
 QtCreator just seem to not really like each other at this point.

I've not seen debugging work usefully on OS X for an age, regardless of Qt 
version.

Cheers,
  Steve

 
 Any helpful advice would be extremely appreciated at this point. We about 
 ready to throw up our hands in desperation and switch to something else as 
 our IDE. I think we are just missing something simple on our OS X machines in 
 order to set them up properly for a great debugging experience*
 
 Thanks
 Mike Jackson
 BlueQuartz Sofware
 
 *Python usually locks up, Simple Variables like QString do not show there 
 values, let along a QMap, QSet or QVector.
 ___
 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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-13 Thread Tobias Hunger
Hi
Am 13.11.2014 18:37 schrieb Michael Jackson imikejack...@gmail.com:

 Setup: OS X 10.8.5, Xcode 5.1.x, QtCreator 3.2.1.

 I have a pair of Kits setup: Qt 4.8.6 and Qt 5.3.1. Both are self built.
My project is CMake based. I have no problems Opening my project and all
that. I change the kit to my Qt 5.3.1 installation. Everything compiles
fine. The issue is that QtCreator can not seem to locate any Qt Header.
There is a red squiggly line under #include QtCore/QObject and then none
of the syntax highlighting works after that. I was hoping to move to Qt 5.x
for our project in order to see if the debugging experience is any better
using Qt 5 versus Qt 4 with Xcode 5.x. LLDB and QtCreator just seem to not
really like each other at this point.

With cmake projects just switching kits is not enough! That will have
Creator use the new settings, but you actually need to tell qmake all the
nitty gritty details of your setup, too. My guess is that the include paths
that Creator extracts from CMake are still pointing to your previous Qt4
setup.

Switching to Qt5 will unfortunately not improve the debugging experience.
Those two are pretty independent from each other.

 Any helpful advice would be extremely appreciated at this point. We about
ready to throw up our hands in desperation and switch to something else as
our IDE. I think we are just missing something simple on our OS X machines
in order to set them up properly for a great debugging experience*

Sorry, I can not help with that part. I did not do anything with LLDB on
Mac yet.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-13 Thread Michael Jackson

On Nov 13, 2014, at 1:44 PM, Tobias Hunger tobias.hun...@gmail.com wrote:

 Hi
 Am 13.11.2014 18:37 schrieb Michael Jackson imikejack...@gmail.com:
 
  Setup: OS X 10.8.5, Xcode 5.1.x, QtCreator 3.2.1.
 
  I have a pair of Kits setup: Qt 4.8.6 and Qt 5.3.1. Both are self built. My 
  project is CMake based. I have no problems Opening my project and all 
  that. I change the kit to my Qt 5.3.1 installation. Everything compiles 
  fine. The issue is that QtCreator can not seem to locate any Qt Header. 
  There is a red squiggly line under #include QtCore/QObject and then none 
  of the syntax highlighting works after that. I was hoping to move to Qt 5.x 
  for our project in order to see if the debugging experience is any better 
  using Qt 5 versus Qt 4 with Xcode 5.x. LLDB and QtCreator just seem to not 
  really like each other at this point.
 
 With cmake projects just switching kits is not enough! That will have Creator 
 use the new settings, but you actually need to tell qmake all the nitty 
 gritty details of your setup, too. My guess is that the include paths that 
 Creator extracts from CMake are still pointing to your previous Qt4 setup.
 
 Switching to Qt5 will unfortunately not improve the debugging experience. 
 Those two are pretty independent from each other. 
 
  Any helpful advice would be extremely appreciated at this point. We about 
  ready to throw up our hands in desperation and switch to something else as 
  our IDE. I think we are just missing something simple on our OS X machines 
  in order to set them up properly for a great debugging experience*
 
 Sorry, I can not help with that part. I did not do anything with LLDB on Mac 
 yet.
 
I have completely separate build directories for the Qt4 and Qt5 builds. I 
should have been more clear. Thanks for the feedback on using QtCreator on OS X 
and actually trying to debug. It really does look like it is a lost cause to do 
anything other than trivial debugging under OS X with Qt.

My employee and I sat down this afternoon to fire up a Ubuntu 14.04 VM for 
development and we finally got our codes up and running and were able to debug 
deep into our data structures using QtCreator/GDB/GCC 4.8 combination.I guess 
we are going to fire up some more VMs with Ubuntu and may start switching over 
our developers to that platform. A Shame that we can not use our OS X machines 
with OS X native tools.

Anyone have any thoughts on Qt5 with the Visual Studio Plugin for Qt? Does it 
give satisfactory results?

Thanks
Mike Jackson

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


Re: [Qt-creator] Creator Can not locate Qt Headers

2014-11-13 Thread Tobias Hunger
On Nov 13, 2014 10:02 PM, Michael Jackson imikejack...@gmail.com wrote:
 I have completely separate build directories for the Qt4 and Qt5 builds.
I should have been more clear. Thanks for the feedback on using QtCreator
on OS X and actually trying to debug. It really does look like it is a lost
cause to do anything other than trivial debugging under OS X with Qt.

Did you pass the proper configuration flags for Qt5 to cmake? Creator will
not do that for you.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator