autotools using $PATH/bin/moc-qt4 and not qt-bin-dir/moc #3063

issue gavinandresen opened this issue on October 7, 2013
  1. gavinandresen commented at 6:48 AM on October 7, 2013: contributor

    Ran into this issue on the pull-tester machine cross-compiling for win32, where /usr/bin/moc-qt4 was for QT 4.6, which was used in preference to the moc in the --with-qt-bindir directory.

    Workaround was to create a moc-qt4 link in the --with-qt-bindir directory.

  2. laanwj commented at 3:32 PM on October 7, 2013: member

    I suppose the priority rule should be to prefer any moc in the qt-bindir directory above any moc elsewhere. Looking at the configure script it does the following

    for ac_prog in moc-qt4 moc4 moc
        <search for program named ac_prog> in qt_binpath, then rest of path
        -> if found, select it and exit loop
    

    This is generated from the following configure.ac line:

    AC_PATH_PROGS([MOC], [moc-qt4 moc4 moc],, $qt_bin_path:$PATH)
    

    That's kind of where my automake knowledge stops though...

  3. theuni commented at 2:14 AM on October 23, 2013: member

    This was my main argument against https://github.com/bitcoin/bitcoin/commit/9a09c0091c33a8f22f48b5e6e5b8f3b400c43ff3 . This is working "as intended" unfortunately.

    Should be fixed with the qt5 support. I'll try to get a PR pushed up this week.

  4. Diapolo commented at 10:29 AM on January 27, 2014: none

    @theuni Can you confirm this is fixed?

  5. laanwj closed this on Jul 31, 2014

  6. Bushstar referenced this in commit f1ff148181 on Apr 8, 2020
  7. Bushstar referenced this in commit 2141d5f9d9 on Apr 8, 2020
  8. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me