<div dir="ltr">Hi Robson,<div><br></div><div>To check how to build MDAL on windows, you can take a hint from <a href="https://github.com/lutraconsulting/MDAL/blob/master/.github/workflows/windows_tests.yml">https://github.com/lutraconsulting/MDAL/blob/master/.github/workflows/windows_tests.yml</a>. If you use different visual studio version, you may need some modification of the code. </div><div><br></div><div>To test you modification, first of all, you should run the automatic test suite for given driver. If that one passes, you can test in QGIS. If you build QGIS yourself, there was an option to select yours external MDAL installation to build against. </div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind Regards,</div>Peter Petrík<div>CPO of Mergin Maps</div><div><a href="https://www.linkedin.com/in/peter-petrik/" target="_blank">LI</a>, <a href="https://www.merginmaps.com" target="_blank">Mergin Maps</a></div><div><br></div><div><br></div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 7, 2023 at 7:43 AM Robson Leo Pachaly <<a href="mailto:eng.pachaly@gmail.com">eng.pachaly@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all, <div><br></div><div>I'm trying to do some modifications on a MDAL driver. I have two questions. The first is about compiling the mdal.dll and the second is about the procedure for testing the modification.</div><div><br></div><div>1. I'm following exactly the build steps on the MDAL repository but I get some errors while building and no mdal.dll is being generated. The errors are the following:<br><br></div><div>Error C3892 'wstr': you cannot assign to a variable that is const</div><div>Error C2664 'int MultiByteToWideChar(UINT,DWORD,LPCCH,int,LPWSTR,int)': cannot convert argument 5 from 'const _Elem *' to 'LPWSTR'</div><div>Error C2664 'int WideCharToMultiByte(UINT,DWORD,LPCWCH,int,LPSTR,int,LPCCH,LPBOOL)': cannot convert argument 5 from 'const _Elem *' to 'LPSTR' </div><div>Error C1083 Cannot open include file: 'mdal_config.hpp': No such file or directory<br></div><div><br></div><div>2. The best way for testing the modification is to recompile QGIS with make option MDAL INTERNAL set to OFF and then change the mdal.dll?</div><div><br></div><div>Thanks!</div></div>
_______________________________________________<br>
MDAL-Developer mailing list<br>
<a href="mailto:MDAL-Developer@lists.osgeo.org" target="_blank">MDAL-Developer@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mdal-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mdal-developer</a><br>
</blockquote></div>