Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-04-08

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

All times shown according to UTC.

Time Nick Message
01:28 kritzikratzi joined #openframeworks
01:30 kritzikratzi hey! i’m a bit stuck with self-made a linker problem …
01:30 kritzikratzi i’m toying around with this thing here https://github.com/RuntimeCompiledCPlusPlus/RuntimeCompiledCPlusPlus
01:31 kritzikratzi i have working to the point where i can have a very simple class in it’s own file (e.g. just with a method getValue(){ return 50; } )
01:31 kritzikratzi when i save the file in xcode the running application reloads everything, swaps out the objects and runs with the modified code
01:33 kritzikratzi so far so good, but now i wanna see if i can get opengl draw-calls to work as well (then i could change bits of the rendering at runtime)
01:36 kritzikratzi when i try to recompile my data class i use this command http://pastebin.com/0ur4swHn
01:37 kritzikratzi the resulting shared library is ~11mb (was 180kb before including ofMain.h), so i’m thinking there’s a second OF somewhere in the shared library.
01:46 ar_tama joined #openframeworks
01:47 ar_tama_ joined #openframeworks
02:10 admsyn joined #openframeworks
03:48 billautomata joined #openframeworks
04:26 pizthewiz joined #openframeworks
04:27 admsyn pizthewiz: help I'm drowning in paths
04:28 pizthewiz File paths or bezier paths?
04:28 admsyn the file type, I wonder if you know a magic trick for dealing with this :)
04:28 pizthewiz What exactly are you hitting?
04:28 admsyn I'm trying to make an openFrameworks.framework scheme/target for the openFrameworksLib xcode project
04:29 admsyn the issue is the inner libraries' paths
04:29 admsyn for instance has includes like #include "Poco/Foundation.h"
04:29 admsyn and I don't know how to abstract that away
04:30 admsyn so, my goal at the moment is to make a straight cpp console app (the Xcode template), pull in openFrameworks.framework and go without doing any path wrangling
04:30 pizthewiz Oh man, you are trying vade's wrap OF as a framework suggestion? ;0)
04:30 admsyn yaaaaa
04:30 admsyn it's actually going ok
04:30 pizthewiz So cray.
04:30 pizthewiz Yeah? Impressive if so
04:31 admsyn I rigged up a "run script" phase that walks through the openFrameworks/libs directory and pulls in all the headers in the proper directories
04:31 pizthewiz So I think with stuff like "Poco/Foundation.h" what ever dir the poco root is has to be in the header search path
04:31 admsyn so there's like OF.framework/Headers/GL/glew.h because glew does #include <GL/glew.h>
04:31 pizthewiz When you build you can have it spill out the env and it'll show you what the header search path value is too which can be super helpful
04:32 admsyn yeah, and I'm ALMOST there I think :)
04:32 pizthewiz Hmm, so the compile phase is separate the hmm
04:32 admsyn if I could get the framework-including app to have OF.framework/Headers as an actual header search path it should just go
04:32 pizthewiz That could be tough since then the framework consumers might hit similar path things right?
04:32 admsyn I just don't know how to do that / if it's possible
04:33 admsyn yeah it's definitely unsage
04:33 admsyn *unsafe
04:33 admsyn also unsage
04:33 pizthewiz Hahah
04:33 pizthewiz You should be able to #import <OpenFrameworks/OpenFrameworks.h> no?
04:34 admsyn yeah, and that works fine
04:34 pizthewiz Assuming the umbrella header were in the normal Headers dir
04:34 pizthewiz Hmm, but the sub-imports die?
04:34 pizthewiz Let's think other frameworks include libs
04:35 admsyn at the moment it walks down to ofFileUtils.h (2nd import in ofMain), and ofFileUtils pulls in "Poco/File.h" which is where it dies
04:35 admsyn BUT
04:35 pizthewiz So where are the poco headers in the .framework
04:35 admsyn it gets through ofConstants.h which has things like #include "GL/glew.h"
04:35 pizthewiz Headers/Poco/ ?
04:35 admsyn yes
04:35 pizthewiz That doesn't work but Headers/GL/glew.h does?
04:35 admsyn and Headers/Poco/File.h exists
04:36 admsyn yes it is queer
04:36 pizthewiz Yeah that doesn't make sense
04:36 pizthewiz Both are using #include with quotes, not framework style angle brackets?
04:36 admsyn right
04:36 admsyn it originally stumbled on GL/glew.h
04:37 admsyn and then I did this bash script shotgun blast thing that dumps all headers in Headers/
04:37 admsyn and now it gets to Poco
04:37 admsyn so I don't know maybe Xcode's just losing it
04:37 pizthewiz Hmm, the cases match too?
04:38 admsyn yes
04:38 admsyn oh actually it's a bit odder
04:38 admsyn ok ofFileUtils.h includes Poco/File.h
04:38 admsyn but that actually works
04:38 admsyn Poco/File.h pulls Poco/Foundation.h
04:39 admsyn and that's where it fails
04:39 admsyn but they both exist
04:39 * admsyn what
04:39 pizthewiz Ahh, hmm
04:40 pizthewiz So including it from external headers works but not internal
04:40 pizthewiz Seems like maybe it relative to the including file or something right
04:40 admsyn yeah it feels like it'd have to be something like that, but I don't know why it'd even matter
04:41 admsyn maybe my understanding of #include isn't actually all that great
04:41 admsyn yeah actually if I scoop out the Poco part it works
04:41 admsyn so let me back up a sec
04:42 admsyn ofFileUtils.h <- Poco/File.h = fine
04:42 admsyn Poco/File.h <- Poco/Foundation.h <- bad
04:42 admsyn Poco/File.h <- Foundation.h = fine
04:42 * admsyn what
04:42 pizthewiz Yeah I was going to say
04:42 pizthewiz I'll bet Foundation.h from within a Poco file is fine
04:43 pizthewiz What style includes do the poco files use "Poco/Foundation.h" ?
04:43 admsyn yeah they're quoted
04:43 admsyn and #include not #import of course
04:43 pizthewiz Ah ha, finally I found a system framework that had a subdirectory in Headers
04:43 pizthewiz IOBluetooth.framework
04:43 admsyn for reference https://github.com/openframeworks/openFrameworks/blob/master/libs/poco/include/Poco/File.h#L43
04:45 pizthewiz Hmm, I think #import is smarter than #include so it might not be a good comparison
04:46 pizthewiz In IOBluetooth.framework, internal headers use the full path, not the relative one, like #import <IOBluetooth/objc/IOBluetoothDevice.h>
04:46 admsyn hm
04:47 admsyn I was looking into the clang modules thing, since it looks like that's been clear to use for a few months now
04:47 admsyn and it kinda sorta looks like the sort of thing that's capable of dealing with this
04:47 admsyn tbh I don't really get it though
04:47 pizthewiz Doesn't that require a module map file?
04:47 admsyn the modulemap stuff
04:47 admsyn yeah
04:47 admsyn it's early days, the only real explanation is the spec there's no examples afaict
04:48 pizthewiz Yeah, sadly I feel like Clang supports it and it might not be as well exposed in Xcode
04:48 admsyn I've got it to the point where I can write an arbitrary module map and it'll use it, but I just don't know what to actually do
04:49 admsyn the spec certainly makes it feel like it's set up to do this universe-in-a-box style that'd probably be helpful for what I'm doing
04:49 admsyn but I mean…blah
04:49 admsyn specs
04:51 pizthewiz #include "../Poco/File.h" probably works too
04:52 admsyn yes it does
04:55 pizthewiz Definitely some header search path weirdness
04:57 admsyn if I switch it to #import "Poco/Foundation.h" it still fails, actually
04:59 pizthewiz Yeah, I think you'd have to use the framework include style right
05:06 admsyn I wonder if the way out of this is to package each of the sub-libs as sub-frameworks the way Carbon has HIToolbox etc as sub frameworks
05:06 admsyn that sounds like a lot of work though
05:06 admsyn or maybe just poco
05:07 pizthewiz Yeah that would be a ton of work, surely there is some other framework that does something like this
05:07 pizthewiz Statically link to a lib and includes its headers
05:08 admsyn one would think
05:09 pizthewiz Tk.framework/Headers/tk.h has #include <X11/Xlib.h>
05:10 pizthewiz And Tk.framework/Headers/X11/Xlib.h has #include <X11/Xfuncproto.h>
05:10 admsyn is x11 bundled though, or just assumed to be installed?
05:10 pizthewiz So <> vs ""
05:11 admsyn that doesn't seem to make a difference with the Poco/Foundation.h import
05:12 admsyn changing the actual path does though
05:12 admsyn https://www.dropbox.com/sh/1f63e0ww67kgebk/AAC2k3Z32TNEa79efS2nC2-Ua?dl=0
05:12 vade joined #openframeworks
05:12 admsyn is the framework I made if you're curious
05:13 admsyn oh it's being weird let me zip it
05:14 pizthewiz Yeah I was gonna say, it looks like it ate the symlinks
05:14 admsyn yeah
05:14 * admsyn shakes fist at dropbox
05:14 admsyn https://www.dropbox.com/s/ft4sg5ou2slrt7a/OF.framework.zip?dl=0
05:15 pizthewiz Are you allowed to have lowercase Versions, Resources, Modules?
05:15 admsyn ¯\_(ツ)_/¯ it's whatever the framework template did
05:15 pizthewiz Ahh that seems to be a Dropbox'ism, the second archive was legit
05:15 admsyn cool
05:16 admsyn and so far I'll I've done to test it is just make a basic cpp console app with the Xcode template and try to bring it in as a framework and #import <OF/OpenFrameworks.h> in main.cpp
05:17 admsyn the weird naming is just because Xcode was being weird about having multiple targets with the same name etc
05:17 admsyn oh and set to 32bit of course
05:18 pizthewiz Natch ;0)
05:18 admsyn soon..
05:24 phoenixperry joined #openframeworks
05:37 phoenixperry joined #openframeworks
05:44 mhashmi joined #openframeworks
05:47 tuvok` joined #openframeworks
05:58 mhashmi_ joined #openframeworks
06:02 phoenixperry joined #openframeworks
06:21 mhashmi joined #openframeworks
06:32 mhashmi_ joined #openframeworks
06:33 notjosh joined #openframeworks
06:35 mhashmi joined #openframeworks
06:41 mhashmi_ joined #openframeworks
07:24 MyMind joined #openframeworks
08:16 Pisuke joined #openframeworks
08:21 qDot_ joined #openframeworks
08:29 Sembei joined #openframeworks
08:30 gepatto joined #openframeworks
08:34 notjosh joined #openframeworks
08:43 mhashmi joined #openframeworks
09:11 kritzikratzi joined #openframeworks
09:22 Sembei joined #openframeworks
09:28 biasi joined #openframeworks
09:58 Sembei joined #openframeworks
10:06 Sembei joined #openframeworks
10:12 Sembei joined #openframeworks
10:21 Sembei joined #openframeworks
10:30 Sembei joined #openframeworks
10:50 Sembei joined #openframeworks
11:01 Sembei joined #openframeworks
11:11 Sembei joined #openframeworks
11:20 Sembei joined #openframeworks
11:27 Sembei joined #openframeworks
11:28 vok` joined #openframeworks
12:01 Sembei joined #openframeworks
12:18 notjosh joined #openframeworks
12:19 wjf joined #openframeworks
12:24 Sembei joined #openframeworks
12:34 Sembei joined #openframeworks
12:44 Sembei joined #openframeworks
13:12 Sembei joined #openframeworks
13:14 billautomata joined #openframeworks
13:25 Pisuke joined #openframeworks
13:44 Pisuke joined #openframeworks
13:48 wjf joined #openframeworks
14:05 Sembei joined #openframeworks
14:09 Sembei joined #openframeworks
14:15 Sembei joined #openframeworks
14:23 Sembei joined #openframeworks
14:32 Beliq joined #openframeworks
14:41 Sembei joined #openframeworks
14:42 phoenixperry joined #openframeworks
14:51 Sembei joined #openframeworks
15:14 vade joined #openframeworks
15:17 wjf joined #openframeworks
15:23 w4ffles joined #openframeworks
15:24 reqshark joined #openframeworks
15:32 admsyn joined #openframeworks
15:37 wjf joined #openframeworks
15:38 jedahan joined #openframeworks
15:54 pizthewiz joined #openframeworks
15:57 pizthewiz joined #openframeworks
16:01 marcocanc joined #openframeworks
16:05 phoenixperry joined #openframeworks
16:18 admsyn joined #openframeworks
16:41 reqshark_ joined #openframeworks
16:55 reqshark joined #openframeworks
17:00 allartburns joined #openframeworks
17:14 pizthewiz @admsyn: Have you had any further luck with OF.framework?
17:17 admsyn there's this "modularize" tool that you can get with llvm/clang that whipped up a modulemap file for me
17:17 admsyn which looks like it's doing something
17:17 admsyn I feel like there's a way to twiddle the Poco module to make it work
17:18 admsyn it made this http://pastebin.com/9n1fiM1w
17:19 admsyn which is obviously mega-verbose, it basically makes a module for each folder/header
17:20 vade joined #openframeworks
17:20 pizthewiz Interesting, does that module map sort out the header search path issues?
17:20 admsyn no it basically does exactly the same thing
17:21 admsyn because I think modularize just replicates what you get with #include <OF/OpenFrameworks.h>
17:21 pizthewiz Oh gotcha
17:21 admsyn so maybe there's a way to twiddle it so that the Poco module actually works
17:21 pizthewiz It *is* like a virtual umbrella header
17:21 admsyn I blasted through it by just adding OF.framework/Headers as a search path
17:22 pizthewiz So it is just the sub module includes that blow up right
17:22 pizthewiz Anything in the top-level Headers is fine like the cairo headers
17:22 admsyn yeah seems it
17:22 admsyn manually adding the search path let me use ofVec2f et al in a raw cpp app, but most things get linker errors of course
17:22 admsyn which makes sense, there's nothing actually compiled into the framework at the moment
17:22 pizthewiz Does #include <OpenFrameworks/Poco/File.h> work?
17:23 admsyn didn't try, can't right now :/
17:23 pizthewiz Ahh, that explains why the actual binary was mega small ;0)
17:23 admsyn yap
17:23 admsyn I figured I'd get stonewalled at the header stage anyway so it's progress
17:32 notjosh joined #openframeworks
17:38 pizthewiz joined #openframeworks
17:39 wjf joined #openframeworks
17:41 GuidovanPossum joined #openframeworks
17:42 GuidovanPossum hello, I was hoping someone could help me with linking to a different libGL
17:45 pizthewiz Guessing that means you are on Linux ;0)
17:46 GuidovanPossum I'm on ubuntu and added a new gfx card so now I want to link to /usr/lib/x_86-64-linux-gnu/libGL.so.346.47 instead of the old /usr/lib/libGL.so.1
17:46 GuidovanPossum yes, I think this is what I want to do just not sure where to make the change
17:46 pizthewiz Hmm, one of those isn't just a symlink?
17:47 GuidovanPossum I ran across some older similar posts
17:47 GuidovanPossum I think so I'm just learning and was a bit scared of rerouting without being sure of the results
17:47 pizthewiz I'd think you would need to rebuild OF to link to the proper shared object
17:47 pizthewiz Library search path order tweak maybe?
17:48 pizthewiz The forum might have some details too if others have run into something similar
17:49 GuidovanPossum yeah I was just looking for the spot to make the change, the ones I saw they went about it differently or reinstalled
17:49 GuidovanPossum I did have it working too on the current system but an update then an update to the system broke the compile
17:51 GuidovanPossum I was poking around in ../libs/OpeFrameworksCompiled/project/
17:51 GuidovanPossum but wasn't sure if this was the right spot
17:53 GuidovanPossum I was hoping if someone here had a hint at least I could speed up the process, but this part of openframeworks is new to me I haven't messed with the compiling settings much before, thanks!
17:57 GuidovanPossum or as you mentioned they bot are symlinks
17:57 GuidovanPossum should I just replace the original link with a copy of the new link
17:58 cornus_ammonis joined #openframeworks
18:03 pizthewiz Well, you could move the original to the side then do the symlink to the new lib
18:03 pizthewiz That way you could revert it if you need
18:10 admsyn joined #openframeworks
18:18 reqshark joined #openframeworks
18:22 GuidovanPossum trying, I'll let you know once I find a fix
18:27 vade joined #openframeworks
18:34 jedahan joined #openframeworks
18:38 jedahan joined #openframeworks
19:09 pizthewiz joined #openframeworks
19:17 vade joined #openframeworks
19:30 wjf joined #openframeworks
19:39 vade joined #openframeworks
19:48 pizthewiz joined #openframeworks
20:13 vade joined #openframeworks
20:20 notjosh joined #openframeworks
20:36 pizthewiz joined #openframeworks
20:59 vade joined #openframeworks
21:37 allartburns_ joined #openframeworks
21:42 allartburns joined #openframeworks
22:11 pizthewiz joined #openframeworks
22:17 pizthewiz joined #openframeworks
22:22 pizthewiz joined #openframeworks
22:33 w4ffles joined #openframeworks
23:17 pizthewiz joined #openframeworks
23:24 wjf joined #openframeworks

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