<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.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">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Patrick</span><span style="font-size:11.0pt"><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">pdal <pdal-bounces@lists.osgeo.org> on behalf of Charles Karney via pdal <pdal@lists.osgeo.org><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>pdal@lists.osgeo.org <pdal@lists.osgeo.org><br>
<b>Cc: </b>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"><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>
>> <pdal@lists.osgeo.org> 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>
>> <pdal@lists.osgeo.org <<a href="mailto:pdal@lists.osgeo.org">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>
pdal@lists.osgeo.org<br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal">https://lists.osgeo.org/mailman/listinfo/pdal</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>