Subject: CGAL users discussion list
List archive
- From: hfang <>
- To:
- Subject: [cgal-discuss] Confused About installation of CGAL x64
- Date: Sat, 21 Jan 2012 17:57:01 -0800 (PST)
These days I installed CGAL3.9 follow steps:
1)install boost 1_48_0 x64
2)install QT4.8.0 by install qt-win-opensource-4.8.0-vs2010 which is
download from nokia , I think I have complied 64 bit Qt, since I fix the
\mkspecs\win32-msvc2008\qmake.conf,then:
QMAKE_CFLAGS_RELEASE = -O1 -MD
QMAKE_LFLAGS = /NOLOGO /MACHINE:X64
But I am not sure if it is really a 64bit Qt at last.
3)install qt-vs-addin-1.1.10
3) install CGAL 3.9, by CMAKE Coufigure,Generate
all these files are installed at D:
During the installation of CGAL3.9, I shoose VS2010 64bit complier under
CMAKE-GUI
And Open the CGAL.sln by VS2010.
Compiled successfully.
Then , I Use Qt addin under VS2010 to generate a new console project, and
copy these code in the main.cpp. Compiled in x64 mode debug.
#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();
}
The compile result is failed with information some thing like :
>CGAL_Qt4-vc100-mt-gd.lib(all_files.obj) : error LNK2019: unsolved outer
symbol "__declspec(dllimport) public: __cdecl QGLFormat::~QGLFormat(void)"
(__imp_??1QGLFormat@@QEAA@XZ),referenced
in "protected: void __cdecl
CGAL::Qt::DemosMainWindow::setUseOpenGL(bool)"
(?setUseOpenGL@DemosMainWindow@Qt@CGAL@@IEAAX_N@Z)
CGAL_Qt4-vc100-mt-gd.lib(all_files.obj) :error LNK2019: unsolved outer
symbol "__declspec(dllimport) public: void __cdecl
QGLWidget::setFormat(class QGLFormat const &)"
(__imp_?setFormat@QGLWidget@@QEAAXAEBVQGLFormat@@@Z),referenced
in
"protected: void __cdecl CGAL::Qt::DemosMainWindow::setUseOpenGL(bool)"
(?setUseOpenGL@DemosMainWindow@Qt@CGAL@@IEAAX_N@Z)
...
>CGAL_Qt4-vc100-mt-gd.lib(all_files.obj) : error LNK2001: unsolved outer
symbol "public: virtual int __cdecl QGLWidget::qt_metacall(enum
QMetaObject::Call,int,void * *)"
(?qt_metacall@QGLWidget@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
totally 25 errors.
Can anyone have some ideas?
Thanks for any advice.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Confused-About-installation-of-CGAL-x64-tp4317432p4317432.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Confused About installation of CGAL x64, hfang, 01/22/2012
- [cgal-discuss] Re: Confused About installation of CGAL x64, hfang, 01/22/2012
- [cgal-discuss] Re: Confused About installation of CGAL x64, hfang, 01/22/2012
- Re: [cgal-discuss] Confused About installation of CGAL x64, Laurent Rineau (GeometryFactory), 01/23/2012
- Message not available
- Re: Re: Re: [cgal-discuss] Confused About installation of CGAL x64, Laurent Rineau (GeometryFactory), 01/24/2012
- Message not available
- Re: Re: [cgal-discuss] Confused About installation of CGAL x64, FangHui, 01/24/2012
- Re: Re: Re: [cgal-discuss] Confused About installation of CGAL x64, FangHui, 01/24/2012
- [cgal-discuss] Re: Confused About installation of CGAL x64, hfang, 01/22/2012
Archive powered by MHonArc 2.6.16.