siddharth-maddali / HierarchicalSmooth

Implementation of the hierarchical smooth algorithm applicable to voxelated images of interface networks ( grain boundaries, soap foam, etc. )
Other
9 stars 3 forks source link

Compiling the C++ Makefile #11

Closed jercgreen6 closed 3 years ago

jercgreen6 commented 3 years ago

Hello @siddharth-maddali,

Currently, I am trying to set up the C++ version of Hierarchical Smooth but have been unable to generate the static and dynamic libraries libhsmooth.a and libhsmooth.so.

The instructions state, that the the Makefile should be run in the command line. I tried doing this using Visual Studio's (2019) compiler using the Build Tools extension, which operates through the cmd. When I try and run the Makefile I get the following error: Error1

To try and address this I added the .cpp file extension (Makefile.cpp) and tried running it. As a result I got the following error: Error2

I have verified that Build Tools is functioning as expected with other programs. Additionally, I have placed the Eigen and libIGL source codes into the Cpp active directory. However, the errors suggest that the problem is interfacing with the Makefile itself.

What compiler do you recommend using with the Makefile? Do you have any other recommendations on running the Makefile?

Thanks!

siddharth-maddali commented 3 years ago

@jercgreen6 The makefile is not a cpp source file; it's not possible tocompile it using a C++ compiler.

Please see some good makefile tutorials to learn how to compile projects using makefiles: https://www.tutorialspoint.com/makefile/index.htm