Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
STIR
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Installing the MATLAB interface to STIR
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== run-time errors in MATLAB == On Linux, you might see something like this <pre> Invalid MEX-file '/nobackup/umpw/STIR/STIR-Build/src/swig/stirMATLAB_wrap.mexa64': /apps1/applications/matlab/R2016a/1/default/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /nobackup/umpw/STIR/STIR-Build/src/swig/stirMATLAB_wrap.mexa64) </pre> you might see something similar on Mac. This problem is caused by MathWorks making sure that MATLAB works by shipping its own version of system/gcc/dependent libraries, but breaking external code in the mean time. Our recommended solution is to compile EVERYTHING with a MATLAB compatible compiler. Check for instance https://uk.mathworks.com/support/sysreq/previous_releases.html. On Linux/Mac you can do this as follows <pre> CC=gcc-4.7 CXX=g++4.7 ccmake ... </pre> If you want to use a more recent compiler (or have a corner case where you see the above error anyway), you could try to resolve by pre-loading your shared libraries. In bash, you can do for instance: <pre> LD_PRELOAD=/lib64/libstdc++.so.6:/lib64/libhdf5.so matlab& </pre> In certain systems, you might have to use <tt>LD_PRELOAD_64</tt>. Also, the exact path of your libraries will change. You can normally find out by locating the stirMATLAB_wrap.mex* file and doing something like <pre> ldd stirMATLAB_wrap.mexa64 </pre>
Summary:
Please note that all contributions to STIR may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
STIR:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width