I have a function in matlab that writes a file.txt which i use in my qt project.
So,
I have a Matlab file when I get a qt compiled executable to run using the unix(), but I’m getting an error.
the code:
unix('/home/matt/Desktop/PlaneVolumeFinal/PlaneVolumeGui');
the error:
/home/matt/Desktop/PlaneVolumeFinal/PlaneVolumeGui: symbol lookup error: /home/matt/Desktop
/PlaneVolumeFinal/PlaneVolumeGui: undefined symbol: _ZN9QListData7detach3Ev
The problem, as @grungetta is also pointing out, may be related to MATLAB local library path not seeing your Qt libraries, like
libQtMultimedia.so, which should normally in a path visible in any shell session throughLD_LIBRARY_PATHvar.One way to work around this is explicitly setting the value of
LD_LIBRARY_PATHfrom within a MATLAB running session (and then re-storing it if you need to continue). An example set of commands for your MATLAB script may be: