Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Installing CGAL on M1 Mac QT5 errors

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Installing CGAL on M1 Mac QT5 errors


Chronological Thread 
  • From: Kabir Kedia <>
  • To:
  • Subject: Re: [cgal-discuss] Installing CGAL on M1 Mac QT5 errors
  • Date: Wed, 24 Mar 2021 06:58:36 +0530
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-hdrordr: A9a23:TQ/Os6v6cdccVj7liCyG9aRv7skCKIMji2hD6mlwRA09T+WzkceykPMHkSLlkTp5YgBYpfmsGomlBUnd+5l8/JULMd6ZNjXOlWO0IOhZnO7f6hL6HSmWzJ8+6Y5BdOxEBMT0HRxGi6/BkWqFOvIB5PXCz6yyn+fZyB5WLD1CT6179Q92BkK6PyRNNW17LKE0Hpad+cZLzgDIER8qR/+2CXUfU+/Iq8ejrvLbSCQbDB0q4hTmt0LO1JfGFXGjr3EjegIK77Nn1WTeiQT26uGYrvmnxnbnu1P73tB5nt3uz9cGKe6trowuKjvqghu1f4gJYdC/lQFwjueo5lMn1OPJvg5lBcJu8HncF1vbnTLdnzLt2jov9HPuoGX3vUfe
  • Ironport-phdr: A9a23:NXAefRWQ0BgyDkOkklvcnk0/03vV8KyGUzF92vIco4ILSbyq+tHYBGea288FpGHAUYiT0f9Yke2e6/mmBTVRp8/d7jtbLcUEfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJ6KevvB4Hdkdm82fys9J3PeQVIgye2ba9vIBmsogjdq80bjZF/Jqs+yxbFrWZEduRLyWh1OV+dghHw69uq8pV+6SpQofUh98BBUaX+Yas1SKFTASolPW4o+sDlrAHPQgST6HQSVGUWiQdIDBPe7B7mRJfxszD1ufR71SKHIMD5V7E0WTCl76d2VB/ljToMOjAl/G3LjMF7kaRWqw+jqRNi2Y7ZeI6aNPR8ca3dc90UR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N1AEV83HBPgc3AmKtonnVESd1Rm7oNkjj+O07pHKgRVIv1CmLaVdg3vy74E07n/uZHtAa1LMe8AQspzR9VAK+1tjXEdmNqwtoJPwFOPsy5V5G0STSsAkrbc/oFLxrmlNLK1c/hEjpzRgiUu1ooY0RtHoviTFKB+eY3VdGHxud1JH0f6Decyz8oUnpZKnR1VXTlt2R//VXgNwI7m77tQTsLXIMtm192rF93H6V55GMBw0XA8qZenZyzABzovThWgd44orV0XN2NqzcmjDH0tMtQuAiz0T5F+o=

Hi,

Ahhh okay. I got you. This does not work because the triangulation package isn’t complete yet therefore it’s not a part of the cgal main repository. If you want to build the package clone the cgal-public-dev repo and then go into triangulation/demo/triangulation. Hopefully this should solve your problems.


On Wed, 24 Mar 2021 at 1:45 AM, Toyota ga, Noah <> wrote:
Hello,

I should have provided more detail on my installation procedure for the example. What I am doing is:

$ cd Triangulation_2
$ mkdir build
$ cd build
$ ccmake -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DCMAKE_BUILD_TYPE=Release -S .. 
$ make 

Only the final `make` command gives any errors.

Thanks,
Noah


On Tue, Mar 23, 2021 at 12:42 PM Kabir Kedia <> wrote:
Hi Noah,
Did you use Cmake or G++ to compile the package. I think this is a case of g++.
You can’t use g++ with QT5 you have to use cmake.
My suggestion would be using an IDE such as visual studio or clion or Xcode and adding the CMakeLists.txt file to them and then building the project. You can also use cmake via command line but using them with IDEs is easier. 
Best regards,
Kabir Kedia 

On Wed, 24 Mar 2021 at 1:02 AM, Toyonaga, Noah <> wrote:
Hello,

I am trying to install CGAL on my new computer and running into some problems apparently due to QT5 compilation. I am running Mac OS 11.0.1 (Big Sur). 

What I've done: 
- Install `CGAL` using `brew`
- Install `Qt5` using `brew install`

Both of these complete without any errors. My problem arises when I try to build a demo, specifically `Triangle` as suggested on the CGAL  website

I get the following long set of error, all apparently due to compiling Qt5.


In file included from /opt/homebrew/include/QtCore/qalgorithms.h:43:

/opt/homebrew/include/QtCore/qglobal.h:667:65: error: expected '>'
         typename = std::enable_if_t<std::is_arithmetic_v<T> && std::is_arithmetic_v<U> &&
                                                                ^
/opt/homebrew/include/QtCore/qglobal.h:667:65: error: expected ',' or '>' in template-parameter-list
/opt/homebrew/include/QtCore/qglobal.h:668:66: error: expected unqualified-id
                                     std::is_floating_point_v<T> == std::is_floating_point_v<U> &&
                                                                 ^
/opt/homebrew/include/QtCore/qglobal.h:679:35: error: no type named 'Promoted' in namespace
      'QTypeTraits::detail'
using Promoted = typename detail::Promoted<T, U>::type;
                 ~~~~~~~~~~~~~~~~~^~~~~~~~
/opt/homebrew/include/QtCore/qglobal.h:679:43: error: expected ';' after alias declaration
using Promoted = typename detail::Promoted<T, U>::type;
                                          ^
/opt/homebrew/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)
                 ~~~~~~~~~~~~~^
/opt/homebrew/include/QtCore/qglobal.h:693:28: error: no template named 'Promoted' in namespace 'QTypeTraits'
    using P = QTypeTraits::Promoted<T, U>;
              ~~~~~~~~~~~~~^
/opt/homebrew/include/QtCore/qglobal.h:694:5: error: unknown type name 'P'
    P _a = a;
    ^
/opt/homebrew/include/QtCore/qglobal.h:695:5: error: unknown type name 'P'
    P _b = b;
    ^
/opt/homebrew/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)
                 ~~~~~~~~~~~~~^
/opt/homebrew/include/QtCore/qglobal.h:701:28: error: no template named 'Promoted' in namespace 'QTypeTraits'
    using P = QTypeTraits::Promoted<T, U>;
              ~~~~~~~~~~~~~^
/opt/homebrew/include/QtCore/qglobal.h:702:5: error: unknown type name 'P'
    P _a = a;
    ^
/opt/homebrew/include/QtCore/qglobal.h:703:5: error: unknown type name 'P'
    P _b = b;
    ^
/opt/homebrew/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)
                 ~~~~~~~~~~~~~^
/opt/homebrew/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)
                 ~~~~~~~~~~~~~^
/opt/homebrew/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)

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Any guidance would be much appreciated! 

Thank you!
Noah

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss




Archive powered by MHonArc 2.6.19+.

Top of Page