Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-20 Thread Stephen Kelly
On Wednesday, July 04, 2012 16:54:54 Stephen Kelly wrote:
 On Monday, July 02, 2012 15:06:34 Stephen Kelly wrote:
   The headers that are not being copied during a developer build cause
   build errors like this:
   myheaderfile.h:4:31: error: QQuickImageProvider: No such file or
   directory
  
  Ok, can you post the full path of the Qt5QmlConfig.cmake you want to
  use, the full path of the Qt5CoreConfig.cmake you want to use, and the
  full path of the QQuickImageProvider you want to use?
  
  I'm trying to understand why the existing path is 'wrong'.
 
 Just FYI, I think the CI system hit the same bug as you:
 
 https://codereview.qt-project.org/#change,29241
 
 The fix likely is going to be to copy the headers (along with the libs,
 cmake files, and everything else which is already there) to the qtbase
 location at build time if doing a developer-build, but we need to talk to
 mariusso about it.

The required fixes have landed in the repo. 

Could you test again with unmodified cmake files?

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

signature.asc
Description: This is a digitally signed message part.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-05 Thread Stephen Kelly
On Wednesday, July 04, 2012 17:03:39 you wrote:
 Hi Stephen,
 
  Ok, can you post the full path of the Qt5QmlConfig.cmake you want to
  use,
  the full path of the Qt5CoreConfig.cmake you want to use,
 
 All the config files are found in qtbase:
 
 njeiseck ~/projects/qt/qt5 (master)$ find . -name Qt5*Config.cmake
 ./qtbase/lib/cmake/Qt53D/Qt53DConfig.cmake

Yep, and so are the libraries to link to, but not the include headers.

This is indeed the same issue CI is hitting as I wrote before.

https://codereview.qt-project.org/#change,29241

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

signature.asc
Description: This is a digitally signed message part.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-04 Thread Stephen Kelly
On Monday, July 02, 2012 15:06:34 Stephen Kelly wrote:
  The headers that are not being copied during a developer build cause
  build errors like this:
  myheaderfile.h:4:31: error: QQuickImageProvider: No such file or 
  directory
 
 Ok, can you post the full path of the Qt5QmlConfig.cmake you want to 
 use, the full path of the Qt5CoreConfig.cmake you want to use, and the 
 full path of the QQuickImageProvider you want to use?
 
 I'm trying to understand why the existing path is 'wrong'.

Just FYI, I think the CI system hit the same bug as you:

https://codereview.qt-project.org/#change,29241

The fix likely is going to be to copy the headers (along with the libs, cmake 
files, and everything else which is already there) to the qtbase location at 
build time if doing a developer-build, but we need to talk to mariusso about 
it.

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

signature.asc
Description: This is a digitally signed message part.
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-04 Thread Nils Jeisecke
Hi Stephen,

 Ok, can you post the full path of the Qt5QmlConfig.cmake you want to use,
 the full path of the Qt5CoreConfig.cmake you want to use,

All the config files are found in qtbase:

njeiseck ~/projects/qt/qt5 (master)$ find . -name Qt5*Config.cmake
./qtbase/lib/cmake/Qt53D/Qt53DConfig.cmake
./qtbase/lib/cmake/Qt53DQuick/Qt53DQuickConfig.cmake
./qtbase/lib/cmake/Qt5AddOnGallery/Qt5AddOnGalleryConfig.cmake
./qtbase/lib/cmake/Qt5Bluetooth/Qt5BluetoothConfig.cmake
./qtbase/lib/cmake/Qt5CLucene/Qt5CLuceneConfig.cmake
./qtbase/lib/cmake/Qt5Concurrent/Qt5ConcurrentConfig.cmake
./qtbase/lib/cmake/Qt5Contacts/Qt5ContactsConfig.cmake
./qtbase/lib/cmake/Qt5Core/Qt5CoreConfig.cmake
./qtbase/lib/cmake/Qt5Designer/Qt5DesignerConfig.cmake
./qtbase/lib/cmake/Qt5DesignerComponents/Qt5DesignerComponentsConfig.cmake
./qtbase/lib/cmake/Qt5Feedback/Qt5FeedbackConfig.cmake
./qtbase/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake
./qtbase/lib/cmake/Qt5Help/Qt5HelpConfig.cmake
./qtbase/lib/cmake/Qt5JsonDb/Qt5JsonDbConfig.cmake
./qtbase/lib/cmake/Qt5JsonDbCompat/Qt5JsonDbCompatConfig.cmake
./qtbase/lib/cmake/Qt5JsonDbPartition/Qt5JsonDbPartitionConfig.cmake
./qtbase/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake
./qtbase/lib/cmake/Qt5Location/Qt5LocationConfig.cmake
./qtbase/lib/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake
./qtbase/lib/cmake/Qt5MultimediaWidgets/Qt5MultimediaWidgetsConfig.cmake
./qtbase/lib/cmake/Qt5Network/Qt5NetworkConfig.cmake
./qtbase/lib/cmake/Qt5OpenGL/Qt5OpenGLConfig.cmake
./qtbase/lib/cmake/Qt5Organizer/Qt5OrganizerConfig.cmake
./qtbase/lib/cmake/Qt5phonon/Qt5phononConfig.cmake
./qtbase/lib/cmake/Qt5PlatformSupport/Qt5PlatformSupportConfig.cmake
./qtbase/lib/cmake/Qt5PrintSupport/Qt5PrintSupportConfig.cmake
./qtbase/lib/cmake/Qt5PublishSubscribe/Qt5PublishSubscribeConfig.cmake
./qtbase/lib/cmake/Qt5Qml/Qt5QmlConfig.cmake
./qtbase/lib/cmake/Qt5QmlDevTools/Qt5QmlDevToolsConfig.cmake
./qtbase/lib/cmake/Qt5Quick/Qt5QuickConfig.cmake
./qtbase/lib/cmake/Qt5Quick1/Qt5Quick1Config.cmake
./qtbase/lib/cmake/Qt5QuickParticles/Qt5QuickParticlesConfig.cmake
./qtbase/lib/cmake/Qt5QuickTest/Qt5QuickTestConfig.cmake
./qtbase/lib/cmake/Qt5Script/Qt5ScriptConfig.cmake
./qtbase/lib/cmake/Qt5ScriptTools/Qt5ScriptToolsConfig.cmake
./qtbase/lib/cmake/Qt5Sensors/Qt5SensorsConfig.cmake
./qtbase/lib/cmake/Qt5ServiceFramework/Qt5ServiceFrameworkConfig.cmake
./qtbase/lib/cmake/Qt5Sql/Qt5SqlConfig.cmake
./qtbase/lib/cmake/Qt5Svg/Qt5SvgConfig.cmake
./qtbase/lib/cmake/Qt5SystemInfo/Qt5SystemInfoConfig.cmake
./qtbase/lib/cmake/Qt5Test/Qt5TestConfig.cmake
./qtbase/lib/cmake/Qt5UiTools/Qt5UiToolsConfig.cmake
./qtbase/lib/cmake/Qt5V8/Qt5V8Config.cmake
./qtbase/lib/cmake/Qt5Versit/Qt5VersitConfig.cmake
./qtbase/lib/cmake/Qt5VersitOrganizer/Qt5VersitOrganizerConfig.cmake
./qtbase/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake
./qtbase/lib/cmake/Qt5Xml/Qt5XmlConfig.cmake
./qtbase/lib/cmake/Qt5XmlPatterns/Qt5XmlPatternsConfig.cmake

 and the full path
 of the QQuickImageProvider you want to use?

njeiseck ~/projects/qt/qt5 (master)$ find . -name QQuickImageProvider
./qtbase/lib/QtQuick.framework/Versions/5/Headers/QQuickImageProvider
./qtdeclarative/include/QtQuick/QQuickImageProvider

The header inside the framework seems useless though.

Nils
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-02 Thread Nils Jeisecke
Hi,

 Just to be clear - it works with the modules in qtbase, but not with the
 ones that depend on qtbase?
My module list:
qt5_use_modules(ctimon Gui Core Concurrent Widgets Xml Sql Network
OpenGL Quick Qml)

I've only ran into problems with QtQuick and QtQml which are both not
part of qtbase. All other modules are working fine.

 Are you building qtbase on its own (and not installing it) and then
 qtdeclarative on its own (and not installing that either)?
 Or are you using qt5.git?
qt5.git as described on http://qt-project.org/wiki/Building-Qt-5-from-Git

 What is your Qt configure line?
I'm using the -developer-build switch so no install should be necessary:
./configure -developer-build -opensource -nomake examples -nomake tests
./build

 Do you set CMAKE_PREFIX_PATH? To what?
/Users/njeiseck/projects/qt/qt5/qtbase
Setting  /Users/njeiseck/projects/qt/qt5 didn't work.

 Do you use -frameworks?
This is default on Mac OS X. So, yes.

 What are the relevant paths for your repos/install dirs/etc?
Base path of qt5.git working copy:
/Users/njeiseck/projects/qt/qt5

Submodules:
/Users/njeiseck/projects/qt/qtbase
etc...

 What happens if you install? Does it work then?
I'm going to try that and post an update later.

Thanks!

Nils
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-02 Thread Stephen Kelly

Hi,

Thanks for the info.


On Monday, July 02, 2012 12:14:14 Nils Jeisecke wrote:
 Hi,

  Do you set CMAKE_PREFIX_PATH? To what?

 /Users/njeiseck/projects/qt/qt5/qtbase
 Setting  /Users/njeiseck/projects/qt/qt5 didn't work.

You need to set CMAKE_PREFIX_PATH to

/Users/njeiseck/projects/qt/qt5/qtbase:/Users/njeiseck/projects/qt/qt5/qtdeclarative

And possibly also list other modules too. The list in the env var is 
used in a
loop like this:

for dir in list:
 look for the CMake files in 'dir + /lib/cmake'

For the CMake files, I expected installation, which would put all of 
the libs
and cmake files in the same prefix, and which would likely 'fix' the 
problem.

I'm not sure how qmake handles this.

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-02 Thread Nils Jeisecke
Hi,

Update:

1) Qt installed with make instalL
The cmake stuff just works. Set
CMAKE_PREFIX_PATH=/usr/local/Qt-5.0.0 and you're done.

2) Developer build without install (in source build, still couldn't
manage to finish a working shadow build)
Set CMAKE_PREFIX_PATH=/path/to/qt_build/qtbase:/path/to/qt_build/qtdeclarative
(and other modules)

So everything is basically working if you know the trick ;-)

Would it be worth enhancing the Qt5 cmake documentation or is
developing with Qt using a Qt developer build considered a rather
special case?

Thanks!

Nils
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-02 Thread Nils Jeisecke
Oops, I was a little bit too fast.

 2) Developer build without install (in source build, still couldn't
 manage to finish a working shadow build)
The cmake run works but the actual build does not.

For the cmake run it is sufficient to set CMAKE_PREFIX_PATH to qtbase
because there it finds all the necessary Qt5QmlConfig.cmake and
Qt5QuickConfig.cmake files.

The headers that are not being copied during a developer build cause
build errors like this:
myheaderfile.h:4:31: error: QQuickImageProvider: No such file or directory

So I still have to apply the patch to the generated config files to
point to the original include files as shown in my initial post.

Nils
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-07-02 Thread Stephen Kelly
On 02.07.2012 14:35, Nils Jeisecke wrote:
 Oops, I was a little bit too fast.

 2) Developer build without install (in source build, still couldn't
 manage to finish a working shadow build)
 The cmake run works but the actual build does not.

 For the cmake run it is sufficient to set CMAKE_PREFIX_PATH to qtbase
 because there it finds all the necessary Qt5QmlConfig.cmake and
 Qt5QuickConfig.cmake files.

I'm surprised that those config files are found even if you only have 
the qtbase path in your CMAKE_PREFIX_PATH.


 The headers that are not being copied during a developer build cause
 build errors like this:
 myheaderfile.h:4:31: error: QQuickImageProvider: No such file or 
 directory

Ok, can you post the full path of the Qt5QmlConfig.cmake you want to 
use, the full path of the Qt5CoreConfig.cmake you want to use, and the 
full path of the QQuickImageProvider you want to use?

I'm trying to understand why the existing path is 'wrong'.

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] cmake files for qt5 problems with Qt5Quick/Qt5Qml modules on Mac OS X

2012-06-30 Thread Stephen Kelly
On Friday, June 29, 2012 20:44:13 Nils Jeisecke wrote:
 Hi,

 I'm using cmake for building my stuff so the new cmake support
 directly in Qt5 is really appreciated. Thanks Stephen and KDAB!

Thanks for trying it out :)

 There's a problem with the Qt5Quick and Qt5Qml modules though. The
 generated configuration files don't work and I had to make some
 adjustments to let things build.

Just to be clear - it works with the modules in qtbase, but not with 
the ones
that depend on qtbase?


 qtbase is on 4182a3afac5321b21496ae276446e3ba46d29fd4.

 My platform is
 - Mac OS X
 - in source tree build
 - no install

This is the problem, I expect. Can you say more?

Are you building qtbase on its own (and not installing it) and then
qtdeclarative on its own (and not installing that either)?
Or are you using qt5.git?
What is your Qt configure line?
Do you use -frameworks?
Do you set CMAKE_PREFIX_PATH? To what?
What are the relevant paths for your repos/install dirs/etc?
What happens if you install? Does it work then?

I'm attempting to get the CI system to run the CMake module unit tests, 
but
they're awaiting review for the moment. Maybe we'll get some answers 
next
week, but I'd be interested in your answers too.

Thanks,

-- 
Stephen Kelly stephen.ke...@kdab.com | Software Engineer
KDAB (Deutschland) GmbH  Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development