I installed opencv via Macports, then tried this test program:

#include “highgui.h”

int main( int argc, char** argv ) {
  IplImage* img = cvLoadImage( argv[1] );
  cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
  cvShowImage( “Example1”, img );
  cvWaitKey(0);
  cvReleaseImage( &img );
  cvDestroyWindow( “Example1” );
}


Linked against libcxcore.dylib, libcvaux.dylib, libcv.dylib, libhighgui.dylib, 
and libml.dylib.

Searching google shows that opencv is not the only package that runs into 
similar problems (if indeed it's the package's fault).

On Nov 18, 2010, at 3:19 PM, Ryan Schmidt wrote:

> The Apple and MacPorts versions of these libraries coexist just fine most 
> cases. I cannot advocate the steps you described below, and without further 
> information, I cannot say why you experienced problems before.

_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to