Subject: CGAL users discussion list
List archive
- From: Sebastien Loriot <>
- To:
- Subject: Re: [cgal-discuss] Using CGAL with qt5
- Date: Wed, 3 Feb 2021 10:56:29 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:C1EtAheubLHhQUFQuQvZ1nOElGMj4u6mDksu8pMizoh2WeGdxc26bRaN2/xhgRfzUJnB7Loc0qyK6vGmBTZLucbJ8ChbNsAVCFld0YRetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6I8xgHGr3dWdOha2WBlLk+Xkxrg+8u85pFu/zlStv4768JMTaD2dLkkQLJFCzgrL3o779DxuxnZSguP6HocUmEInRdNHgPI8hL0UIrvvyXjruZy1zWUMsPwTbAvRDSt9LxrRwPyiCcGLDE27mfagdFtga1BoRKhoxt/w5PIYIyQKfFzcL/Rcc8cSGFcWMtaSi5PDZ6mb4YXEuQPI+hYoYn+qVUAoxSxCgujC//gxDJTmn/73rc33/g9HQzI3gEtGc8FvnTOrNXyMacfSf27w7fTwjrZdPNWxTb955bOchs8p/+MWqhwccvWyUkzCgjIiU6QqYjiPzOP1+QNtHSb4/BlVeKrkGMnpARxrSKuxscokIXGmoUVylXd+Ch/3Y06KsG2RlRhbt64DJtfqTuaN41uT888Q29lpCU3x74JtJO0cyUHzIgqygPBZ/GabYSF7A/vWPiSLDtlmX9oe72xihS9/0WjyeDxSsa53VVUoyRLjtTBsG0G2RLU6siCUPR9/0Gh1C6T2ADc8O5EJVo4la3BK54u2rIwl5wTsV7CHiDsgkn2grWWe0M58ear8+TqeqvqqoOYOoNuiQzzMr4iltKhDeglKAQDUGyW9fyi2LL54UH1XbBHgeMqnqbDtZ3WO9gXqrO8DgJbyIkv9QqzAjKk3dkZmXQKI1dIdw+ag4fzP1zDJfD1Auyhj1iwlTpn2u3KMaHuD5jLM3PNiq3ufaxn5E5Z0Aczzc5Q55ZTCrwZJfL8QE7xtNjBAh43KQy43v/rCNty244aQ26PDaiZMKTdsV+M+O0jOfWDZIgQuDrlKvgl4eDhjWMhlFMDYaWk2YEbZXO4E/h8PUmVf2fgjs0OHGoOpgY+SfbliFyGUT5dfXayWKc86ykgCIKiCofDXIGtgLud3CuhG51WYntLCl+JEXjydoWEX+0AZz6VIs9kijAET6SuS5c91RGysw/306ZoLuXO9S0crJ7sydl15/bPmhEv7jx0FN+Q03qNTmFxhmMHXSU63KF5oUxny1eMy7J0g/JCFY8b2vVSTw1vNYLA1/coTJfpSwfZd5GITkynS5OoG3YqX9cpypgPZUh6XN6thxSG0yuxCKIOjO+2Aocp+J7Rz2SkJ9ph022Uk+46nlw+S41OM3enj+hx7U/IFovRmgKYkaitMq8T1SqI+GaYxneVpxJkV1t7XqzBGHwefUDLts/R50XYTrboB650HBFGzJu5J6FDccHogFMOYPD5OdPCKzaqn2CqBBGUgLaIRIXvcmQZmi7aDR5XwEgo4X+aOF1mVW+aqGXEAWk2TAO9UwbX6eB77UiDYAoxxgCOYVdm0uPsqBEQjP2YDfgU2+Bd4Xpzm3BPBF+4munuJZ+Aqg5mJvgOZNo85BJYzzucuVAseJOnKK9mixgVdAEl5xqyhSUyMZ1JlI0RlF1v1BB7cPvK31ZIdjfe1pf1aOXa
You need to have in your cmake script:
find_package(CGAL REQUIRED OPTIONAL_COMPONENTS Qt5)
if(CGAL_Qt5_FOUND)
#define your exe my_target
target_link_libraries(my_target PUBLIC CGAL::CGAL_Qt5)
endif()
Sebastien.
On 2/3/21 10:52 AM, Ben Laurie wrote:
On Wed, 3 Feb 2021 at 08:26, Sebastien Loriot < <>> wrote:
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
<https://doc.cgal.org/latest/Manual/configurationvariables.html#title9>
Qt5_DIR can be a cmake variable (cmake -DQt5_DIR=...) or an environment
variable.
If I do this I get this warning from cmake:
CMake Warning:
Manually-specified variables were not used by the project:
Qt5_DIR
The previous suggestion (i.e. using CMakeLists.txt from the examples) works as well as the manual configuration I posted in the first place - that is, I end up with:
/usr/local/include/CGAL/Qt/image_interface.h:21:10: fatal error:
'ui_ImageInterface.h' file not found
#include "ui_ImageInterface.h"
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>
>
<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
<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
<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
- Re: [cgal-discuss] Using CGAL with qt5, Sebastien Loriot, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Ben Laurie, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Sebastien Loriot, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Ben Laurie, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Sebastien Loriot, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Ben Laurie, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Sebastien Loriot, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Ben Laurie, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Sebastien Loriot, 02/03/2021
- Re: [cgal-discuss] Using CGAL with qt5, Ben Laurie, 02/03/2021
Archive powered by MHonArc 2.6.19+.