<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">You can sometimes figure out what's going on by adding --debug-find to your CMake invocation (caution that it's noisy!)<br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Jun 3, 2024, at 10:06 AM, Patrick Rennich via pdal <pdal@lists.osgeo.org> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">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></div><div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;"><o:p> </o:p></span></div><div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Patrick</span><span style="font-size: 11pt;"><o:p></o:p></span></div><div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;"><o:p> </o:p></span></div><div id="mail-editor-reference-message-container"><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; border-image: none; padding: 3pt 0cm 0cm;"><p class="MsoNormal" style="margin: 0cm 0cm 12pt; font-size: 12pt; font-family: Aptos, sans-serif;"><b><span style="">From:<span class="Apple-converted-space"> </span></span></b><span style="">pdal <pdal-bounces@lists.osgeo.org> on behalf of Charles Karney via pdal <pdal@lists.osgeo.org><br><b>Date:<span class="Apple-converted-space"> </span></b>Monday, June 3, 2024 at 10:50</span><span style="font-family: Arial, sans-serif;"> </span><span style="">AM<br><b>To:<span class="Apple-converted-space"> </span></b>pdal@lists.osgeo.org <pdal@lists.osgeo.org><br><b>Cc:<span class="Apple-converted-space"> </span></b>Charles Karney <charles.karney@gmail.com><br><b>Subject:<span class="Apple-converted-space"> </span></b>Re: [pdal] Trouble compiling PDAL with MATLAB Plugin on Mac OS<o:p></o:p></span></p></div><div><div style="margin: 0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt;">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<span class="Apple-converted-space"> </span><br>> being extra finicky on MacOS with the frameworks and weird OSXisms that<span class="Apple-converted-space"> </span><br>> are possible. It might also be worth it to track down a more recent<span class="Apple-converted-space"> </span><br>> FindMatlab.cmake file out there.<br>><span class="Apple-converted-space"> </span><br>>> On Jun 3, 2024, at 8:48</span><span style="font-size: 11pt; font-family: Arial, sans-serif;"> </span><span style="font-size: 11pt;">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<span class="Apple-converted-space"> </span><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: 11pt; font-family: Arial, sans-serif;"> </span><span style="font-size: 11pt;">AM Patrick Rennich via pdal<br>>> <pdal@lists.osgeo.org <<a href="mailto:pdal@lists.osgeo.org" style="color: blue; text-decoration: underline;">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" style="color: blue; text-decoration: underline;">https://lists.osgeo.org/mailman/listinfo/pdal</a><o:p></o:p></span></div></div></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">pdal mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="mailto:pdal@lists.osgeo.org" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">pdal@lists.osgeo.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><a href="https://lists.osgeo.org/mailman/listinfo/pdal" style="color: blue; text-decoration: underline; font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://lists.osgeo.org/mailman/listinfo/pdal</a></div></blockquote></div><br></body></html>