<p>I had the same issue, seems like the problem is that I had both qt5 and qt6 installed, and it used qt6. Try running:</p>
<pre><code>brew uninstall qt
brew install qt5
</code></pre>

CC BY-SA 4.0
2021-04-18T16:04:51.930Z
2021-04-18T16:04:51.930Z
Ben10
<p>I have straggle to compile bitcoin core on mac OS machine. it has an error as the following:</p>
<pre><code>/usr/local/include/QtCore/qglobal.h:667:65: error: expected '&gt;'
         typename = std::enable_if_t&lt;std::is_arithmetic_v&lt;T&gt; &amp;&amp; std::is_arithmetic_v&lt;U&gt; &amp;&amp;
                                                                ^
/usr/local/include/QtCore/qglobal.h:667:65: error: expected ',' or '&gt;' in
      template-parameter-list
/usr/local/include/QtCore/qglobal.h:668:66: error: expected unqualified-id
                                     std::is_floating_point_v&lt;T&gt; == std::is_floating_po...
                                                                 ^
/usr/local/include/QtCore/qglobal.h:679:35: error: no type named 'Promoted' in namespace
      'QTypeTraits::detail'
using Promoted = typename detail::Promoted&lt;T, U&gt;::type;
                 ~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/include/QtCore/qglobal.h:679:43: error: expected ';' after alias declaration
using Promoted = typename detail::Promoted&lt;T, U&gt;::type;
                                          ^
                                          ;
/usr/local/include/QtCore/qglobal.h:691:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qMin(const T &amp;a, const U &amp;b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:693:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted&lt;T, U&gt;;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:694:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:695:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:699:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qMax(const T &amp;a, const U &amp;b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:701:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted&lt;T, U&gt;;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:702:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:703:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:707:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const T &amp;min, const U &amp;val, const T &amp;max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:710:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const T &amp;min, const T &amp;val, const U &amp;max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:713:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted&lt;T, U&gt; qBound(const U &amp;min, const T &amp;val, const T &amp;max)
</code></pre>
<p>Please advise.</p>
<p>i used command brew install qt5</p>

CC BY-SA 4.0
2021-03-31T16:00:36.940Z
How did you install Qt? what's its version?
MCCCS
<bitcoin-core><wallet><mac><bitcoin-qt-setup>
Error compile bitcoin mac OS
dam yi
# Error compile bitcoin mac OS

(Asked by: username_0 on 2021-03-31)

I have straggle to compile bitcoin core on mac OS machine. it has an error as the following:

```
/usr/local/include/QtCore/qglobal.h:667:65: error: expected '>'
         typename = std::enable_if_t<std::is_arithmetic_v<T> && std::is_arithmetic_v<U> &&
                                                                ^
/usr/local/include/QtCore/qglobal.h:667:65: error: expected ',' or '>' in
      template-parameter-list
/usr/local/include/QtCore/qglobal.h:668:66: error: expected unqualified-id
                                     std::is_floating_point_v<T> == std::is_floating_po...
                                                                 ^
/usr/local/include/QtCore/qglobal.h:679:35: error: no type named 'Promoted' in namespace
      'QTypeTraits::detail'
using Promoted = typename detail::Promoted<T, U>::type;
                 ~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/include/QtCore/qglobal.h:679:43: error: expected ';' after alias declaration
using Promoted = typename detail::Promoted<T, U>::type;
                                          ^
                                          ;
/usr/local/include/QtCore/qglobal.h:691:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted<T, U> qMin(const T &a, const U &b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:693:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted<T, U>;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:694:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:695:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:699:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted<T, U> qMax(const T &a, const U &b)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:701:28: error: no template named 'Promoted' in namespace
      'QTypeTraits'
    using P = QTypeTraits::Promoted<T, U>;
              ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:702:5: error: unknown type name 'P'
    P _a = a;
    ^
/usr/local/include/QtCore/qglobal.h:703:5: error: unknown type name 'P'
    P _b = b;
    ^
/usr/local/include/QtCore/qglobal.h:707:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted<T, U> qBound(const T &min, const U &val, const T &max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:710:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted<T, U> qBound(const T &min, const T &val, const U &max)
                 ~~~~~~~~~~~~~^
/usr/local/include/QtCore/qglobal.h:713:31: error: no template named 'Promoted' in namespace
      'QTypeTraits'
constexpr inline QTypeTraits::Promoted<T, U> qBound(const U &min, const T &val, const T &max)

```

Please advise.

i used command brew install qt5

**Tags:** bitcoin-core, wallet, mac, bitcoin-qt-setup

> **Comments:**
> **username_1**: How did you install Qt? what's its version?  

---

## 1 answers

### Answer by username_2 on 2021-04-18. Score: 3

I had the same issue, seems like the problem is that I had both qt5 and qt6 installed, and it used qt6. Try running:

```
brew uninstall qt
brew install qt5

```


---

