<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.gmailsignatureprefix
        {mso-style-name:gmail_signature_prefix;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Makes sense. I’ll debug on my end and report back when fixed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Andrew Bell <andrew.bell.ia@gmail.com><br>
<b>Date: </b>Monday, June 3, 2024 at 11:45</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b>Patrick Rennich <patrick.rennich@aloftsensing.com><br>
<b>Cc: </b>karney@alum.mit.edu <karney@alum.mit.edu>, pdal@lists.osgeo.org <pdal@lists.osgeo.org>, Charles Karney <charles.karney@gmail.com><br>
<b>Subject: </b>Re: [pdal] Trouble compiling PDAL with MATLAB Plugin on Mac OS<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">This doesn't seem to have anything to do with PDAL, so I would do the normal debug process of making a simple reproducer. In this case that means using the most basic CMakeLists.txt that requires matlab and debug that. If you can recreate
 the error with something simple, you should be able to ask questions elsewhere to resolve the issue of go through it until you can figure it out.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Jun 3, 2024 at 11:07<span style="font-family:"Arial",sans-serif"> </span>AM Patrick Rennich via pdal <<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Thanks for the pointers. I pulled the latest FindMatlab.cmake from the cmake repository. This latest file has updates for Matlab 2024a which is what
 I’m using, but it doesn’t seem to help. I still get the same error.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Patrick</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div id="m_-4873231953363652836mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">pdal <<a href="mailto:pdal-bounces@lists.osgeo.org" target="_blank">pdal-bounces@lists.osgeo.org</a>> on behalf of Charles Karney via pdal <<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a>><br>
<b>Date: </b>Monday, June 3, 2024 at 10:50</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">AM<br>
<b>To: </b><a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a> <<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a>><br>
<b>Cc: </b>Charles Karney <<a href="mailto:charles.karney@gmail.com" target="_blank">charles.karney@gmail.com</a>><br>
<b>Subject: </b>Re: [pdal] Trouble compiling PDAL with MATLAB Plugin on Mac OS</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Note well that the error is occurring in find_library(Matlab REQUIRED)<br>
before it gets to find_package.  (But I don't know why find_library<br>
is needed in addition to find_package.)<br>
<br>
On 6/3/24 10:34, Howard Butler via pdal wrote:<br>
> I also no longer have access to Matlab but I remember the Find logic <br>
> being extra finicky on MacOS with the frameworks and weird OSXisms that <br>
> are possible. It might also be worth it to track down a more recent <br>
> FindMatlab.cmake file out there.<br>
> <br>
>> On Jun 3, 2024, at 8:48</span><span style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11.0pt">AM, Andrew Bell via pdal
<br>
>> <<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a>> wrote:<br>
>><br>
>> I have no access to Matlab and I don't know who does at this point.<br>
>><br>
>> Looking at the FindMatlab file, you might try just setting <br>
>> Matlab_ROOT_DIR and lose the defines for the specific libraries. :shrug:<br>
>><br>
>> On Mon, Jun 3, 2024 at 9:41</span><span style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11.0pt">AM Patrick Rennich via pdal
<br>
>> <<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a> <<a href="mailto:pdal@lists.osgeo.org" target="_blank">mailto:pdal@lists.osgeo.org</a>>> wrote:<br>
>><br>
>>     Hello,____<br>
>><br>
>>     ____<br>
>><br>
>>     I’m having trouble compiling PDAL from source on Mac OS when<br>
>>     turning on the BUILD_MATLAB_PLUGIN=ON. PDAL compiles fine without<br>
>>     this, but when I execute cmake as follows:____<br>
>><br>
>>     ____<br>
>><br>
>>     cmake -G Ninja -DBUILD_PLUGIN_MATLAB=ON<br>
>>     -DMatlab_MX_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64<br>
>>     -DMatlab_MAT_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64<br>
>>     -DMatlab_ENG_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64<br>
>>     -DMatlab_INCLUDE_DIRS=/Applications/MATLAB_R2024a.app/extern/include ..____<br>
>><br>
>>     ____<br>
>><br>
>>     I get the following error message:____<br>
>><br>
>>     ____<br>
>><br>
>>     CMake Error at cmake/matlab.cmake:4 (find_library):____<br>
>><br>
>>       Could not find Matlab using the following names:____<br>
>><br>
>>     Call Stack (most recent call first):____<br>
>><br>
>>       plugins/matlab/CMakeLists.txt:3 (include)____<br>
>><br>
>>     ____<br>
>><br>
>>     Let me know if there’s any other info I can provide, and any help<br>
>>     is much appreciated. Thanks.____<br>
>><br>
>>     __ __<br>
>><br>
>>     __ __<br>
>><br>
>>     Patrick<br>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<p class="MsoNormal">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>