Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib'
- Date: Thu, 24 Jan 2013 16:10:57 +0100
- Organization: GeometryFactory
Hello,
In the CMakeList.txt file of the AABB_tree demo
you can see
____________
# Find CGAL and CGAL Qt4
find_package(CGAL COMPONENTS Qt4)
include( ${CGAL_USE_FILE} )
____________
This will try to find the CGAL lib you have just built
Some lines further down you can see:
____________
# Link with CGAL
target_link_libraries( AABB_demo ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} )
____________
This will generate in the vcproj file or the Makefile
what is needed to link against the CGAL library
In the CMAkeList.txt of the examples the
target_link_libraries is part of a macro
to simplify things:
create_single_source_cgal_program( "AABB_custom_example.cpp" )
Best,
andreas
On 24/01/2013 15:43, sara ershadi wrote:
Hi ,
Thanks a lot mishir for your help , Thanks a lot Sebastien for your
comments . thanks a lot Laurent for your oblivious descriptions . I
finally build CGAL library in release and debug mode successfully on
windows.
and I found my mistake a bout press F5 instead of press build from menu.
I have in C:\CGAL-4.0\build\bin and C:\CGAL-4.0\build\lib all required
lib and .dll files.
but there is a question . what is their usage . my means is when I build
an example AABB_tree with the same process
how can I link this lib and .dll file to the examples.
Thanks a lot for all useful comments.
------------------------------------------------------------------------
*From:* Laurent Rineau (CGAL/GeometryFactory)
<>
*To:*
*Sent:* Thursday, January 24, 2013 2:05 AM
*Subject:* Re: Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib'
Le mercredi 23 janvier 2013 12:49:58 sara ershadi a écrit :
> Hi Mihir ,
>
> My problem is I dont know what I should do after using CMake for
configure
> and generate CGAL library . I usually open CGAL.sln file created by cmake
> certainly in relase mode . Ihave checked it in CMake gui .
> CMAKE_build_type Release
>
> CMAKE_INSTALL_PREFIX C:/Program Files/CGAL
>
>
> then when I open CGAL.sln I set the release mode in visuall studio.
> and then High light Install as start up project and then press the start
> debugging (F5) after some processing I see the output :
The F5 key (start debugging) triggers a function that builds, and
launches an
executable in the Visual Studio debugger. The CGAL.sln solution contains
targets (vcproj) that builds libraries (static or DLL), and a few others
that
are there for administrative purposes (like the INSTALL target).
> and this finish with a dialog box that say :
> unable to start program C\CGAL4-0\build\*64\Release \install
> the system can not found the file specified .
If you want to install the CGAL libraries, you just need to "build" the
INSTALL target. With F5 you ask your debugger to execute something that
does
not exist, and that explains the error message you get.
Look carefully at the following:
> Build succeeded.
> 6>
> 6>Time Elapsed 00:00:00.10
> 7>------ Skipped Build: Project: INSTALL, Configuration: Release x64
------
> 7>Project not selected to build for this solution configuration
> ========== Build: 6 succeeded, 0 failed, 0 up-to-date, 1 skipped
==========
... That says that the build in Release mode was successful.
> I have tried it by setting CGAL as start up but it reaches the error
about
> not founding the CGAL-vc100-mt-gd-4.0.lib . I am using CGAL -manual .
There is no need to modify the CGAL solution in any way after the CMake
configuration produces it. Do not set anything as startup project, and just
build the solution, using the Build menu.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- RE: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', (continued)
- RE: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Mihir Joshi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', sara ershadi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Mihir Joshi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', sara ershadi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Mihir Joshi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', sara ershadi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Mihir Joshi, 01/23/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Sebastien Loriot (GeometryFactory), 01/24/2013
- Re: Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Laurent Rineau (CGAL/GeometryFactory), 01/24/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', sara ershadi, 01/24/2013
- Re: [cgal-discuss] 'CGAL-vc100-mt-gd-4.0.lib', Andreas Fabri, 01/24/2013
Archive powered by MHonArc 2.6.18.