Giter VIP home page Giter VIP logo

Comments (15)

kylemcdonald avatar kylemcdonald commented on August 15, 2024

hi marleen, i haven't used ofxFaceTracker on ubuntu very much. but it sounds like you have made a lot of progress!

i have two thoughts:

  1. renaming ofxCv to ofxOpenCv is a bit dangerous, because they are two different things -- it probably won't work that way. ofxCv comes from my repository here https://github.com/kylemcdonald/ofxCv but ofxOpenCv ships with openFrameworks. you need to add both ofxOpenCv and ofxCv to your project. ofxFaceTracker uses the code from ofxCv, but it also uses the libraries included with ofxOpenCv.
  2. right now, the easiest way to generate project files is to use the project generator. this should be at the root of the openFrameworks distribution (if you download the release of openFrameworks). tell the project generator to make some makefiles for you, and add ofxCv, ofxFaceTracker, and ofxOpenCv to your project. as far as i know, this should work.

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

Hi Kyle,
Thanks! I downloaded ofxCv and I generated a project using the project generator, just like you said. I tried to compile the BlinkExample. But I still got some errors. I think I got rid of some them, but not all:

At first I got a whole bunch of errors from the compiler (' no such file or directory ' ) I found out that it had to do with the BlinkExample.cpb file, which was referring "win_cb" file folders, so I renamed these directories to 'linux64 in the .cpb file'

After this I got the following error:
cairo-features.h: No such file or directory
It turned out that
#include "cairo-features.h"
should be:
#include "cairo/cairo-features.h"
This is in the file "OpenFrameworks/graphics/ofCairoRenderer.h"

After that I got another error:
kiss_fft.h: No such file or directory
I made this error dissapear by adding the next few lines to the BlinkExample.cpb file:


And after that I got the next error:
gst/gst.h: No such file or directory.

this is in OpenFrameworks/video/ofGstUtils.h

I tried if the addon would work with an older version of oF. So I tried to compile the example with different versions of oF, but this didn't solve the issue. (as a result, both gstreamer0.10 and gstreamer1.0 are installed on my computer now). Any tips about what else I can try? Since this error has to do with Openframeworks itself, I will post this issue on the Openframeworks forum as well.

from ofxfacetracker.

kylemcdonald avatar kylemcdonald commented on August 15, 2024

It sounds like these are problems with the project generator itself. Could
you try to generate an example with no addons, and see if t runs? If there
is a problem, could you report it to the main openFrameworks repo?

On Thursday, August 29, 2013, MarleenAndela wrote:

Hi Kyle,
Thanks! I downloaded ofxCv and I generated a project using the project
generator, just like you said. I tried to compile the BlinkExample. But I
still got some errors. I think I got rid of some them, but not all:

At first I got a whole bunch of errors of the compiler (' no such file or
directory ' ) I found out that it had to do with the example's
BlinkExample.cpb file, which was referring "win_cb" file folders, so I
renamed these directories to 'linux64'

After this I got the following error:
cairo-features.h: No such file or directory
It turned out that
#include "cairo-features.h"
should be:
#include "cairo/cairo-features.h"
This is in the file "OpenFrameworks/graphics/ofCairoRenderer.h"

After that I got another error:
kiss_fft.h: No such file or directory
I made this error dissapear by adding the next few lines to the
BlinkExample.cpb file:


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-23491257
.

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

An empty example with no addons does compile.
An empty example with OfxOpencv and OfxCv does also compile.
When I try to compile an empty example with OfxCv, OfxOpencv and OfxFacetracker I get this:

../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:3:17: error: ‘ofxCv’ is not a namespace-name
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:3:22: error: expected namespace-name before ‘;’ token

When I try to compile an OfxCv example I get the same errors (first cant find kiss.h and then can't find gst/gst.h. The last one I cannot manually solve.

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

I figured out how to the missing directorie(s) manually, but now i get this:

......addonsofxOpenCvlibsopencvliblinux64libopencv_legacy220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_haartraining_engine.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_features2d220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_calib3d220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_objdetect220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_imgproc220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_video220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_highgui220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_ml220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_core220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_lapack.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_flann220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_contrib220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libopencv_gpu220.a||No such file or directory|
......addonsofxOpenCvlibsopencvliblinux64libzlib.a||No such file or directory|
../../../libs/FreeImage/lib/linux64/FreeImage.lib||No such file or directory|
../../../libs/rtAudio/lib/linux64/librtaudio.a||No such file or directory|
../../../libs/quicktime/lib/linux64/qtmlClient.lib||No such file or directory|
../../../libs/cairo/lib/linux64/libcairo.a||No such file or directory|
../../../libs/cairo/lib/linux64/libpixman-1.a||No such file or directory|
../../../libs/freetype/lib/linux64/libfreetype.a||No such file or directory|
../../../libs/glut/lib/linux64/libglut.a||No such file or directory|
../../../libs/videoInput/lib/linux64/videoInputLib.a||No such file or directory|
../../../libs/fmodex/lib/linux64/libfmodex.a||No such file or directory|
../../../libs/glew/lib/linux64/glew32s.lib||No such file or directory|
../../../libs/glu/lib/linux64/glu32.lib||No such file or directory|
../../../libs/poco/lib/linux64/libPocoNetmt.a||No such file or directory|
../../../libs/poco/lib/linux64/libPocoUtilmt.a||No such file or directory|
../../../libs/poco/lib/linux64/libPocoXMLmt.a||No such file or directory|
../../../libs/poco/lib/linux64/libPocoFoundationmt.a||No such file or directory|
||=== Build finished: 30 errors, 0 warnings (0 minutes, 1 seconds) ===|

It is frustrating! What should I do? Buy a mac? :o

from ofxfacetracker.

kylemcdonald avatar kylemcdonald commented on August 15, 2024

@arturoc do you have any ideas here? am i doing something wrong with ofxCv from a linux perspective?

from ofxfacetracker.

arturoc avatar arturoc commented on August 15, 2024

i've used these 3 addons without problem in linux since a while ago without problem with the project generated by the PG so not sure what' can be going on. the only thing you need to do is to add the ofxOpenCv addon so it also includes the library.

i suspect it's something related with namespaces and include files, even if you are super careful to include things relative to the containing folder the fact that a file is called something like Flow.h or Helpers.h makes it super easy to have clashes with other libraries that we are including from OF or even from individual projects. to make it safer i would change the filenames to ofxCvFlow, ofxCvHelpers...

anyway, @MarleenAndela can you try creating an empty project from the PG, with no addons, make sure you have the addons in the addons folder of openframeworks and that the names of the folders are ofxCv and ofxFaceTracker (remove any suffixes added by gihub if you download them as a zip)

then create a file in the root of your project called addons.make and add this 3 lines in it:;

ofxOpenCv
ofxCv
ofxFaceTracker

now from a terminal go to the project folder and type:

make

that should compile your project without errors and it's indeed what the projectGenerator should be doing but just in case

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

Hi Kyle and arturoc,
Thanks! I created an empty project with the project generator and manually added the addons in the addons.make file (which was already there). The addons were in de addons folder and there was no -master or whatsoever suffixes. In the terminal I typed the "make" command in the project folder and this is what I got:

../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:3:17: error: ‘ofxCv’ is not a namespace-name
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:3:22: error: expected namespace-name before ‘;’ token
In file included from ../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:1:0:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h: In constructor ‘ofxFaceTracker::ofxFaceTracker()’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:107:16: warning: ‘ofxFaceTracker::tolerance’ will be initialized after [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:106:6: warning: ‘int ofxFaceTracker::attempts’ [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:45:1: warning: when initialized here [-Wreorder]
In file included from ../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:1:0:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:106:6: warning: ‘ofxFaceTracker::attempts’ will be initialized after [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:96:7: warning: ‘bool ofxFaceTracker::failed’ [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:45:1: warning: when initialized here [-Wreorder]
In file included from ../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:1:0:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:108:7: warning: ‘ofxFaceTracker::useInvisible’ will be initialized after [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:97:6: warning: ‘int ofxFaceTracker::age’ [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:45:1: warning: when initialized here [-Wreorder]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp: In member function ‘void ofxFaceTracker::addTriangleIndices(ofMesh&) const’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:342:6: warning: unused variable ‘in’ [-Wunused-variable]
In file included from ../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:1:0:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h: In instantiation of ‘ofPolyline ofxFaceTracker::getFeature(ofxFaceTracker::Feature, std::vector<_Tp>) const [with T = ofVec2f]’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:272:45: required from here
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:122:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘LEFT_EYEBROW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘RIGHT_EYEBROW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘LEFT_JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘RIGHT_JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘NOSE_BRIDGE’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘NOSE_BASE’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘ALL_FEATURES’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h: In instantiation of ‘ofPolyline ofxFaceTracker::getFeature(ofxFaceTracker::Feature, std::vector<_Tp>) const [with T = ofVec3f]’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:276:46: required from here
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:122:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘LEFT_EYEBROW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘RIGHT_EYEBROW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘LEFT_JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘RIGHT_JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘JAW’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘NOSE_BRIDGE’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘NOSE_BASE’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.h:128:3: warning: enumeration value ‘ALL_FEATURES’ not handled in switch [-Wswitch]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp: In member function ‘ofxFaceTracker::Direction ofxFaceTracker::getDirection() const’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:269:1: warning: control reaches end of non-void function [-Wreturn-type]
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp: In static member function ‘static std::vector ofxFaceTracker::getFeatureIndices(ofxFaceTracker::Feature)’:
../../../addons/ofxFaceTracker/src/ofxFaceTracker.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type]
make[1]: *** [../../../addons/obj/linux64/Release/ofxFaceTracker/src/ofxFaceTracker.o] Error 1
make: *** [Release] Error 2

So still no succes! But I also found out that my bios is blocking kvm features. This has something to do with visualization. (?) I also did a system test and my graphics/display test failed because the test program crashed. I have no clue why this happens and what it means, but its probably not a very good starting point.

But there is something else which I think is strange and I think it might have to do with something else: An empty example with ofxOpencv and ofxCv, made by the PG does can be built in Codeblocks, but when I try run an OfxCv example I get all these errors within the OpenFrameworks library itself, like:
../../../libs/openFrameworks/sound/ofOpenALSoundPlayer.h|18|fatal error: kiss_fft.h: No such file or directory|

I think its very weird that these errors exist in the OpenFrameworks libs because all the other examples are working fine. It only seems to be a problem in the OfxCv examples.

Just to be sure, I did it like this: I copied the OfxCv example folder to the 'myApps' folder (same location as where the PG genarated stores the projects) In the terminal I went to the project location folder and typed "make". I got no errors during the compilation. After that I tried to build and run the project in codeblocks and then I got the error.

from ofxfacetracker.

arturoc avatar arturoc commented on August 15, 2024

the codeblocks projects in ofxCv examples are probably for windows and that's why you are getting all those errors, try generating them with the PG instead.

what linux distribution are you using?

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

Which files of the example do I need to copy to the new folder generated by de PG?

I am using Ubuntu 13.04

from ofxfacetracker.

arturoc avatar arturoc commented on August 15, 2024

just run the PG on the example, in linux it will update the project

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

When I type make in the terminal:
obj/linux64/Release/src/main.o: In function main': main.cpp:(.text.startup+0x117): multiple definition ofmain'
obj/linux64/Release/FaceZoomExample/src/main.o:main.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [bin/example-face-zoom] Error 1
make: *** [Release] Error 2

And in codeblocks:
../../../libs/openFrameworks/sound/ofOpenALSoundPlayer.h|18|fatal error: kiss_fft.h: No such file or directory|

from ofxfacetracker.

StudioAndela avatar StudioAndela commented on August 15, 2024

Hey, I got it working! Thanks for the advice =]

from ofxfacetracker.

volumetric avatar volumetric commented on August 15, 2024

@marleen How your got it working?

from ofxfacetracker.

Javingka avatar Javingka commented on August 15, 2024

@arturoc or @MarleenAndela Hi, I have this same problem and have done everything that Arturo said to Marleen, but I can't resolve the last step, how do I run the PG on the example exactly? Sorry but I can't solve how to do it.

Thanks.

from ofxfacetracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.