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

22 vues (au cours des 30 derniers jours)
Mark Clutario
Mark Clutario le 15 Juin 2022
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

Réponses (1)

嘉翔 王
嘉翔 王 le 19 Oct 2022
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.

Catégories

En savoir plus sur MATLAB Compiler SDK dans Help Center et File Exchange

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by