Invalid MEX-file undefined symbol: MWTIFFRegisterFunctionPointers
22 次查看(过去 30 天)
显示 更早的评论
Trying to create a python library that outputs a geoTIFF using the `geotiffwrite` function
compiled library runs smoothly on windows but errors on linux (Ubuntu 20.04.4 LTS)
compiled on MATLAB R2022a Update 2
Here's the error it outputs:
File "/usr/local/MATLAB/MATLAB_Runtime/v912/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/deployablefunc.py", line 79, in __call__
ret = futureresult.FutureResult(self._cppext_handle, future_tuple, nlhs,
File "/usr/local/MATLAB/MATLAB_Runtime/v912/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/futureresult.py", line 135, in result
raise e
File "/usr/local/MATLAB/MATLAB_Runtime/v912/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/futureresult.py", line 123, in result
raise e
File "/usr/local/MATLAB/MATLAB_Runtime/v912/toolbox/compiler_sdk/pysdk_py/matlab_pysdk/runtime/futureresult.py", line 112, in result
self._result = self._cppext_handle.getFEvalResult(self._future_tuple,
matlab_pysdk.runtime.MatlabRuntimeError: An error occurred when evaluating the result from a function. Details:
File /usr/local/MATLAB/MATLAB_Runtime/v912/mcr/toolbox/matlab/imagesci/Tiff.m, line 660, in Tiff.Tiff
File /usr/local/MATLAB/MATLAB_Runtime/v912/mcr/toolbox/map/mapformats/geotiffwrite.m, line 1490, in writeGeoTiffFile
File /usr/local/MATLAB/MATLAB_Runtime/v912/mcr/toolbox/map/mapformats/geotiffwrite.m, line 259, in geotiffwrite
File /home/mark/.mcrCache9.12/las2de1/las2dem/spacesium-pc2dem/las2dem.m, line 14, in las2dem
Invalid MEX-file '/usr/local/MATLAB/MATLAB_Runtime/v912/mcr/toolbox/matlab/imagesci/private/tifflib.mexa64': /usr/local/MATLAB/MATLAB_Runtime/v912/bin/glnxa64/libmwtiffmexutils.so: undefined symbol: MWTIFFRegisterFunctionPointers
0 个评论
回答(1 个)
嘉翔 王
2022-10-19
I meet the same error like this 'Invalid MEX-file, ... libmwtiffmexutils.so: undefined symbol: MWTIFFRegisterFunctionPointers'. My problem is that I compile on a win10 machine and deploy it on a centos7 server, they use different underline compiler. After I recompile in a centos7 server installed with Matlab Compile SDK, it works.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!