Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-04-25

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:05 oneironaut joined #openframeworks
00:07 oneironaut joined #openframeworks
00:21 pizthewiz joined #openframeworks
00:36 marcocanc joined #openframeworks
00:44 pizthewiz joined #openframeworks
00:49 marcocanc joined #openframeworks
00:53 alski joined #openframeworks
00:58 alski Can anyone give me a hint on how to find a pair of random numbers that are unique? I know I could evaluate it after finding the random numbers, but if I can do it with fewer lines I'd like to.
01:17 ar_tama joined #openframeworks
01:26 alski joined #openframeworks
01:37 pizthewiz joined #openframeworks
02:03 alski joined #openframeworks
02:20 alski joined #openframeworks
02:31 ar_tama joined #openframeworks
02:58 alski joined #openframeworks
03:37 alski joined #openframeworks
04:06 alski joined #openframeworks
05:44 oneironaut joined #openframeworks
05:51 jedahan joined #openframeworks
06:09 alski joined #openframeworks
06:16 aurel__ joined #openframeworks
06:20 FireArrow joined #openframeworks
06:51 marcocanc joined #openframeworks
06:56 oneirona1t joined #openframeworks
07:44 alski joined #openframeworks
07:45 marcocanc joined #openframeworks
08:00 marcocanc joined #openframeworks
08:08 fuerstP joined #openframeworks
08:12 Pisuke joined #openframeworks
08:21 fuerstP joined #openframeworks
09:20 marcocanc joined #openframeworks
09:26 marcocanc joined #openframeworks
10:38 ar_tama joined #openframeworks
10:58 ofarturo joined #openframeworks
11:05 zeffii joined #openframeworks
11:47 jgest joined #openframeworks
11:48 jgest Hi, can anyone help me, I'm new to open framework and Xcode and I keep running in to a lexical or preprocessor issue, FaceTracker/CLM.h file not found
11:49 jgest I've checked the header search paths and I think all is fine there so I can't figure out where i've gone wrong
14:46 jedahan joined #openframeworks
14:46 jedahan joined #openframeworks
15:21 notjosh joined #openframeworks
15:54 fuerstP joined #openframeworks
16:20 Pando joined #openframeworks
16:21 The_Fly joined #openframeworks
16:21 FergusL joined #openframeworks
16:46 upho joined #openframeworks
17:21 alski joined #openframeworks
17:25 alski joined #openframeworks
17:27 alski joined #openframeworks
17:30 alski joined #openframeworks
17:37 alski joined #openframeworks
17:38 alski joined #openframeworks
17:38 alski joined #openframeworks
17:47 alski joined #openframeworks
17:49 alski joined #openframeworks
18:12 alski Having a hard time with ofPusMatrix, my transformation, and then popping. Right now I have a rotation applied to a series of vertices (creating a spiral), but when I apply that rotation, I lose the elevation of the line (It will be diagonal, from say, z 0 to z 50, but after the rotation, it all is very flush along the x axis)
18:12 alski Any tips?
18:13 alski I'm thinking possibly calculating the angle between the origin point and the higher destination point, and then rotating along the y axis to kind of angle the line back up.
18:35 jgest joined #openframeworks
18:37 jgest Hi, does anyone know how to run FaceSubstitution?
18:37 jgest I'm really new to open frameworks and Xcode
18:37 admsyn joined #openframeworks
18:37 jgest But I'm trying my best to learn
18:38 admsyn hi jgest
18:38 admsyn are you having the "FaceTracker/CLM.h file not found" still?
18:38 jgest No, I have CloningWrapper running
18:39 jgest Not sure how I get FaceSubstitution to work though
18:39 admsyn what issue are you running into?
18:39 jgest There isn't an Xcode.proj file in the folder
18:39 admsyn you mean an .xcodeproj file?
18:39 jgest Yeah, sorry
18:41 admsyn what code/example are you trying to run?
18:42 jgest It's called FaceSubstitution I think and it needs ofxFaceTracker in order to work which I successfully ran earlier today
18:43 jgest I'm just confused as to how I can run it without the .xcodeproj file
18:45 admsyn you can generate your own with the OF project generator, but you'll need to set up the build settings to add ofxFaceTracker to it afterwards
18:45 admsyn depending on where your code came from though, there might be an easier way
18:45 admsyn if it's from kyle's repo on github I think he has scripts set up to do this
18:45 admsyn is it from github? if so what's the link?
18:45 jgest yeah thats where I got it from
18:46 jgest FaceSubstitution isn't an available Haddon in the project generator
18:46 jgest addon*
18:47 admsyn yes the addon is probably ofxFaceTracker, the example you're trying to run is FaceSubstitution?
18:47 jgest Yeah that's correct
18:47 admsyn what's the link to the example you're trying to run
18:47 admsyn as in where on github
18:48 jgest https://github.com/arturoc/FaceSubstitution
18:48 jgest Thank you for helping me
18:48 admsyn no problem
18:49 admsyn ok this ones a bit older, I'm more familiar with kyle's own version of it here: https://github.com/kylemcdonald/ofxFaceTracker
18:50 admsyn it might be a extra-tricky getting it to work since I think it's based off an older OF
18:50 jgest I've run most of those examples without errors
18:51 admsyn that's good
18:51 jgest Kyle's ones that is
18:51 jgest But I got stuck as to what to do after that
18:51 admsyn in arturoc's repo, you can probably just copy one of the other example .xcodeproj into the FaceSubstitution example
18:52 admsyn it looks like it was just deleted by mistake
18:52 jgest Sorry, how do I do that?
18:53 admsyn open (for example) the CPUCloning example folder, copy CPUCloning.xcodeproj
18:53 admsyn and paste it into the FaceSubstitution example
18:54 jgest Then do I just run it from that folder?
18:54 admsyn yepp
18:54 admsyn it should work since the file names / locations are all the same (src/testApp.h etc)
18:55 jgest I have a clang error
18:55 jgest No such file directory?
18:55 admsyn what is it? If it's really long put it in a pastebin instead of pasting it here
18:55 admsyn which file
18:55 admsyn ?
18:55 jgest Clone.cpp
18:57 admsyn do you happen to know where Clone.cpp is supposed to come from?
18:59 jgest I'm trying to fix it now
18:59 jgest Think I need to add some header search paths
19:00 jgest Now it's saying opencv2/opencv.hpp file not found
19:04 admsyn the path setting for that generally looks like $(OF_PATH)/addons/ofxOpenCv/libs/opencv/include/
19:05 admsyn but if you copied the CPUCloning example into the right place it should just work, assuming the CPUCloning example also works
19:06 jgest I literally copied the .xcodproj file from the CloningWrapper folder and pasted it in to the FaceSubstitution folder
19:06 jgest Was that wrong?
19:07 admsyn ah no that's fine, but that's why it's confused about the missing Clone.cpp (since CloningWrapper has a Clone.cpp file in it)
19:08 jgest Ohhh, okay, well I've added a few search paths and I think it's getting there
19:10 jgest Thank you for your help
19:27 jgest joined #openframeworks
19:28 jgest Hi, I'm now getting an Apple Mach-O linker error
19:28 jgest well 107 of them
19:28 admsyn yepp, probably just a library not being linked
19:28 admsyn which is to say it's probably one actual error not 107 :)
19:28 jgest Is it easily fixed?
19:28 admsyn what symbols is it complaining about?
19:28 admsyn yes
19:29 admsyn most likely it's opencv
19:29 jgest it starts with "Undefined symbols for architecture x86_64:"
19:29 zeffii are there any projects like Grasshopper or Dynamo built with OF ?
19:29 admsyn not sure what those are zeffii
19:29 zeffii node based geometry
19:30 admsyn node based as in GUI / max/msp-like?
19:30 upho isn't Eliott Wood's Rulr node-based? albeit I think also domain-specific
19:30 zeffii a 2d node view, where one hooks up lists/vectors/matrices and outputs verts/edges/faces into a 3d viewoirt
19:30 jgest It says a lot of things followed by referenced from
19:30 admsyn yeah Rulr is pretty much that, I don't know if it's fully public yet though
19:30 zeffii and all kinds of nodes to transform / generate geometry
19:31 admsyn zeffii: also I think https://github.com/patriciogonzalezvivo has one for shader stuff, pretty old though IIRC
19:31 zeffii admsyn, yeah max is a good analogue
19:31 admsyn jgest: it sounds like you're building in 64bit actually, which is likely part of the problem
19:31 jgest Okay, how do I change that?
19:32 admsyn in build settings, right towards the top there's an Architectures setting, set it to 32 bit
19:32 jgest It's set to universal (32/64-bit Intel) in the build settings
19:32 zeffii i've been coding such a system in Blender with python, but it's time to move on to C++
19:33 admsyn yeah set it to 32 (or you can use the scheme dropdown in xcode to select 32bit but it's more fiddly)
19:33 zeffii ( https://github.com/nortikin/sverchok as contributer )
19:33 zeffii thanks for the link admsyn !
19:33 jgest I've changed it but am still getting the same error
19:33 jgest just 27 errors now though
19:34 admsyn jgest: sure, probably missing opencv?
19:34 admsyn what's the error / what symbols does it say are missing?
19:34 jgest Undefined symbols for architecture i386:   "ofxFaceTracker::setRescale(float)", referenced from:
19:34 jgest is the first one
19:34 jgest and then each one is different
19:34 zeffii very nice indeed!
19:35 jgest I have downloaded opencv
19:35 admsyn jgest: sounds like the ofxFaceTracker .cpp files aren't being found, actually
19:35 jgest Do I need to alter my header search paths?
19:35 admsyn are the files all showing up red in Xcode? i.e. in the right bar if you expand addons/ofxFaceTracker
19:36 admsyn it's finding the headers fine, but needs to actually compile the .cpp files (is what it sounds like)
19:36 admsyn *in the left bar
19:36 jgest Nope they look fine
19:37 admsyn alright, if you go to the "build phases" tab, under "compile sources" are the ofxFaceTracker .cpp files in there?
19:38 jgest There are only three things in the compile sources
19:38 jgest main.ccp testapp.cpp and clone.cpp
19:38 admsyn alright, so the ofxFaceTracker stuff should go in there, it happens
19:38 admsyn *it usually happens automatically
19:39 admsyn if you click the + at the bottom of the compile sources thing you should get a dialog that lets you add them in
19:39 jgest it wouldn't let me add the folder because it apparently already exists
19:40 admsyn ?
19:41 jgest I've deleted from the left hand side and trying to add them again
19:41 jgest In build phases
19:42 jgest So I added ofxFaceTracker.cpp to the compile sources and I'm getting the same error
19:42 jgest Sorry about this
19:42 admsyn no problem, it's not exactly obvious stuff :)
19:43 admsyn what is the error
19:43 admsyn specifically ofxFaceTracker::setRescale(float) again?
19:44 jgest Yeah
19:44 jgest undefined symbol stuff again
19:45 admsyn sure, those symbols map to functions/classes that are in the .cpp files
19:45 admsyn adding ofxFaceTracker.cpp would have gotten some but you need to add the whole source
19:45 admsyn so all these, basically https://github.com/kylemcdonald/ofxFaceTracker/tree/master/src
19:45 jgest The whole source?
19:46 admsyn the .cpp files specifically
19:46 jgest I already added the other .cpp files
19:46 admsyn what symbols is it saying that it can't find?
19:46 jgest Expression.cpp and ExpressionClassifier.cpp
19:47 jgest Undefined symbols for architecture i386:   "cv::operator+(cv::Mat const&, cv::MatExpr const&)", referenced from:
19:47 admsyn that's different
19:47 jgest That's the first error line
19:47 admsyn that's opencv
19:47 admsyn so those symbols come from opencv.a, which is in ofxOpenCv
19:47 jgest Should I add opencv .cpp files?
19:48 jgest I've located opencv.a in finder
19:48 admsyn cool
19:49 admsyn the best way to add it is to right click in the addons group in Xcode and do an "Add Files...:
19:49 admsyn but drag+drop from finder will also work
19:49 admsyn or should, rather
19:49 jgest It's saying a file with that name already exists
19:50 admsyn alright so you can skip adding it to your project then, look at the build phases tab again
19:50 admsyn in "link binary with libraries" you can do the same deal, hit the + button and add opencv.a
19:51 admsyn or you can drag+drop it from the bar on the left
19:52 jgest I'm now getting 8 errors the first being Undefined symbols for architecture i386:   "ofxCv::drawHighlightString(std::string, int, int, ofColor_<unsigned char>, ofColor_<unsigned char>)", referenced from:
19:52 admsyn that's ofxCv
19:52 admsyn alright, let's back up a sec
19:53 jgest openframeworksdebug.a is in red also in the link binary with libraries
19:53 admsyn just fyi, what you're doing is trying to run an example which sits on top of ofxFaceTracker, which sits on top of ofxCv which sits on top of opencv, which is why this is so complicated :)
19:54 admsyn and also most of the instructions that would help you with this is in the ofxCv readme
19:54 jgest Ha, so I'm not 100% being an idiot
19:54 admsyn yeah :)
19:54 jgest Oh, sorry :(
19:54 admsyn it's just not-obvious where to look if you jump in the deep end like this
19:54 admsyn no problem!
19:55 admsyn it's alright if openframeworksdebug.a is red right now, since it will get built along with your project
19:55 admsyn can you see the openframeworks xcode project in your project though?
19:55 jgest On the left?
19:56 admsyn yeah
19:57 admsyn it should look sort of like this http://i.imgur.com/0K4aGqO.png
19:57 admsyn also where did you clone FaceSubstitution, relative to openframeworks itself?
19:57 jgest There is the Cloning wrapper sdks thing at the top with all of the folders and a GPUCloningDebug.app at the bottom
19:58 jgest I have that yes
19:58 jgest And I downloaded it, changed the filename so it didn't say master at the end and placed it in the open frameworks Haddon folder
19:58 jgest addon*
20:00 admsyn so it's like openFrameworks/addons/FaceSubstitution/FaceSubstitution/src ?
20:00 jgest Yeah
20:00 jgest Should it be like that?
20:01 admsyn the .xcodeproj you copied is expecting relative paths like that, yeah
20:01 admsyn usually it would be in openFrameworks/apps/FaceSubstitution but it doesn't really matter
20:02 admsyn as long as the path from the .xcodeproj to the openframeworks root folder is ../../../
20:02 jgest All the search paths are like that yes
20:02 admsyn anyway, you'll need to add ofxCv to your project now
20:03 admsyn note this https://github.com/kylemcdonald/ofxCv#project-setup
20:03 admsyn also just fyi this exists, but it helps to know what you're doing in the first place https://github.com/admsyn/OFPlugin
20:04 jgest I downloaded that earlier but haven't used it
20:07 jgest okay, so I added the paths that was on the link you just sent, the kylemcdonald one and I'm getting 8 errors now
20:07 jgest Undefined symbols for architecture i386:   "ofxCv::drawHighlightString(std::string, int, int, ofColor_<unsigned char>, ofColor_<unsigned char>)", referenced from:
20:07 jgest So that's another ofxCv problem right?
20:07 admsyn that'd be a similar thing as before, where it's not getting the ofxCv .cpp files
20:07 admsyn in the build phases tab etc
20:08 jgest I've just added all of the .cpp files from ofxCv
20:09 jgest Just one semantic issue now
20:09 jgest resize(gray, graySmall, rescale, rescale);
20:09 jgest Just that line is highlighted in red
20:09 admsyn oh interesting, what's the error there?
20:09 admsyn and is that in ofxCv?
20:10 jgest redefinition of ObjectFinder
20:10 jgest ?
20:10 admsyn sounds like you may have added ofxCv in twice, or something like that
20:11 jgest It's referring to the object finder.cpp
20:11 jgest It's only in build phases once
20:11 admsyn you're really getting a tour of the C++ compilation process here :)
20:12 jgest Haha thank you
20:12 jgest In the error it shows where the previous definition is
20:12 admsyn are there any other errors?
20:13 jgest No just that one
20:13 jgest there are 15 warnings but 1 error
20:13 admsyn yeah don't sweat the warnings at the moment
20:14 admsyn so you're using the OF that comes off github?
20:14 admsyn as of now-ish?
20:14 jgest v0.8-2.4?
20:15 admsyn oh
20:15 jgest osx version
20:15 admsyn how'd you get it? that's not a version number I'm aware of :)
20:15 jgest Off the OF website I think
20:15 admsyn but you said you had to remove "master" from the name of the zip?
20:15 jgest http://openframeworks.cc/download/
20:16 jgest Yeah, it's just what the readme thing said I think
20:16 admsyn alright
20:17 admsyn well anyway what I was going to say is that ofxCv has two branches, one for 0.8.4 (zip from the site) and the "develop" branch for the current github master
20:17 admsyn of OF
20:17 jgest Should I try with the github version?
20:17 admsyn it's probably not worth swapping things around like that at the moment, sounds like it's just a minor setup thing in your project
20:18 admsyn anyway I've got to head out for a bit, good luck with it!
20:18 jgest Thank you so much
20:18 jgest I'm extremely grateful
20:26 alski joined #openframeworks
20:49 jgest joined #openframeworks
20:49 jgest Hi, sorry, I'm still getting a semantic error and google hasn't given me any solutions
20:50 jgest Or I just don't understand what the forum posts are saying because they're specific to different codes
20:50 jgest Could someone help me, I'm sure I've just copied something twice or in the wrong place
21:18 member-20512 joined #openframeworks
21:24 notjosh joined #openframeworks
21:39 marcocanc joined #openframeworks
22:07 alski What are you looking to solve jgest?
22:19 alski also, does anyone know of an alternative to ofVec2f that contains integers?
22:20 alski Or a particularly efficient way of rounding up my floats?
22:48 jedahan joined #openframeworks
22:48 jedahan joined #openframeworks
22:56 admsyn joined #openframeworks
23:21 notjosh joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary