Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] link error when building demo Surface_reconstruction_points_3
Chronological Thread
- From: Laurent Saboret <>
- To:
- Subject: Re: [cgal-discuss] link error when building demo Surface_reconstruction_points_3
- Date: Thu, 26 May 2011 09:39:55 +0200
Hi,
I guess that you need to link with QGLViewer library.
Check Surface_reconstruction_points_3 demo's CMakeLists.txt. You need:
find_package(OpenGL)
find_package(QGLViewer )
...
include_directories ( ${QGLVIEWER_INCLUDE_DIR} )
...
target_link_libraries( Point_set_demo ${QGLVIEWER_LIBRARIES}
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} )
Best regards,
Laurent Saboret
Le 26/05/2011 00:18, Liang a écrit :
I need to render off file generated by CGAL code, so I found
Surface_reconstruction_points_3 demo.
But it took me a while to generate all the vcproj files using CMake because
I had to build libQGLViewer first which is a prerequisite for running the
demo.
When I built the solution, there were no compile errors but a lot of link
errors like:
2>Scene_plane_item.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
qglviewer::ManipulatedFrame::ManipulatedFrame(void)"
(__imp_??0ManipulatedFrame@qglviewer@@QAE@XZ)
referenced in function
"public: __thiscall Scene_plane_item::Scene_plane_item(class Scene_interface
const *)"
(??0Scene_plane_item@@QAE@PBVScene_interface@@@Z)
2>Scene_plane_item.obj : error LNK2001: unresolved external symbol "public:
virtual struct QMetaObject const * __thiscall
qglviewer::ManipulatedFrame::metaObject(void)const "
(?metaObject@ManipulatedFrame@qglviewer@@UBEPBUQMetaObject@@XZ)
......
I suspect that I was doing something wrong with the settings. Anybody could
help me with that? I'd really appreciate it.
I am using 32-bit WIN7 and MSVC 2008 (9.0 + SP1 - VC.Version.9.0.30729.1.SP)
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/link-error-when-building-demo-Surface-reconstruction-points-3-tp3551144p3551144.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] link error when building demo Surface_reconstruction_points_3, Liang, 05/26/2011
- Re: [cgal-discuss] link error when building demo Surface_reconstruction_points_3, Laurent Saboret, 05/26/2011
- [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3, Liang, 05/27/2011
- Re: [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3, Guillaume Damiand, 05/27/2011
- Re: [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3, Laurent Saboret, 05/30/2011
- [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3, Liang, 05/27/2011
- Re: [cgal-discuss] link error when building demo Surface_reconstruction_points_3, Laurent Saboret, 05/26/2011
Archive powered by MHonArc 2.6.16.