Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #13

Open
shashankvkt opened this issue Jan 25, 2017 · 0 comments
Open

Error #13

shashankvkt opened this issue Jan 25, 2017 · 0 comments

Comments

@shashankvkt
Copy link

shashankvkt commented Jan 25, 2017

Hello I'm new to april tags and need a bit of help. Using your repository I've been able to compile as mentioned, but when i try to write a small snippet for another application (where i need to extract the center of the tag, I am facing a small issue and need `advise.The following is the code i've included all header files accordingly.

`using namespace std;
using namespace AprilTags;
using namespace cv;

int main(int argc, char* argv[])
{
VideoCapture cap(1); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;

namedWindow("view",1);
TagDetector detector(AprilTags::tagCodes36h11);

for(;;)
{
    Mat frame;
    cap >> frame; // get a new frame from camera
    std::vector< TagDetection> detector.extractTags(frame);
     imshow("view", frame);
    if(waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;

}`

and am getting the following error which i am not able to solve.

In function main': /home/shashank/catkin_ws/src/apriltags-cpp/src/my_tag.cpp:39: undefined reference to AprilTags::TagDetector::extractTags(cv::Mat const&)'
CMakeFiles/my_tag.dir/my_tag.cpp.o: In function AprilTags::TagDetector::TagDetector(AprilTags::TagCodes const&)': /usr/local/include/AprilTags/TagDetector.h:21: undefined reference to AprilTags::TagFamily::TagFamily(AprilTags::TagCodes const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [my_tag] Error 1
make[1]: *** [src/CMakeFiles/my_tag.dir/all] Error 2
make: *** [all] Error 2

could you plz help me on this.
Thnk you

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

No branches or pull requests

1 participant