I have been trying to find the distance between 2 points using QGIS C++ APIs in Qt. I used the following code :
QgsDistanceArea d; d.setEllipsoid("WGS84"); qDebug()<< "Qgspoint"<< d.measureLine(p1,p2) where p1 and p2 are QgsPoint.
when I run the application through Qt IDE this gives the correct output. but when I run the .exe file of the same application from its release folder, it gives very low value and incorrect value. Which DLL am I missing for calculating the distance?