GeometryCollective / boundary-first-flattening

MIT License
768 stars 96 forks source link

VisualStudio Console Application #41

Closed petrasvestartas closed 1 year ago

petrasvestartas commented 5 years ago

Hi,

Is it possible to get example how to used compiled library for Windows Visual Studio Console Application (the most simple functionality of BFF)?

rohan-sawhney commented 5 years ago

@petrasvestartas you can find instructions on using the command line interface here: https://github.com/GeometryCollective/boundary-first-flattening#command-line-interface.

petrasvestartas commented 5 years ago

Dear @rohan-sawhney ,

I would like to directly call methods from compiled libraries.

Is it possible to know which files I must reference to visual studio to make this work? https://github.com/GeometryCollective/boundary-first-flattening/tree/master/command-line

Is it bff.lib? Is there any tutorial how to link this list of libraries in visual studio: https://github.com/GeometryCollective/boundary-first-flattening/tree/master/binaries/windows

rohan-sawhney commented 5 years ago

You'll need to link all the libraries (.lib and .dll) in this folder: https://github.com/GeometryCollective/boundary-first-flattening/tree/master/binaries/windows in your visual studio project. Unfortunately, I don't a tutorial on how to link these libraries in visual studio, but there are several tutorials out there on how to link static and dynamic libraries in visual studio.

You can reference the code in this file: https://github.com/GeometryCollective/boundary-first-flattening/blob/master/command-line/CommandLine.cpp to see how to call relevant methods once you've linked.

petrasvestartas commented 5 years ago

Dear @rohan-sawhney,

Normally it is enough to link .dll and .lib files, and the header files that are referenced in CommandLine.cpp are automatically find?

rohan-sawhney commented 5 years ago

@petrasvestartas yes that's right

rohan-sawhney commented 1 year ago

Windows build instructions can be found here