Skip to content

Comments

bugfix for incorrect behaviour in caffe_parse_linker_libs#3650

Merged
jeffdonahue merged 1 commit intoBVLC:masterfrom
abhijitkundu:cmake-matlab-fix
Feb 9, 2016
Merged

bugfix for incorrect behaviour in caffe_parse_linker_libs#3650
jeffdonahue merged 1 commit intoBVLC:masterfrom
abhijitkundu:cmake-matlab-fix

Conversation

@abhijitkundu
Copy link
Contributor

bugfix for incorrect behaviour in caffe_parse_linker_libs function while extracting libflags from absolute library path with multiple (dots)

On Ubuntu (both on 14.04 and 15.10) using cmake to build matlab wrapper gives a Cannot find -lpython2 error. See here.

This is because caffe_parse_linker_libs converts an absolute library path like /usr/lib/x86_64-linux-gnu/libpython2.7.so to -lpython2

The attached change will correctly convert /usr/lib/x86_64-linux-gnu/libpython2.7.so to -lpython2.7

…ile extracting libflags from absolute library path with multiple (dots)
@Nerei
Copy link

Nerei commented Feb 9, 2016

LGTM

It replaces cmake file extension removal function with own code to get proper behavior:
Cmake: libpython2.7.so -> libpython2
This: libpython2.7.so -> libpython2.7

@jeffdonahue
Copy link
Contributor

Thanks @intbots and @Nerei for the review!

jeffdonahue added a commit that referenced this pull request Feb 9, 2016
bugfix for incorrect behaviour in `caffe_parse_linker_libs`
@jeffdonahue jeffdonahue merged commit 33f2445 into BVLC:master Feb 9, 2016
@abhijitkundu abhijitkundu deleted the cmake-matlab-fix branch February 9, 2016 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants