MacOSX Compile error on '-bundle' and '-dynamiclib'

Bug #1150009 reported by Ryan Lester
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pyvlfeat
New
Undecided
Unassigned

Bug Description

While attempting to compile on MacOSX from both pip and source, I got the error:
clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
After a bit of searching, I fixed this by removing the '-shared' flag from the LinkArgs. I don't know if this solution has any unpleasant side-effects, however.

description: updated
Revision history for this message
Ryan Lester (sursiks-010) wrote :

Unsure if this is related, but now when I try to construct VLFeat (ie. import _vlfeat), I get:
Fatal Python error: Interpreter not initialized (version mismatch?)

For more details: I am using the version of Python 2.7 provided by Homebrew. Looking around on the internet, it seems like this error occurs when the library builds against the wrong version of Python; however, I have been unable to find an easy fix for this.

Revision history for this message
lbarnett (lbarnett) wrote :

I also had this problem - OSX 10.8.5., pyvlfeat-0.1.1a3, Boost.python 1.55.0.

Revision history for this message
enthalpy_yan (enthalpy-yan311) wrote :

remove -shared argument in setup.py

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.