Am 07.07.2013 um 15:59 schrieb Georg Ritter <georg2...@photon.at>:

> On 07/07/13 13:47, Stephan Witt wrote:
>> Am 07.07.2013 um 13:39 schrieb Georg Ritter <georg2...@photon.at>:
>> 
>>> Dear lyx team,
>>> 
>>> I just pulled the sources from git an noticed the following:
>>> 
>>> If ./configure --with-qt4-dir=/my/qt4dir482/ is specified, the build
>>> system should pickup and use:
>>> /my/qt4dir/bin/moc
>>> 
>>> but it did use /usr/bin/moc-qt4 on my system (ubuntu 9.10) and got
>>> confused (as the system one is 4.5.2).
>> 
>> This shouldn't happen. Did you check configure.log to diagnose the problem?
> The config.log showed that it picks up RCC4 correctly, but not MOC4 and UIC4
> 
> relevant (full config.log is [1]) section:
> 
> ac_cv_path_MOC4=/usr/bin/moc-qt4
> ac_cv_path_MSGFMT=/usr/bin/msgfmt
> ac_cv_path_MSGMERGE=/usr/bin/msgmerge
> ac_cv_path_PYTHON=/usr/bin/python
> ac_cv_path_RCC4=/opt/qt-everywhere-opensource-src-4.8.2///bin/rcc
> ac_cv_path_UIC4=/usr/bin/uic-qt4
> 
>> Perhaps your /my/qt4dir482 is not a developer package?
> Correct, it is a local qt installation using
> --prefix=/opt/qt-everywhere-opensource-src-4.8.2/
> 
>       Georg
> 
> [1] http://pastebin.com/ajNFRiVs

Hmm… it looks like that:
1. /opt/qt-everywhere-opensource-src-4.8.2/bin has "moc" but not "moc-qt4"
2. LyX's configure checks for moc-qt4 first and is happy to find it in /usr/bin
 
As a workaround you may try to add symbolic links in 
/opt/qt-everywhere-opensource-src-4.8.2/bin

$ cd /opt/qt-everywhere-opensource-src-4.8.2/bin
$ ln -s moc moc-qt4
$ ln -s uic uic-qt4

Stephan

Reply via email to