Subject: CGAL users discussion list
List archive
- From: vanimurarka <>
- To:
- Subject: [cgal-discuss] compilation error: new project from scratch
- Date: Sat, 25 Jun 2011 14:29:49 -0700 (PDT)
Hi,
This is actually a QGLViewer issue, rather than CGAL. But this forum seems
to be the only appropriate place to ask.
I am making a new project from scratch, somewhat along the lines of the CGAL
demos such as Point_Set_demo.
I am getting the following error in compiling my project:
Error 1 error LNK2019: unresolved external symbol "public: __thiscall
Viewer::Viewer(class QWidget *,bool)"
(??0Viewer@@QAE@PAVQWidget@@_N@Z)
referenced in function "public: void __thiscall
Ui_qttrialClass::setupUi(class QMainWindow *)"
(?setupUi@Ui_qttrialClass@@QAEXPAVQMainWindow@@@Z)
qttrial.obj
Error 2 error LNK2019: unresolved external symbol
"__declspec(dllimport)
public: virtual void * __thiscall QGLViewer::qt_metacast(char const *)"
(__imp_?qt_metacast@QGLViewer@@UAEPAXPBD@Z)
referenced in function "public:
virtual void * __thiscall Viewer::qt_metacast(char const *)"
(?qt_metacast@Viewer@@UAEPAXPBD@Z)
moc_Viewer.obj
Error 4 error LNK2001: unresolved external symbol
"__declspec(dllimport)
public: static struct QMetaObject const QGLViewer::staticMetaObject"
(__imp_?staticMetaObject@QGLViewer@@2UQMetaObject@@B)
moc_Viewer.obj
I had built Point_Set_demo by first generating VS files using CMake and then
compiled using VS. Hence, CMake had set the variables such as
QGLVIEWER_INCLUDE_DIR, QGLVIEWER_LIBRARIES, QGLVIEWER_LIBRARY_DEBUG,
QGLVIEWER_LIBRARY_RELEASE. The demo compiles and runs file.
However my project is being built as a fresh Qt Application. Hence, I do not
know where to make the appropriate settings for the above error.
QGLViewerd2.dll and QGLViewer2.dll is there in the Windows System32 folder.
Even the .pro file that the libglviewer website talks of is irrelevant since
I made the application via New Projects -> Qt Application in VS menu and it
has no .pro file.
Any pointers please.
Thank you
Vani
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/compilation-error-new-project-from-scratch-tp3625080p3625080.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] compilation error: new project from scratch, vanimurarka, 06/25/2011
- [cgal-discuss] Re: compilation error: new project from scratch, vanimurarka, 06/27/2011
- Re: [cgal-discuss] Re: compilation error: new project from scratch, Laurent Rineau (GeometryFactory), 06/27/2011
- [cgal-discuss] Re: compilation error: new project from scratch, vanimurarka, 06/27/2011
Archive powered by MHonArc 2.6.16.