bcharrow / matlab_rosbag

A small library for reading ROS bags in Matlab
BSD 3-Clause "New" or "Revised" License
102 stars 52 forks source link

mex_compile_ros: Compile using existing system libraries #8

Closed eacousineau closed 10 years ago

eacousineau commented 10 years ago

For system with 64-bit MATLAB, you can try out compiling the MEX files using existing system libraries. I was able to compile in this fashion and run the example on Ubuntu 12.04 with Matlab R2013a (Student Edition). (This is after having replaced MATLAB's copies of libstdc++*)

Of course, users run the risk of random errors given the different library versions, but this is for the impatient risk takers :P

bcharrow commented 10 years ago

Although I am often an impatient risk taker, I'm hesitant to merge this having been bitten by library mismatch errors several times. If you're working on a new feature, setting up a proper work space is a good idea because releasing the mex file this script builds would lead to hard to diagnose errors. If you're not working on a new feature, why not download the static release? Is compiling the libraries from scratch that hard?

eacousineau commented 10 years ago

Ah, I'm sorry for not following up. That definitely makes sense, I guess neither the static release nor compiling are that difficult. Thanks!