[pdal] Trouble compiling PDAL with MATLAB Plugin on Mac OS

Charles Karney charles.karney at gmail.com
Mon Jun 3 07:49:19 PDT 2024


Note well that the error is occurring in find_library(Matlab REQUIRED)
before it gets to find_package.  (But I don't know why find_library
is needed in addition to find_package.)

On 6/3/24 10:34, Howard Butler via pdal wrote:
> I also no longer have access to Matlab but I remember the Find logic 
> being extra finicky on MacOS with the frameworks and weird OSXisms that 
> are possible. It might also be worth it to track down a more recent 
> FindMatlab.cmake file out there.
> 
>> On Jun 3, 2024, at 8:48 AM, Andrew Bell via pdal 
>> <pdal at lists.osgeo.org> wrote:
>>
>> I have no access to Matlab and I don't know who does at this point.
>>
>> Looking at the FindMatlab file, you might try just setting 
>> Matlab_ROOT_DIR and lose the defines for the specific libraries. :shrug:
>>
>> On Mon, Jun 3, 2024 at 9:41 AM Patrick Rennich via pdal 
>> <pdal at lists.osgeo.org <mailto:pdal at lists.osgeo.org>> wrote:
>>
>>     Hello,____
>>
>>     ____
>>
>>     I’m having trouble compiling PDAL from source on Mac OS when
>>     turning on the BUILD_MATLAB_PLUGIN=ON. PDAL compiles fine without
>>     this, but when I execute cmake as follows:____
>>
>>     ____
>>
>>     cmake -G Ninja -DBUILD_PLUGIN_MATLAB=ON
>>     -DMatlab_MX_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64
>>     -DMatlab_MAT_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64
>>     -DMatlab_ENG_LIBRARY=/Applications/MATLAB_R2024a.app/bin/maca64
>>     -DMatlab_INCLUDE_DIRS=/Applications/MATLAB_R2024a.app/extern/include ..____
>>
>>     ____
>>
>>     I get the following error message:____
>>
>>     ____
>>
>>     CMake Error at cmake/matlab.cmake:4 (find_library):____
>>
>>       Could not find Matlab using the following names:____
>>
>>     Call Stack (most recent call first):____
>>
>>       plugins/matlab/CMakeLists.txt:3 (include)____
>>
>>     ____
>>
>>     Let me know if there’s any other info I can provide, and any help
>>     is much appreciated. Thanks.____
>>
>>     __ __
>>
>>     __ __
>>
>>     Patrick


More information about the pdal mailing list