I'm having trouble building the matlab interface. I managed to get it building on linux, but only after removing the --mex option to the mex compiler from here
(Side notes: -fPIC is required when building a geographiclib which can be linked into mex shared objects on linux and the -Wl,-rpath stuff in the matlab add_custom_command should be unnecessary in this case.)
All in all, very nice bindings :)
~Chris F.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe this problem is already fixed in the devel branch. Please check out this branch and verify. Please suggest changes to include the -fPIC flag where appropriate. I anticipate making a release in about 2 weeks.
--Charles
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-06-26
Ah very nice. Most projects I follow use master as the development branch, so I didn't realise you'd already fixed this.
Attached is a patch to enable position independent code and remove the mex rpath when building GeographicLib statically.
Hi,
I'm having trouble building the matlab interface. I managed to get it building on linux, but only after removing the --mex option to the mex compiler from here
http://sourceforge.net/p/geographiclib/code/ci/master/tree/matlab/CMakeLists.txt#l55
As far as I can tell --mex is specific to octave's mkoctfile?
The cmake command used was
(Side notes: -fPIC is required when building a geographiclib which can be linked into mex shared objects on linux and the -Wl,-rpath stuff in the matlab add_custom_command should be unnecessary in this case.)
All in all, very nice bindings :)
~Chris F.
I believe this problem is already fixed in the devel branch. Please check out this branch and verify. Please suggest changes to include the -fPIC flag where appropriate. I anticipate making a release in about 2 weeks.
--Charles
Ah very nice. Most projects I follow use master as the development branch, so I didn't realise you'd already fixed this.
Attached is a patch to enable position independent code and remove the mex rpath when building GeographicLib statically.
~Chris
This is fixed in GeographicLib version 1.31.