jmurphy
Well-known member
I wish to port NormalizeScaleGradient to C++. So far, I have refreshed my knowledge of C++, cloned the PCL repository onto my Windows 10 PC, and started to look at source code to see how it all works. I have installed Microsoft Visual Studio Community 2019. I am making a start by looking at a simple module: 'FastRotation'. I will then probably start by copying LocalNormalization, using it as a template as I transfer the NormalizeScaleGradient JavaScript code to C++.
So far I have not been able to figure out how to compile and create a dll for a module. I can load a visual studio project (for example, 'E:\PixInsight Dev\PCL\src\modules\processes\Geometry\windows\vc16\Geometry.vcxproj', or 'E:\PixInsight Dev\PCL\src\modules\processes\ImageCalibration.vcxproj' but this leaves red squiggles underneath many definitions, so I assume this is not the correct way to compile a module.
I see that PixInsight provides a 'Makefile Generator Script'. I assume that I will need this once I start coding the new NSG module. I have set up the necessary environment variables. However, I have not yet figured out what to put in the various text boxes.
Any help would be very useful.
Thanks
John Murphy
So far I have not been able to figure out how to compile and create a dll for a module. I can load a visual studio project (for example, 'E:\PixInsight Dev\PCL\src\modules\processes\Geometry\windows\vc16\Geometry.vcxproj', or 'E:\PixInsight Dev\PCL\src\modules\processes\ImageCalibration.vcxproj' but this leaves red squiggles underneath many definitions, so I assume this is not the correct way to compile a module.
I see that PixInsight provides a 'Makefile Generator Script'. I assume that I will need this once I start coding the new NSG module. I have set up the necessary environment variables. However, I have not yet figured out what to put in the various text boxes.
Any help would be very useful.
Thanks
John Murphy