ithron / CortidQCT

A tool for automatic cortical shape identification for QCT scans
Academic Free License v3.0
2 stars 0 forks source link

CortidQCT.saveModel is broken in MATLAB 2018b #47

Closed ithron closed 5 years ago

ithron commented 5 years ago

Getting the following erroe message of Linux:

Error using CortidQCT.floatVector2base64
Invalid MEX-file '/somepath/MATLAB/Add-Ons/Toolboxes/CortidQCT/+CortidQCT/floatVector2base64.mexa64': Gateway
function is missing.

Error in CortidQCT.saveModel/encodeData (line 11)
        encodedData = CortidQCT.floatVector2base64(single(data(:)'));

Error in CortidQCT.saveModel (line 82)
    encDat = encodeData(voi.data);

Error in CortidQCT.CreateModel/SaveModelButtonPushed (line 576)
                CortidQCT.saveModel(app.model, [path file]);

Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
ithron commented 5 years ago

This post suggest it can be solved by setting

set_target_properties(matlab PROPERTIES COMPILE_FLAGS "-fvisibility=default")
ithron commented 5 years ago

That fixed it!

ithron commented 5 years ago

Fixed in https://github.com/ithron/CortidQCT/commit/287b2416f55bef327ae0d773a9e5bd74b527d9d0