Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problem about running demos on Windows!

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem about running demos on Windows!


Chronological Thread 
  • From: "Zheng,Guang" <>
  • To:
  • Subject: [cgal-discuss] Problem about running demos on Windows!
  • Date: Tue, 30 Jun 2009 12:54:47 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=cycHSoLg60MBtfIBlEjk6GXPO3VrVm6k4/h7aoX1j5vxf2cbHqmAyBSbI9A7tm35l3 PWB04cH9Nw6xIKMe0CJCNrzAku3ZwpuwcUCsuR6Zu2RC8f/Yfr3rjCcLFDbPz9j/RA4Q YHmJv1NNRNiDmukR4HRRVGixQ13PkYHsW0PYE=

Hi, All:
 
 
I have successfully installed the CGAL in my computer and run the following example whihc is in the CGAL instruction manual.
Installing CGAL and related programs on Windows operating system —ACG at Tel ... Page 3 of 4
http://acg.cs.tau.ac.il/cgal-at-tau/installing-cgal-and-related-programs-on-windows 2009-6-15 

I do successfully run the following example:
 
Installing CGAL and related programs on Windows operating system —ACG at Tel ... Page 3 of 4
http://acg.cs.tau.ac.il/cgal-at-tau/installing-cgal-and-related-programs-on-windows 2009-6-15
 
#include <iostream>
#include <boost/format.hpp>
#include <QtGui>
#include <CGAL/Qt/GraphicsViewNavigation.h>
#include <QLineF>
#include <QRectF>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QGraphicsScene scene;
scene.setSceneRect(0,0, 100, 100);
scene.addRect(QRectF(0,0, 100, 100), QPen(QColor(255,0,0)));
scene.addLine(QLineF(0,0, 100, 100));
scene.addLine(QLineF(0,100, 100, 0));
QGraphicsView* view = new QGraphicsView(&scene);
CGAL::Qt::GraphicsViewNavigation navigation;
view->installEventFilter(&navigation);
view->viewport()->installEventFilter(&navigation);
view->setRenderHint(QPainter::Antialiasing);
view->show();
return app.exec();
}
 
for this example, what i did is just copy the code into a win32 console program and compile it without using the CMAKE.
 
 
 
but when i tried to compile the examples using CMAKE, the error messgae poped up as attached picture. 
 
and I also typed in the error message as follows just in case:
 
*************************************
CMake Warning(dev) at : C:/CGAL/CGAL-3.4/cmake/modules/UseCGAL.cmake:16(include):
Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH and POP. Run"cmake--help-policy CMP0011" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
 
The included script
 C:/CGAL/CGAL-3.4/ cmake/modules/CGAL_Command.cmake
 
affects policy settings. CMake is implying the NO_POLICY_SCOPE option for  compatibility, so the effects are applied to the including context.
Call Stack(most recent call first):
CMakeLists.txt:19(include)
 
This warning is for project developer. Use-Wno-dev to suppress it.
 
(Press Cancel to suppress any further messages)
 
********************************************************
 
when i press ok till the "OK" button is available, i can get the *.sln file, and compile it successfully, when i run it, nothing happened.
 
Any help will be appreciated.
Guang
--
Guang Zheng  




  • [cgal-discuss] Problem about running demos on Windows!, Zheng,Guang, 06/30/2009

Archive powered by MHonArc 2.6.16.

Top of Page