-
Notifications
You must be signed in to change notification settings - Fork 368
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
reg. compiling ofxFaceTracker #32
Comments
Try switching to the develop branch of ofxCv and ofxFaceTracker. I can merge them to master later but it should fix your problem. On Oct 21, 2012, at 1:53 PM, yanjia [email protected] wrote:
|
Hi, kyle, I cannot understand "switching to the develop branch of ofxCv and ofxFaceTracker"... Could you give me deeper guides? Or, I wonder if you could send me your entire project of FaceOSC_win for study? Thank you. |
ok, i merged the changes from the develop branch to the master branch. so don't worry about doing what i said -- just get the latest copy of both ofxCv (be45a2bb88) and ofxFacetrackerd (5263d1ab2). i think the reason that you were getting a problem was because there is so could you re-download both, and re-generate the project files? please let me know if there is the same error, or a new error, or if it works. |
Hi, Kyle, the error is as below this time, but it seems to be the same error as before. error LNK2019: unresolved external symbol "float cdecl ofxCv::trackingDistance(class cv::Rect const &,class cv::Rect const &)" (?trackingDistance@ofxCv@@YAMABV?$Rect_@H@cv@@0@Z) referenced in function "public: virtual class std::vector<unsigned int,class std::allocator > & thiscall ofxCv::Tracker<class cv::Rect >::track(class std::vector<class cv::Rect,class std::allocator<class cv::Rect_ > > const &)" (?track@?$Tracker@V?$Rect_@H@cv@@@ofxCv@@UAEAAV?$vector@IV?$allocator@I@std@@@std@@abv?$vector@V?$Rect_@H@cv@@v?$allocator@V?$Rect_@H@cv@@@std@@@4@@z) |
Hi, dear Kyle, do you have any idea? |
Can you try building some of the ofxCV samples and see if you get the same error? |
Hi, Dewb, I'm new and wonder where I can find ofxCV samples for testing? Thank you. |
ah, maybe i misunderstood this issue -- is it possible you haven't downloaded ofxCv? grab it here: https://github.com/kylemcdonald/ofxCv the examples are all available in the repository, just try running them. if those work, but the ofxFaceTracker example still doesn't, then try using the 0072 projectGenerator to create an ofxOpenCv + ofxCv + ofxFaceTracker project. |
Hi, dear Kyle. Following what you said, I created an ofxOpenCv + ofxCv + ofxFaceTracker project using 0072 projectGenerator but I still met the same error as before. BTW, ofxCV samples work well. |
About ofxFaceTracker examples, I don't know how to run them using VS2010. Please give me the hints. Thanks. |
if ofxCv works but not ofxFaceTracker, i recommend adding the ofxFaceTracker files to an ofxCv project by hand. also, i'm thinking of combining the ofxCv and ofxFaceTracker repositories, which should simplify this a little. |
Hi, Klye, I manually copied all ofxFaceTracker/ files into the corresponding directory of ofxCV/ without .gitignore file, but errors still exist as bellow.
|
Plus, I don't test ofxFraceTracker samples yet, because I have no idea how to run them using VS2010. |
Hi, Kyle, I searched my errors through Google, but didn't get satisfied solutions. I wonder if you could provide me your entire project of ofxFaceTracker you compiled using VS2010. Let me try if I still have the same errors? Thank you. |
i'm sorry, i didn't use visual studio to build FaceOSC on windows -- i used code::blocks. so i haven't posted a visual studio project before. i'm going to take a look right now. |
i just built vs2010 projects for ofxFaceTracker successfully. i got the same error that you had, but when i googled the error number i found this solution http://stackoverflow.com/a/3731643 which fixed it. |
Hi, dear Kyle, I appreciate for your helps! ofxFaceTracker examples was indeed built successfully, but when they be run they are aborted. Assertion failed: s.is_open() at file ..\libs\facetracker\src\lib\Tracker.cc line 59. I tested example-expression and example-extraction. BTW, ofxCV examples are still run well. I also met some strange problems on new ofxFaceTracker file and report you. I wonder if you have the same problems.
|
all the examples (including faceosc) should stay in their current location, and be compiled from their current location. you shouldn't move them, because the paths are all relative and moving them will break the paths. if you have an |
the example faceosc which is not like examples (expression and extraction) does not comtain .sln. I don't know how to build it. Could you give me some hints? |
sorry, i forgot that the .sln was not copied over. try to take a .sln + other files (vcxproj, user files) from another example and then add ofxOsc by hand. |
Hi, Kyle, Following what you said, I met the following errors. I'm not clear how to fix them and wonder if I need to do more? Thank you.main.obj : error LNK2019: unresolved external symbol "public: __thiscall ofxOscBundle::~ofxOscBundle(void)" (??1ofxOscBundle@@QAE@XZ) referenced in function __unwindfunclet$??0testApp@@QAE@XZ$0 |
Sorry for my posting so many. I'm supposed to select part of them to post. |
Hi, Kyle, I also met the familiar errors when I compiled blink example. I wonder if you have same errors. error LNK2019: unresolved external symbol "public: __thiscall ofxOscSender:: |
these errors occur when you haven't added ofxOsc to your project correctly. for more information you could try posting on the openFrameworks forum, but i don't have the time right now to craft a compiling example for you. sorry! |
I see, Kyle. Thank you for your helps recently. |
Hi, Kyle, checking many times, I still cannot add ofxOsc into blink and faceOSC example correctly. openFrameworks forum suggests me get someone knowledgeable. I hope you could help me when you are available. advanced example tracks eyebrows and mouth well but eyes, so I want to try blink example. Thank you. |
After killing myself for a week, I've managed to get it compiled on Windows, but all I see is a grey window. No compile errors. Dependency walker looks good. etc. Any ideas? ^.^ |
oh man, congratulations... if there's just a grey window the first thing i'd check is that the video grabber is actually working. can you try running one of the OF video grabber examples? if that works, then maybe try going into debug mode and walking through the update() in the OF app, all the way into the face tracker update() to see if things are working correctly, or if something is getting skipped. |
Hey, Kyle. I've actually came a long way since I left that last message. Thanks for your response! I've got some interesting news. I've managed to get it functional on Windows without the ofxFaceTrackerThreaded module and just used the ofxFaceTracker, directly. Running through the ofxFaceTrackerThreaded module causes face detection to be very sporadic and rarely ever actually detects the face. However, without multi-threading this project is unfeasible due to the performance requirements. Frame-rates become very unstable and drop to something less than 1FPS. What information should I provide, to aid in diagnostics? |
if you're not using the threaded tracker, is the face detected continuously, or does it lose track as well? does the tracking consistency vary with respect to how quickly you are moving? if the tracking framerate is poor, then any small movements are amplified. i can't imagine a situation where the tracker would run at 1fps, unless you're using an embedded system / mobile device? can you describe more about the system you're using, your lighting situation, and more precisely describe what happens with the standard tracker vs the threaded tracker (e.g., what framerate you're running at in both cases, how often the tracking fails, what framerate the camera is running at, etc) also it might make sense to open this as a new issue like "ofxFaceTrackerThreaded poor performance on windows" or similar. |
Hi all, I just tried compiling for windows with 0.9.7 and am running into the same issue. The empty example from ofxCv compiles with no problem, but the empty example for ofxFaceTracker gives me this output:
This is in visual studio 2015 Edit: I finally got it to compile by changing the Tracker class and all references/filenames to ofxCvTracker. @kylemcdonald, I know you had specifically tried to avoid that, but it seems to be the simplest solution here. |
I am having the same issue as well on VS2015. Renaming the class as @Shaderboy said does work indeed, just a little adventurous for my novice skills though. Curious to why this is not a problem for other users. |
as @kylemcdonald already said 5 years ago, this should fix the issue without the renaming adventure: http://stackoverflow.com/a/3731643i just wanted to make this tip more visible again |
This worked for me |
Hi, dear Kyle,
I tried your work, FaceOSC_win. It is AMAZING! I tried to compile ofxFaceTracker to get FaceOSC_win but met errors and hope get you helps. I use 64-bit windows 7 and VS2010.
The error is:
ContourFinder.obj : error LNK2019: unresolved external symbol "float cdecl ofxCv::trackingDistance(class cv::Rect const &,class cv::Rect const &)"
I really hope to get your helps, because it is supposed to be helpful to my current project. Sorry to bother you. I'll appreciate for your supports.
The text was updated successfully, but these errors were encountered: