OpenCV port variants

George Profenza orgicus at
Wed Aug 1 04:40:30 PDT 2012

I think I did something wrong.
I ran:
  sudo port selfupdate
  sudo port upgrade --enforce-variants opencv +qt4 +python27
but everything holts when building opencv.

I had a look at the log and this is where everything holts:

No such file or directory

and that's correct because I still have OpenCV-2.4.1 installed, not

Is there a way to enforce qt4 and python27 variants on the existing port
2.4.1 port ?


On Wed, Aug 1, 2012 at 10:58 AM, George Profenza <orgicus at> wrote:

> I can see the variants listed:
> opencv has the variants:
>    dc1394: Use libdc1394 for FireWire camera. Breaks compatibility with
> Apple iSight FireWire camera.
>    debug: Enable debug binaries
>    python26: Add Python 2.6 bindings
>      * conflicts with python27
>    python27: Add Python 2.7 bindings
>      * conflicts with python26
>    qt4: Use qt4 backend for graphical interface.
>    tbb: Use Intel TBB
>    universal: Build for multiple architectures
> I've got an error when trying to enforce the python26 variant:
> Error: xorg-libxcb: Variant python26 conflicts with python27
> Error: Unable to open port: Error evaluating variants
> To report a bug, follow the instructions in the guide:
> but so far it seems to install fine with the python27 variant.
> Thank you very much for this !
> On Wed, Aug 1, 2012 at 10:32 AM, Clemens Lang <cal at> wrote:
>> On Wed, Aug 01, 2012 at 10:02:02AM +0100, George Profenza wrote:
>> > I'm not sure if it was installed with Qt4 support or Python support
>> > though.
>> In that case it probably didn't add python or qt4 support, because
>> opencv has variants to provide this support; see:
>>         `port variants opencv`
>> > Is it possible to 'update'/change the port install to also include qt4
>> > and python26 ?
>> > If so, what commands do I run ? Otherwise, what are my alternatives ?
>> If you want qt4 and python26 you could run
>>         `sudo port upgrade --enforce-variants opencv +qt4 +python26`
>> or for python27
>>         `sudo port upgrade --enforce-variants opencv +qt4 +python27`
>> --
>> Clemens Lang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 4874 bytes
Desc: not available
URL: <>

More information about the macports-users mailing list