Invalid MEX-file undefined symbol: MWTIFFRegi​sterFuncti​onPointers

조회 수: 20 (최근 30일)
Mark Clutario
Mark Clutario 2022년 6월 15일
답변: 嘉翔 王 2022년 10월 19일
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

답변 (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.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by