Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-03-13

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

All times shown according to UTC.

Time Nick Message
00:07 admsyn does visual studio actually rebuild the openframeworks lib individually for every project or is that a bug?
00:22 Hurtzy joined #openframeworks
00:55 evhan55 joined #openframeworks
00:55 davidnunez joined #openframeworks
00:58 pizthewiz admsyn: yup I can see it, I'll start armv6l and v7l testing of master and put results there
00:58 pizthewiz Unless there is a 0.8.1 branch?
01:02 admsyn there's an RC zip, nut master would do
01:02 admsyn http://is.gd/46xn1a
01:03 pizthewiz Werd, I'll use the RC zip then
01:36 jedahan joined #openframeworks
01:56 GuidovanPossum joined #openframeworks
01:59 muralia joined #openframeworks
02:16 mikelikespie joined #openframeworks
02:37 boltR joined #openframeworks
02:53 robot joined #openframeworks
03:37 boltR joined #openframeworks
04:15 Joel_re joined #openframeworks
04:54 AceSlowman_ joined #openframeworks
04:55 AceSlowman_ Curious, what application does ofPath have? If I have a vector, and I turn it into an ofPath, can I fill that ofPath with video>
04:57 austinslominski joined #openframeworks
05:07 pizthewiz joined #openframeworks
05:11 muralia joined #openframeworks
05:23 lukaszw joined #openframeworks
06:22 pizthewiz joined #openframeworks
06:28 LCID_Fire joined #openframeworks
07:36 ncls joined #openframeworks
07:51 boltR joined #openframeworks
08:37 kflux joined #openframeworks
08:50 robot joined #openframeworks
09:24 kflux joined #openframeworks
09:26 Joel_re joined #openframeworks
10:11 kflux joined #openframeworks
10:42 air_cr4ft joined #openframeworks
10:43 air_cr4f_ joined #openframeworks
11:11 ofarturo joined #openframeworks
11:17 Joel_re joined #openframeworks
11:45 air_cr4ft joined #openframeworks
12:05 air_cr4f_ joined #openframeworks
13:01 robot joined #openframeworks
13:11 LCID_Fire_ joined #openframeworks
13:21 admsyn joined #openframeworks
13:58 air_cr4ft joined #openframeworks
14:25 ludkiller joined #openframeworks
14:49 paul__ joined #openframeworks
14:49 paul__ hello all
15:04 LCID_Fire_ joined #openframeworks
15:04 admsyn hi paul__
15:06 paul__ am finally learning OFs !
15:11 admsyn nice! :)
15:12 muralia joined #openframeworks
15:19 robot joined #openframeworks
15:31 jedahan joined #openframeworks
15:47 pizthewiz joined #openframeworks
15:51 kritzikratzi joined #openframeworks
15:56 admsyn joined #openframeworks
16:04 pizthewiz joined #openframeworks
16:06 AceSlowman joined #openframeworks
16:07 AceSlowman does anybody know of a tutorial for ofPolyline or ofPath?
16:09 AceSlowman help
16:09 admsyn there's examples, but do you mean like a whole blog post?
16:09 AceSlowman (sorry, new to irc, meant to get help docs)
16:10 AceSlowman I am working with a vector from ofxCvBlob, trying to turn it into something more malleable
16:10 admsyn do you mean like a vector<cv::Point> ?
16:10 AceSlowman Yeah
16:10 muralia left #openframeworks
16:11 admsyn I know ofxCv has conversion functions for that
16:11 admsyn there's a toOf() function that'll turn vecto<cv::Point> into a ofPolylin
16:11 admsyn e
16:12 admsyn but it should be pretty straightforward.. loop through the vector and in your polyline do addVertex() for each point in the ofxCvBlob vector
16:12 AceSlowman really? Ok that's great! Thank you. Is that a separate addon from ofxOpenCV?
16:12 admsyn yeah it wraps a more modern version of opencv
16:12 admsyn https://github.com/kylemcdonald/ofxCv
16:13 admsyn you could just look at the conversion function if you don't need the whole addon
16:14 AceSlowman Perfect. I'm just diving right into openCV so this is hugely helpful.
16:14 admsyn ofxCv is closer to straight OpenCV, if you're planning on learning opencv itself
16:15 admsyn it also wraps the C++ interface, I think ofxOpenCv wraps the older C one
16:16 AceSlowman Yeah, I remember seeing something about fillConvexPoly() in opencv docs, but couldn't figure out how to do that in ofxOpenCv.
16:19 AceSlowm2n joined #openframeworks
16:24 admsyn joined #openframeworks
16:40 kflux joined #openframeworks
16:48 boltR joined #openframeworks
17:02 mikelikespie joined #openframeworks
17:04 fossterer joined #openframeworks
17:05 fossterer Hello, No "ofSystemLoadDialog" for Android?
17:05 fossterer I need to display a File Chooser in OF for Android
17:05 galron joined #openframeworks
17:07 mikelikespie joined #openframeworks
17:11 pizthewiz joined #openframeworks
17:27 Aciid joined #openframeworks
17:41 admsyn joined #openframeworks
17:41 robo joined #openframeworks
17:56 kiritan joined #openframeworks
17:59 mikelikespie joined #openframeworks
18:00 Aciid joined #openframeworks
18:09 * pizthewiz patiently waits for ./buildALLExamples to finish on his Raspberry Pi…
18:11 fossterer Hello, No "ofSystemLoadDialog" for Android?
18:11 fossterer I need to display a File Chooser in OF for Android
18:11 admsyn pizthewiz: ha
18:12 pizthewiz I should really change the memory split starving the GPU and retry this…
18:12 pizthewiz Else I won't even begin running apps for another few hours :0\
18:15 kritzikratzi joined #openframeworks
18:15 * fossterer "waiting for answer"
18:18 * pizthewiz doesn't know the answer either
18:19 pizthewiz fossterer: You could look at the openFrameworks source and see if it had an implementation for TARGET_ANDROID no?
18:26 fossterer pizthewiz: Probably! I don't see 'TARGET_ANDROID' for this method --
18:26 fossterer "ofFileDialogResult ofSystemLoadDialog(string windowTitle, bool bFolderSelection, string defaultPath){"
18:41 GuidovanPossum joined #openframeworks
19:09 mikelikespie joined #openframeworks
19:09 admsyn joined #openframeworks
19:16 AceSlowman when using ofxCv, does anybody have the error "'tr1/memory' file not found"? I'm using of0.8.0...
19:20 pizthewiz You'll find quite a lot of discussion if you search the forum for "tr1/memory" :0)
19:21 pizthewiz (I thought there were some changes made in the master branch to prevent this, but I could have sworn that I recently had to set the deployment SDK to 10.8 to sidestep this)
19:23 AceSlowman master branch of ofxCv? I downloaded it about a week or two ago, maybe it has changed since then?
19:30 vade joined #openframeworks
19:34 pizthewiz master branch of openFrameworks itself sorry
19:34 air_cr4ft left #openframeworks
19:34 admsyn joined #openframeworks
19:38 AceSlowman woo, got the ofxcv examples working, thanks for tip pizthewiz
19:38 pizthewiz You bet
19:38 pizthewiz @admsyn: was the "try1/memory" hangup something that was fixable and on master? I could have sworn I had to manually set the deployment target to 10.8 recently to sidestep it.
19:41 admsyn AceSlowman: nice
19:41 admsyn it's fixable, but it's at the project file level
19:41 admsyn you have to set your standard library to specifically be libstdc++
19:41 admsyn because the "Compiler Default" on 10.9 is libc++
19:41 admsyn i.e. C++11
19:42 admsyn so if you have older project files (where older is > a month or so ago) then you'll have to fix it there
19:42 admsyn which sucks but hey progress
19:42 pizthewiz Ahh right
19:42 admsyn 10.8 "fixes" it in a super roundabout way
19:42 admsyn *10.8 SDK
19:43 AceSlowman So am I good to go if I have the deployment target set to 10.8 on any projects with the error?
19:43 admsyn yeah but it's overkill
19:43 admsyn setting the standard lib is "correct"
19:43 admsyn in practice in doesn't really matter I guess
19:43 pizthewiz Until oF gets C++11/libc++ savvy
19:44 admsyn yeah but if you're rolling with 10.8 SDK and Compiler Default standard lib you're not any better off :P
19:45 pizthewiz Yeah
19:45 * pizthewiz is still building RPi examples
19:47 pizthewiz Hmm, couldn't CoreOF.xcconfig add "CLANG_CXX_LIBRARY = libstdc++"?
19:47 admsyn that'd just build OF itself with libstdc++
19:47 admsyn which I think is already the case
19:47 * admsyn looks for the PR
19:48 pizthewiz Yeah but CoreOF.xcconfig is included in Project.xcconfig
19:48 admsyn ah yeah that might do it
19:48 pizthewiz Or it could be added to Project.xcconfig then, either way, couldn't oF just provide the value for us?
19:48 admsyn I'm actually on VS right now so I can't test :) would be interesting to see though
19:48 pizthewiz Hmm, I'll give it a try and PR it if it works out
19:49 admsyn cool
19:49 admsyn here's my PR where I kind of brain dumped what I found out while poking around https://github.com/openframeworks/openFrameworks/pull/2764
19:49 pizthewiz Seems like Project.xcconfig will be stale since people with existing projects will have already created it, but CoreOF is influenceable still
19:51 pizthewiz If that made sense…
19:52 nicedice joined #openframeworks
19:53 admsyn I think having OF define it for you might be an eventual backwards-compatibilty problem, now that I think about it
19:53 admsyn because if you're deriving the value from OF, and then C++11 happens and OF switches the lib, then your old project doesn't work
19:54 admsyn actually no it doesn't matter because it won't be compatible if OF is built with a different lib anyway
19:54 pizthewiz Really?
19:54 admsyn I think
19:54 pizthewiz We'd update it when oF became C++11/libc++ savvy
19:54 pizthewiz This way the setting is tied to the oF version you are using
19:54 pizthewiz Your project doesn't have to be involved (unless you override it / use C++11/libc++ yourself)
19:54 admsyn yeah I'm kinda just thinking out loud, you're right
19:55 pizthewiz I *think* it'll work if we define it within CoreOF.xcconfig, promoting it to Project.xcconfig could cause the backward-compatibility issue though
19:55 underdoeg joined #openframeworks
19:55 pizthewiz Old project set to libstdc++ building on new oF that uses libc++ …
19:56 admsyn ultimately that's less of an issue than new projects not working right out of the box
19:57 pizthewiz For sure
19:57 pizthewiz If this works out, it could be a nice 0.8.1 item…
19:57 admsyn yepps
19:57 admsyn there's plenty of addons out there too with not-working .xcodeproj files
19:58 admsyn e.g. ofxcv which I'm gonna guess AceSlowman just ran into :)
19:59 pizthewiz Oh sadface…
19:59 pizthewiz Then the problem becomes that we'd want to remove the manual override in examples
19:59 admsyn there's no manual override in said examples though, just "Compiler Default", which is just Xcode default
20:00 pizthewiz Ahh perfect
20:00 pizthewiz Then tweaking it in CoreOF could do the trick
20:00 admsyn yepps
20:04 pizthewiz Is this an OS X only issue or does it occur with iOS as well?
20:05 admsyn iOS too
20:05 pizthewiz It works!
20:05 admsyn deployment target < 7.0 is basically the same as 10.8 SDK
20:05 admsyn as far as this issue is concerned
20:05 admsyn oh sweet!
20:05 pizthewiz Cool, so adding it to the iOS CoreOF.xcconfig would be a win too yeah?
20:06 admsyn yepp
20:06 admsyn if you PR it I can give it a test and a +1 in a few hours
20:07 pizthewiz Will do, just branching and then will test an iOS app quickly too
20:13 pizthewiz Whoa, the iOS project template in scripts/ios/template has 3.1 as a deployment target?
20:13 admsyn :)
20:13 admsyn there's a discussion / issue somewhere about making it 5.0
20:14 admsyn I don't remember if it's in of-dev or github
20:14 admsyn also I thought that was merged but I guess not
20:14 pizthewiz That wasn't even iOS, that was iPhone OS
20:14 pizthewiz 3.1 was released 17 June 2009, ha!
20:14 admsyn you could *probably* get away with doing that upgrade in this PR, if you can find where the discussion was about that
20:15 admsyn it might already by in a PR just waiting for a +1 or something
20:15 pizthewiz Yeah I'll leave that alone, I was just trying to find an iOS project to build that would demonstrate the problem and test the fix
20:15 pizthewiz How do I generate example project files again, I thought there was a script?
20:16 admsyn I think in practice people just bump up the iOS version to whatever they're actually targeting on a per-app basis, since it's like the first thing you see right when you open a new project
20:16 admsyn and then you hit the tr1 issue
20:16 admsyn and then you make it iOS 6 and the issue goes away
20:16 * admsyn thinks that's what people do
20:16 pizthewiz I've tested OS X with the ofxCv project, I'm not entirely sure how to test the iOS one yet
20:16 admsyn just make the deployment target 7.0 and if it works you're good
20:17 admsyn actually I guess it doesn't really matter on iOS, unless there's an addon out there with pre-generated project files
20:17 admsyn because what you'd be fixing is just pre-existing project files, not new ones
20:17 pizthewiz Right
20:18 pizthewiz The benefit to adding this change to CoreOF.xcconfig is that it "fixes" projects old and new as long as they haven't overridden the value in their project
20:18 pizthewiz It allows the C++ lib to be defined by oF, not the project
20:18 pizthewiz I'll just PR OS X and iOS can be handled separately if/when
20:19 admsyn ????
20:20 jedahan_ joined #openframeworks
20:21 pizthewiz Lemme rebuild oF too to make sure it doesn't do anything bad there
20:25 admsyn joined #openframeworks
20:27 mikelikespie joined #openframeworks
21:08 admsyn joined #openframeworks
21:17 admsyn joined #openframeworks
21:23 admsyn joined #openframeworks
21:24 admsyn pizthewiz: just remembered a thign
21:24 pizthewiz What's up?
21:24 admsyn if you "manually" revert the stdlib setting the template xcode project, there's a plutil command you have to run on the template
21:24 admsyn because xcode will auto-convert it to binary
21:25 pizthewiz Weird, it needs the template project and a binary'ized version?
21:25 admsyn the pbpxproj of the template is in XML format
21:25 admsyn which is old-school but much easier on the project generator
21:25 admsyn if you open the template and mess with it in xcode, it'll convert it to binary and then the PG becomes sad
21:26 pizthewiz Gotcha, but just reverting decd38dbd3 wouldn't be enough then?
21:26 admsyn so "plutil -convert xml1" on the template after fixing it
21:26 admsyn yeah
21:26 admsyn hence "manually" revert :)
21:26 pizthewiz Oh gotcha, I was just gonna git revert
21:26 admsyn cool
21:26 pizthewiz Which I think was on the XML not the binary version
21:26 admsyn yeah there's no binary version in the OF repo
21:27 admsyn but if you open the XML version in Xcode, it silently converts the file
21:27 pizthewiz Ok great, we should be good then
21:27 admsyn and then big diff and then sad PG
21:27 admsyn cool ????
21:28 pizthewiz Interesting though, somehow Cinder's projectGenerator (TinderBox) seems to skirt that issue
21:28 pizthewiz Some day we'll team up and make a super generator…
21:28 admsyn yeah the binary version isn't unparseable or anything
21:28 admsyn it's just harder, and the PG as is wants XML
21:28 admsyn yeah that'd be nice
21:28 admsyn :)
21:29 admsyn there's a few libs out there for manipulating xcode files, but they all kind of have creative takes on what that means
21:29 admsyn :)
21:30 admsyn I don't know if there's ones that truly give you full I/O on pbpxproj files
21:30 admsyn in C++ / cross platform
21:31 pizthewiz Seems like the route you went with OFPlugin is pretty convenient
21:31 admsyn indeed
21:31 admsyn "hey xcode, YOU want to be a dick YOU deal with it"
21:31 pizthewiz BBEdit can open xcodeproj files, I wonder if it is just a binary plist that it converts on the fly
21:32 admsyn there's probably hacky ways to like "plutil" it on the way in and "plutil" it on the way out
21:32 admsyn but that's not cross platform
21:32 admsyn afaict
21:32 admsyn zach emailed about some C++ lib that builds a std::map representation of binary plists actually
21:33 * admsyn think think think
21:34 admsyn https://github.com/animetrics/PlistCpp
21:35 admsyn though that leaves the issue of actually building Xcode's project file semantics on top of it
21:35 admsyn not the worst
21:35 admsyn does TinderBox create xcode projects from windows?
21:35 pizthewiz The pbxproj file right?
21:36 admsyn it's been like a year since I used it
21:36 admsyn yeah
21:36 pizthewiz Weird, less seems to be able to peer into my pbxproj files too
21:36 admsyn yeah they're totally readable
21:36 pizthewiz Unless it knows about binary plists it would be weird if it weren't plaintext
21:36 admsyn if fixed many a borked merge by vim-ing the plists
21:36 admsyn .pbxproj*
21:37 pizthewiz It is my favorite way to remove empty overrides in project settings that Xcode won't let you delete :0)
21:37 admsyn yeah and like unfucking absolute paths when your boss doesn't know wtf he's doing grumble grumble
21:39 pizthewiz Yeah, that too
21:39 pizthewiz It is kinda unfortunate how paths are pretty invisible from within Xcode itself, it isn't until you dig into the actual pbxproj file that you can quickly find and fix
21:40 admsyn yeah and drag drop != "add existing files to project...:
21:40 pizthewiz Exactly
21:40 pizthewiz Addons are trickly this way too, I like fixing the paths up to be relative to SRCROOT
21:41 pizthewiz It would be even cooler if you could use something like $(OF_PATH)/addons/
21:42 admsyn you mean in the plugin?
21:43 pizthewiz Referenced in the actual pbxproj
21:43 admsyn ohh yeah
21:43 pizthewiz Then you could move your actual project around
21:44 admsyn how modern
21:46 pizthewiz Some day… :0)
22:41 admsyn joined #openframeworks
22:45 admsyn pizthewiz: there's a ⚡️ in your branch name wat
22:45 pizthewiz Zap!
22:45 admsyn ah
22:46 pizthewiz I wondered if GitHub would allow that, apparently it does!
22:46 admsyn yeah github seems to prune it when rendering but git's cool with it
22:48 admsyn i wonder if it's gonna mess up people's git on windows or something :3
22:48 admsyn probably not
22:51 pizthewiz They shouldn't see it right? Maybe only in the merge commit message?
22:51 pizthewiz At worst it'll show as the two-character code right, which might not be visible?
22:52 admsyn yeah I'm sure it's fine :)
22:53 GuidovanPossum just was looking over the tr1/memory issues I remember the first time having those blues, took me some forum digging to fix after an update, nice work!
22:54 admsyn yeah it's a tricky one :)
22:54 admsyn hard to google
23:02 mikelikespie joined #openframeworks
23:40 pizthewiz joined #openframeworks
23:46 robo joined #openframeworks
23:50 davidnunez joined #openframeworks

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