Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Using CGAL with qt5

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Using CGAL with qt5


Chronological Thread 
  • From: Sebastien Loriot <>
  • To:
  • Subject: Re: [cgal-discuss] Using CGAL with qt5
  • Date: Wed, 3 Feb 2021 09:25:35 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:ibcouRyCSs7GhaPXCy+O+j09IxM/srCxBDY+r6Qd0uofL/ad9pjvdHbS+e9qxAeQG9mCurQY0qGP6v6oGTRZp8rY7zZaKN0EfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJ6KevvB4Hdkdm82fys9J3PeQVIgye2ba9vIBmsogjdq80bjZFtJ6osxRfFv2ZEduVLzm9sOV6fggzw68it8JNh6Shcp+4t+8tdWqjmYqo0SqBVAi47OG4v/s3rshfDTQqL5nQCV2gdjwRFDQvY4hzkR5n9qiT1uPZz1ymcJs32UKs7WS++4KdxSR/nkzkIOjgk+2zKkMNwjaZboBW8pxxjxoPffY+YOOZicq7bYNgXQ3dKUMRMWCxbGo6ycpUBD+QBM+hboYfyqVQBohmiCgejH+7v1jxFi2Xq0aEm3eksEwfL1xEgEdIUt3TUqc34OroMXu+u1qbI1inDb/JI1jf79YPGdBchoeuNXbJ3bcra1E4iFxjBjlWXs4zlPjSV1vgXv2ie6+ptTu2vi2s9pAFwpjij3Nsjio7Mho8MzF3P6Cp2zpovK9KiVE57fcCrEIFWtyyCKYd4Qt8vTmJrtSs1xbALtpq2cTQXxZg52hPTdfKKf5WW7h/gSeqcPDR1in1ndbywhBu/8lStx+L/W8Sq3lhHsixImcTCuHAK0hzc8MmHSv1l80i91jaAzQTT5vtDIUAumqrXM58hwrgqlpoSq0vPBCH2mF/wgaSLdUsk4vCl5/r7brjivJORNI95hhvjPqgwmcGzG+Q1PhQWU2SF4+uwyKDv8EjnT7lWlPI7l7fVvIzHKckeqKO2GRFZ3pom5hu9Djqr1NsVkHwaI15YYh2Ki43kNlHVL/zmEfuyhkmgnCp3yP3JOLDqH4/DIWLZkLj7eLZw805cxxQ3zdBY/59UD6sOIPP3WkPout3YCwI1PxW6w+vnFNlxzIweWWWIAq+WNKPdr0WE6f4oI+mJfIMVuTD9JOY55/P2k3M1hVsQcbOq0JYXcny0A+pqLkaDbXfsntsNCWIKsRA/TOzuhl2CSzlTZ3OqUqIn4jE7D5imDYbERoCxmrCB2SO7E4ZZZmBDEF+MEHPoe5+YVPcLbSKeOtVhnSAcVbi9V48h0gmjuxP1y7V9KurY4zAXtZP41Ndp+u3Tjgoy+CdvD8Wd1mGNV3t7knkJRz8wxqB/oFZyxk2N0ahi0LRlE8dO7aZJThsiLsybiPdrDsj7HAPHZNaADli8Bc63BCk4CdM3zdhJaEl0H5CujwvIwjGxUIITjKGBOJEk7vfcw2TpPJQ6jG3X0bEoyVggWMpGc2O8wbVu8hDaQI/PnULenKmjceEQ3TXG6XyYnlaJ6UpXWQo1XaTeVm0EfWPXq8747wXMVeyAE7MiZzBMw8eZNqpHbJXNik9HQ+urbM/aZHiwnHv2ABKgybaFbY6scGIYinaOQHMYmhweqC7VfTM1AT2s9jqHXW5eUGn3akapytFQ7XayT0s61QaPNhQz2L+8+xpTjvuZGapKguA0/Rw5ojAxJ26TmsrMAoPZ9QVkdaRYJ9g65QUfjD+Lh0lGJpWlaptaqBsefgBw5R680hx2DsBflJFvoi5yigV1Lq2c3RVKcDbKhZ0=

You should not give include paths by hand but use the cmake config file
generated by your QT installation.

See https://doc.cgal.org/latest/Manual/configurationvariables.html#title9

Qt5_DIR can be a cmake variable (cmake -DQt5_DIR=...) or an environment variable.

Sebastien.

On 1/30/21 5:30 PM, Ben Laurie wrote:
I'm trying to compile the basic example (https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html#subcmake <https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html#subcmake>) and I have to pass lots of arguments to CMake to include the qt5 files ... like this:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wall -Werror -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtWidgets -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtXml -I/usr/local/include/qt5/QtCore -I/usr/local/include/qt5/QtOpenGL -fPIC" .

Is this expected? Anyway, after tracking all these down, I end up with the error:

/usr/local/include/CGAL/Qt/image_interface.h:21:10: fatal error:
      'ui_ImageInterface.h' file not found

and there's no such file on my machine. Any clue what I'm doing wrong?

--
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