Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-14 Thread Thiago Macieira
Em sex 09 maio 2014, às 16:53:20, Yuchen Deng escreveu:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?
 
 make install_docs INSTALL_ROOT=$PWD/qt install.log 21
 
 2014-05-09 10:21 GMT+08:00 Thiago Macieira thiago.macie...@intel.com:
  make install; make docs; make install_docs

By the way, if you're building packages, you should use the split sources and 
then this just becomes a dependency cycle.

You need to have Qt 5 installed in order to build Qt 5 docs. That is, qdoc 
must exist at the time you're building qtbase.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-14 Thread Thiago Macieira
Em qua 14 maio 2014, às 20:17:34, Thiago Macieira escreveu:
 Em sex 09 maio 2014, às 16:53:20, Yuchen Deng escreveu:
  If I have to do `make install` first, then I can't use `make install
  INSTALL_ROOT=$PWD/qt` anymore.
  It's means INSTALL_ROOT does not support for this case?
  
  make install_docs INSTALL_ROOT=$PWD/qt install.log 21
  
  2014-05-09 10:21 GMT+08:00 Thiago Macieira thiago.macie...@intel.com:
   make install; make docs; make install_docs
 
 By the way, if you're building packages, you should use the split sources
 and then this just becomes a dependency cycle.
 
 You need to have Qt 5 installed in order to build Qt 5 docs. That is, qdoc
 must exist at the time you're building qtbase.

Hmm... that's probably easily fixable by setting LD_LIBRARY_PATH to the not-
yet-installed qdoc when building qtbase docs which it already does.

For all of the other modules, just install the qtbase package and, therefore, 
$prefix/bin/qdoc will exist.

The above is valid for html_docs. In order to build the qch_docs, qttools must 
have already been built. That creates a build cycle dependency.  I guess Linux 
distributions that will rebuild documentation will simply skip the .qch files.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Yuchen Deng
If I have to do `make install` first, then I can't use `make install
INSTALL_ROOT=$PWD/qt` anymore.
It's means INSTALL_ROOT does not support for this case?

make install_docs INSTALL_ROOT=$PWD/qt install.log 21
2014-05-09 10:21 GMT+08:00 Thiago Macieira thiago.macie...@intel.com:

 make install; make docs; make install_docs





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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Giuseppe D'Angelo
On 9 May 2014 10:53, Yuchen Deng loa...@gmail.com wrote:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?

What do you mean? make install will install in the directory you
chose with the -prefix option. Why do you want to override that now?

-- 
Giuseppe D'Angelo
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Ray Donnelly
On Fri, May 9, 2014 at 10:05 AM, Giuseppe D'Angelo dange...@gmail.com wrote:
 On 9 May 2014 10:53, Yuchen Deng loa...@gmail.com wrote:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?

 What do you mean? make install will install in the directory you
 chose with the -prefix option. Why do you want to override that now?


-prefix is where you want it to finally end up on the users' computer,
but INSTALL_ROOT is where you want it to get installed to so you can
package it cleanly.. usually.

 --
 Giuseppe D'Angelo
 ___
 Development mailing list
 Development@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Giuseppe D'Angelo
On 9 May 2014 15:16, Ray Donnelly mingw.andr...@gmail.com wrote:
 On Fri, May 9, 2014 at 10:05 AM, Giuseppe D'Angelo dange...@gmail.com wrote:
 On 9 May 2014 10:53, Yuchen Deng loa...@gmail.com wrote:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?

 What do you mean? make install will install in the directory you
 chose with the -prefix option. Why do you want to override that now?


 -prefix is where you want it to finally end up on the users' computer,
 but INSTALL_ROOT is where you want it to get installed to so you can
 package it cleanly.. usually.

You can't package it in any other place rather than -prefix. Just use
make install before make docs.

-- 
Giuseppe D'Angelo
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Ray Donnelly
You're repeating yourself without adding any explanatory information.

When releasing software for other people to use, normally you'd
package it elsewhere to -prefix, otherwise how do you untangle the Qt
files from the rest of your files?

As an example of this, from Arch Linux's Qt5 packaging function in the PKGBUILD:

package_qt5-base() {
..
  cd ${_pkgfqn}/qtbase
  make INSTALL_ROOT=${pkgdir} install


On Fri, May 9, 2014 at 2:21 PM, Giuseppe D'Angelo dange...@gmail.com wrote:
 On 9 May 2014 15:16, Ray Donnelly mingw.andr...@gmail.com wrote:
 On Fri, May 9, 2014 at 10:05 AM, Giuseppe D'Angelo dange...@gmail.com 
 wrote:
 On 9 May 2014 10:53, Yuchen Deng loa...@gmail.com wrote:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?

 What do you mean? make install will install in the directory you
 chose with the -prefix option. Why do you want to override that now?


 -prefix is where you want it to finally end up on the users' computer,
 but INSTALL_ROOT is where you want it to get installed to so you can
 package it cleanly.. usually.

 You can't package it in any other place rather than -prefix. Just use
 make install before make docs.

 --
 Giuseppe D'Angelo
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Koehne Kai


 -Original Message-
 From: development-bounces+kai.koehne=digia@qt-project.org
 [...]
 -prefix is where you want it to finally end up on the users' computer, but
 INSTALL_ROOT is where you want it to get installed to so you can package it
 cleanly.. usually.

You should be able to do s.th. like

$ make  make install
$ make docs
$ make install INSTALLROOT=$PWD/qt
$ make install_docs INSTALLROOT=$PWD/qt


Regards

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Sean Harmer
On 09/05/2014 23:15, Ray Donnelly wrote:
 You're repeating yourself without adding any explanatory information.

 When releasing software for other people to use, normally you'd
 package it elsewhere to -prefix, otherwise how do you untangle the Qt
 files from the rest of your files?

 As an example of this, from Arch Linux's Qt5 packaging function in the 
 PKGBUILD:

 package_qt5-base() {
 ..
cd ${_pkgfqn}/qtbase
make INSTALL_ROOT=${pkgdir} install
Gentoo solves this by building packages in a sandbox. If Arch doesn't 
provide such a sand-boxed environment for package building then perhaps 
use a chroot to similar effect?

Cheers,

Sean

-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Thiago Macieira
Em sex 09 maio 2014, às 14:01:52, Koehne Kai escreveu:
  -Original Message-
  From: development-bounces+kai.koehne=digia@qt-project.org
  [...]
  -prefix is where you want it to finally end up on the users' computer, but
  INSTALL_ROOT is where you want it to get installed to so you can package
  it
  cleanly.. usually.
 
 You should be able to do s.th. like
 
 $ make  make install
 $ make docs
 $ make install INSTALLROOT=$PWD/qt
 $ make install_docs INSTALLROOT=$PWD/qt

Yuchen is right: he can't do that make install.

I haven't checked, but maybe this will work:

make
make install INSTALL_ROOT=$foo
make docs INSTALL_ROOT=$foo
make install_docs INSTALL_ROOT=$foo

But I guess it won't.

The point is that make docs wants to use the installed qdoc, not the one 
that was compiled but not yet installed.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Sergio Ahumada
El 09/05/14 16:01, Koehne Kai escribió:


 -Original Message-
 From: development-bounces+kai.koehne=digia@qt-project.org
 [...]
 -prefix is where you want it to finally end up on the users' computer, but
 INSTALL_ROOT is where you want it to get installed to so you can package it
 cleanly.. usually.

 You should be able to do s.th. like

 $ make  make install
 $ make docs
 $ make install INSTALLROOT=$PWD/qt
 $ make install_docs INSTALLROOT=$PWD/qt


At least what we do in the packaging scripts is:

# qt
make
make install INSTALL_ROOT=blah

# docs
make qmake_all
make install
make docs
make -j1 install_docs INSTALL_ROOT=blah

Not sure whether all the steps are needed though.

Cheers,

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Thiago Macieira
Em sex 09 maio 2014, às 19:19:29, Sergio Ahumada escreveu:
 # docs
 make qmake_all
 make install
 make docs
 make -j1 install_docs INSTALL_ROOT=blah
 
 Not sure whether all the steps are needed though.

Can't do make install.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Joseph Crowell
Any idea why the Qt examples can't be found anywhere in the arch 
packages and are of course not listed in Creator?

On 5/9/2014 11:45 PM, Ray Donnelly wrote:
 You're repeating yourself without adding any explanatory information.

 When releasing software for other people to use, normally you'd
 package it elsewhere to -prefix, otherwise how do you untangle the Qt
 files from the rest of your files?

 As an example of this, from Arch Linux's Qt5 packaging function in the 
 PKGBUILD:

 package_qt5-base() {
 ..
cd ${_pkgfqn}/qtbase
make INSTALL_ROOT=${pkgdir} install


 On Fri, May 9, 2014 at 2:21 PM, Giuseppe D'Angelo dange...@gmail.com wrote:
 On 9 May 2014 15:16, Ray Donnelly mingw.andr...@gmail.com wrote:
 On Fri, May 9, 2014 at 10:05 AM, Giuseppe D'Angelo dange...@gmail.com 
 wrote:
 On 9 May 2014 10:53, Yuchen Deng loa...@gmail.com wrote:
 If I have to do `make install` first, then I can't use `make install
 INSTALL_ROOT=$PWD/qt` anymore.
 It's means INSTALL_ROOT does not support for this case?
 What do you mean? make install will install in the directory you
 chose with the -prefix option. Why do you want to override that now?

 -prefix is where you want it to finally end up on the users' computer,
 but INSTALL_ROOT is where you want it to get installed to so you can
 package it cleanly.. usually.
 You can't package it in any other place rather than -prefix. Just use
 make install before make docs.

 --
 Giuseppe D'Angelo
 ___
 Development mailing list
 Development@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/development

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-09 Thread Yuchen Deng
2014-05-10 0:08 GMT+08:00 Thiago Macieira thiago.macie...@intel.com:

 I haven't checked, but maybe this will work:

 make
 make install INSTALL_ROOT=$foo
 make docs INSTALL_ROOT=$foo
 make install_docs INSTALL_ROOT=$foo

 But I guess it won't.

 The point is that make docs wants to use the installed qdoc, not the one
 that was compiled but not yet installed.


yes, it won't work.
so, seems it's a bug, reported in here:
https://bugreports.qt-project.org/browse/QTBUG-38882


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


[Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-08 Thread Yuchen Deng
hi, list!
This issue been for a long while.
my Qt5.3 config options:

../Qt5/configure *-prefix /opt/qt5* -force-debug-info -separate-debug-info
 -platform linux-g++ -opensource -confirm-license -qt-zlib -qt-libpng
 -qt-libjpeg -qt-xcb -qt-xkbcommon -no-compile-examples -skip
 qtandroidextras -skip qtwebkit config.log 21


The `make` step just fine. I can finish the build process.
The issue only happen when execute `make docs`.

here is the full log for `make docs` on Ubuntu 14.04.


 make -f Makefile html_docs  make -f Makefile qch_docs
 make[1]: Entering directory `/home/loaden/qpSOFT/Projects/BuildQt5'
 make -f Makefile prepare_docs  make -f Makefile generate_docs
 make[2]: Entering directory `/home/loaden/qpSOFT/Projects/BuildQt5'
 cd qtbase/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/qtbase.pro -o Makefile )  make -f 
 Makefile prepare_docs
 make[3]: Entering directory `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase'
 cd src/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/src.pro -o Makefile )  make -f 
 Makefile prepare_docs
 make[4]: Entering directory `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src'
 cd tools/bootstrap/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/tools/bootstrap/bootstrap.pro -o 
 Makefile )  make -f Makefile prepare_docs
 make[5]: Entering directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/bootstrap'
 make[5]: Nothing to be done for `prepare_docs'.
 make[5]: Leaving directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/bootstrap'
 cd tools/moc/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/tools/moc/moc.pro -o Makefile ) 
  make -f Makefile prepare_docs
 make[5]: Entering directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/moc'
 make[5]: Nothing to be done for `prepare_docs'.
 make[5]: Leaving directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/moc'
 cd tools/rcc/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/tools/rcc/rcc.pro -o Makefile ) 
  make -f Makefile prepare_docs
 make[5]: Entering directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/rcc'
 make[5]: Nothing to be done for `prepare_docs'.
 make[5]: Leaving directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/tools/rcc'
 cd corelib/  ( test -e Makefile || 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/bin/qmake 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/corelib/corelib.pro -o Makefile ) 
  make -f Makefile prepare_docs
 make[5]: Entering directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/corelib'
 QT_INSTALL_DOCS=/home/loaden/qpSOFT/Projects/Qt5/qtbase/doc 
 QT_VERSION_TAG=530 QT_VER=5.3 QT_VERSION=5.3.0 /opt/qt5/bin/qdoc -outputdir 
 /home/loaden/qpSOFT/Projects/BuildQt5/qtbase/doc/qtcore -installdir 
 /opt/qt5/doc 
 /home/loaden/qpSOFT/Projects/Qt5/qtbase/src/corelib/doc/qtcore.qdocconf 
 -prepare -no-link-errors
 /bin/sh: 1: /opt/qt5/bin/qdoc: not found
 make[5]: *** [prepare_docs] Error 127
 make[5]: Leaving directory 
 `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src/corelib'
 make[4]: *** [sub-corelib-prepare_docs] Error 2
 make[4]: Leaving directory `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase/src'
 make[3]: *** [sub-src-prepare_docs] Error 2
 make[3]: Leaving directory `/home/loaden/qpSOFT/Projects/BuildQt5/qtbase'
 make[2]: *** [module-qtbase-prepare_docs] Error 2
 make[2]: Leaving directory `/home/loaden/qpSOFT/Projects/BuildQt5'
 make[1]: *** [html_docs] Error 2
 make[1]: Leaving directory `/home/loaden/qpSOFT/Projects/BuildQt5'
 make: *** [docs] Error 2

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


Re: [Development] `/opt/qt5/bin/qdoc: not found` with `-prefix /opt/qt5` config

2014-05-08 Thread Thiago Macieira
Em sex 09 maio 2014, às 10:11:21, Yuchen Deng escreveu:
 The `make` step just fine. I can finish the build process.
 The issue only happen when execute `make docs`.

You probably need to do make install; make docs; make install_docs.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

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