Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Re: link error when building demo Surface_reconstruction_points_3
  • Date: Mon, 30 May 2011 09:40:04 +0200

Hi Liang,

Please set only QGLVIEWERROOT environment variable and restart cmake-gui (or
MS-DOS prompt if you use command-line cmake).
CMake contains rules to build properly QGLVIEWER_INCLUDE_DIR,
QGLVIEWER_LIBRARY_RELEASE, QGLVIEWER_LIBRARY_DEBUG... from QGLVIEWERROOT.

After changing environment variables, you should clear CMake cache (ie delete
CMakeCache.txt file).

Then try to regenerate the sln/vcproj files for CMake.
The Visual Studio solution is supposed to work out of the box. There is no
need to change its settings in Visual Studio.

Best regards,
Laurent Saboret


Le 27/05/2011 20:06, Liang a écrit :
Hi Laurent,

Thank you for your reply.

I tried to link to the QGLViewer library by setting the right path in both
CMake and VS, but it did not work.

I tired to regenerate the sln. file and vcproj files with CMake. So I set
QGLVIEWERROOT in the Environment Variables and set QGLVIEWER_INCLUDE_DIR,
QGLVIEWER_LIBRARY_RELEASE, QGLVIEWER_LIBRARY_DEBUG in CMake. After that,
there were no Configure errors. But after I click 'Generate', a lot of
warnings came up as following:

WARNING: Target "Point_set_demo" requests linking to directory
"C:/libQGLViewer-2.3.9/lib". Targets may link only to libraries. CMake is
dropping the item.
WARNING: Target "Point_set_demo" requests linking to directory
"C:/glew-1.6.0/lib". Targets may link only to libraries. CMake is dropping
the item.

I honestly do not know what that means.

Although CMake generated sln. file and vcproj files for me, I still can not
pass the link error. So I have to say I have no idea how to link with
QGLViewer library now.

Sincerely,

Liang

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/link-error-when-building-demo-Surface-reconstruction-points-3-tp3551144p3555984.html
Sent from the cgal-discuss mailing list archive at Nabble.com.




Archive powered by MHonArc 2.6.16.

Top of Page