Skip to content

Instantly share code, notes, and snippets.

@walidvb
Created January 17, 2013 11:15
Show Gist options
  • Save walidvb/4555271 to your computer and use it in GitHub Desktop.
Save walidvb/4555271 to your computer and use it in GitHub Desktop.
//
// main.cpp
// homography
//
// Created by Gaston on 1/17/13.
//
//
#ifndef HOMO
#define HOMO
#include <iostream>
#import <opencv2/opencv.hpp>
using namespace cv;
int main (int argc, const char * argv[])
{
IplImage *img = cvCreateImage(cvSize(200, 100), IPL_DEPTH_8U, 3);
cvLine(img, cvPoint(10, 10), cvPoint(150, 80), cvScalar(0,255,0,0), 1, 8, 0);
cvNamedWindow("img", CV_WINDOW_AUTOSIZE);
cvShowImage("img", img);
}
#endif
//ERROR
Ld build/Debug/homography normal i386
cd /Users/Gaston/dev/RDC/xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.8
/Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++-4.2 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/Gaston/dev/RDC/xcode/build/Debug -F/Users/Gaston/dev/RDC/xcode/build/Debug -filelist /Users/Gaston/dev/RDC/xcode/build/RDC.build/Debug/homography.build/Objects-normal/i386/homography.LinkFileList -mmacosx-version-min=10.8 -stdlib=libc++ -o /Users/Gaston/dev/RDC/xcode/build/Debug/homography
Undefined symbols for architecture i386:
"_cvCreateImage", referenced from:
_main in main.o
"_cvLine", referenced from:
_main in main.o
"_cvNamedWindow", referenced from:
_main in main.o
"_cvShowImage", referenced from:
_main in main.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment