Subject: CGAL users discussion list
List archive
- From: Guillaume Damiand <>
- To: "" <>
- Subject: Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER
- Date: Thu, 2 Apr 2020 09:25:38 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:0JR9TBWSL63jSBQfAhXO33AzNlXV8LGtZVwlr6E/grcLSJyIuqrYbRCFt8tkgFKBZ4jH8fUM07OQ7/m9HzRbqs/Y7jhCKMUKC0ZZz51O3kQJO42sNw7SFLbSdSs0HcBPBhdO3kqQFgxrIvv4fEDYuXao7DQfSV3VPAtxIfnpSMaJ15zkn++99IfObApWmTGzfa19LAmsrQXWq8IanZZuJrw+xxfUonZEYfhayG1nKV6Oghrx59q78Jp//yhNof4s+NNMXKrgc6gkUbBUCSktPnwo6sHsqRTMQgyD62cGXG4LiBRIGQ/F7B/7Xpf1rCT3s/d21TeZM8PrU706QCyu4Kh3RhDmjicHLCM5/3rMisNslqJboQmuqAJ5zoXJfYyaLvt+fqfafdMHWWpMW9taWiJdDo+gaYYEEuwMNvtaoYbgvVsDtQawCxeiBO3vyTFGiHH50qI43Os9CgzG0xAsEsgSvXjIotj4NqEfWv21wqnSyjXDautb1zbg6IjJdhAhpeuDXa91ccXP1EIhGRnKjlCRqYP/OTOay/kGvm+U7+p9VOKvj2onpBtsojiq2MggkJTGiZgQylDF7yp5xps6KMa8SE56e96kEYBQuzuGOItwWMMiWHtkuCggyrAfv5OwYSYEyJMixxHFavyHdZCF4h3iVOaNITd4mWlqdKijiBa19Eis0uv8WdOv31lRqipKjMPAuWwK1xzW8sSIVv19/l262TqV2QDT8OdJKl03m6rDM5Mt37A9m5UJvUjdAyP7l1/6gLKVe0gn4OSk9uvqb7Tgq5SBLYF7kBv+Pb4rmsGnAeQ3LAwOX2+D9Oug1b3j5lf5QK5Pjv0qiqnVqo3aJcIapq6nGgNV1oYi6xG5Dzu7ytgYk2MHIEpEeBKBkYfpJ0nDLO32APqwmVigjipnyv/cMrH8AZjALWLPnKrucLt880JczRA8zdFb55JaELEBJ/fzV1f+tNzFDx85Nwi0zPz6CNV4yIwSQ3+ADbWcMKPTq1CI4P8gLvKIZI8Uojb9KuMl6+Tygn8/g18dZrOl3ZUNaHygBPRpP12ZYWbwgtcGCWoFogU+Q/buiFGbTDFTZm2yUL4h5jEgE4KrFpzDR4CogLyZxii3BJxWZmZcClCNC3jkbYuEW+1fIB6Vd4VqnTUAELSgUIQ8zgqGtQngyrMhIPCesnkTupvnkdR0/ObOjgoa9DpuDs3b3XvbHE9umWZdaCI32KR2vElwgnuK1KlxhfAQQdNO5vdNWxo/ONjQxul7Atb+cgbAZNaSDl2gWM7gDytnHYF5+MMHf0soQ4bqtRvExSf/W+ZExYzOP4Q99+fn51a0Is98z3jc06x40gsiQ9FOLiutgLRksQbJVdeQzxep0p2yfKFZ5xbjsX+ZxDPT7kVZSg9rF67DR2tZaFGE9Y2ktHOHdKenDPEcCiUEycOGLfEWONbolk9dQev7fsnYYnz0n3a3A0/OyKneNIc=
Hi Ali;
Le 02/04/2020 à 09:08, AliiAsgharii a écrit :
Hi all,
I am using CGAL (Version 4.13 and 5.0.2) and I have set all the requirements
including installing Cmake (version 3.13), Qt5 (version 5.14.2), boost
(version 1_69 and 1_72), Visual Studio (versions 2013, 2017, 2019) and even
QGLviewer (version 2.7.2). I set all the path into the correct ones for each
and tried to configure and build a project using Cmake (Using the second
method recommended by CGAL manual document). Then I build the projects
though the visual studio and even I can run and compile some codes (the one
do not need visualisation).
However, when I trying to for example run code to visualise and view the
result I am getting the following error Impossible to draw because
CGAL_USE_BASIC_VIEWER is not defined. I surfed the Internet but I could not
find any suitable solution for this although it seems some people have the
same problem.
Even I tried the first method suggested by CGAL getting started for
installing CGAL but no luck at all.
I urgently need to handle this and would be appreciated if someone can guide
me step by step (just like explaining to a beginner of all this). FYI: I am
using windows 10.
Have a look at one example in CGAL that use basic viewer; for example draw_triangulation_2 in the Triangulation_2 package [1].
In the CMakeLists.txt [2], you need:
1) find the package CGAL with the component Qt5
find_package(CGAL COMPONENTS Qt5)
2) Set the CGAL_USE_BASIC_VIEWER compiler flag
add_definitions(-DCGAL_USE_BASIC_VIEWER -DQT_NO_KEYWORDS)
3) Link CGAL_Qt5 with your program
target_link_libraries(draw_triangulation_2 PUBLIC CGAL::CGAL_Qt5)
Hope this helps.
Best regards
Guillaume
[1] https://github.com/CGAL/cgal/blob/master/Triangulation_2/examples/Triangulation_2/draw_triangulation_2.cpp
[2] https://github.com/CGAL/cgal/blob/master/Triangulation_2/examples/Triangulation_2/CMakeLists.txt
Heaps of thanks,
Best regards,
Ali
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
--
===================================================================
Guillaume DAMIAND
CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36
Mail:
Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
- [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Guillaume Damiand, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Maxime Gimeno, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Sebastien Loriot (GeometryFactory), 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Sebastien Loriot (GeometryFactory), 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Maxime Gimeno, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/03/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Maxime Gimeno, 04/03/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/03/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Sebastien Loriot (GeometryFactory), 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, AliiAsgharii, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Sebastien Loriot (GeometryFactory), 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Maxime Gimeno, 04/02/2020
- Re: [cgal-discuss] How to define CGAL_USE_BASIC_VIEWER, Guillaume Damiand, 04/02/2020
Archive powered by MHonArc 2.6.18.