Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2014-04-08

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

All times shown according to UTC.

Time Nick Message
00:10 OliverUv Anyone worked with different typography plugins who can recommend one? Right now all I'm looking to do is stuff like "maximize font size as long as what I'm printing doesn't exceed this bounding box"
00:15 * pizthewiz hasn't used any type addons
00:44 pizthewiz joined #openframeworks
02:07 pizthewiz joined #openframeworks
05:29 pizthewiz joined #openframeworks
05:43 Joel_re joined #openframeworks
06:24 abergmeier joined #openframeworks
07:12 nylki_ joined #openframeworks
07:17 DrCode joined #openframeworks
07:25 ncls joined #openframeworks
08:15 Joel_re joined #openframeworks
08:39 neue joined #openframeworks
09:02 kikko_fr joined #openframeworks
09:17 kdh-1334_ joined #openframeworks
09:18 kikko_fr joined #openframeworks
09:21 DrCode joined #openframeworks
09:26 neue joined #openframeworks
09:27 kdh-1334_ joined #openframeworks
09:30 nylki_ joined #openframeworks
09:48 ilbot3 joined #openframeworks
09:48 Topic for #openframeworks is now Welcome to http://openframeworks.cc/ | logs at http://irclog.perlgeek.de/openframeworks/ 
09:51 DrCode joined #openframeworks
09:52 Graff joined #openframeworks
09:54 Joel_re joined #openframeworks
09:54 abergmeier joined #openframeworks
10:12 nylki_ joined #openframeworks
10:19 davidnunez joined #openframeworks
10:20 evhan55 joined #openframeworks
10:27 asper joined #openframeworks
10:39 _rm_ joined #openframeworks
10:39 tgfrerer joined #openframeworks
10:39 Hurtzy joined #openframeworks
10:40 kikko_fr joined #openframeworks
10:40 ncls joined #openframeworks
12:05 arturo joined #openframeworks
12:10 nylki_ joined #openframeworks
12:15 jvcleave joined #openframeworks
12:21 davidnunez joined #openframeworks
12:45 Joel_re joined #openframeworks
13:18 kdh-1334_ joined #openframeworks
13:31 kdh-1334_ joined #openframeworks
13:45 arturo joined #openframeworks
14:45 peejay joined #openframeworks
14:45 Pando joined #openframeworks
14:48 oneironaut joined #openframeworks
14:49 neue joined #openframeworks
14:50 qDot_ joined #openframeworks
14:55 siephe joined #openframeworks
14:55 siephe Hello, I'm not sure how the way things work here.
14:55 siephe But I was wondering how to do something and can't seem to find out how.
14:56 siephe I'm new to C++ and oF as well.
14:58 siephe I was wondering how to split a string into multiple strings. For instance I have a string,  string = { cat, dog, duck, chicken, rabbit, sheep } and I would like to split the string into newstring1 = { cat, chicken }, newstring2 = { dog, rabbit } , newstring3 = { duck, sheep }.
14:58 siephe Like so.
15:01 kikko_fr joined #openframeworks
15:16 AceSlowman joined #openframeworks
15:18 admsyn joined #openframeworks
15:19 admsyn hi siephe
15:19 siephe Hello
15:21 falk0n joined #openframeworks
15:21 admsyn the c++ std::string doesn't have too many nice features, but you can see them here http://en.cppreference.com/w/cpp/string/basic_string
15:22 admsyn it's a little tricky to work with though, especially if you're used to javascript / ruby / etc
15:24 siephe Yeah, I know how to achieve what I want with Processing. It just seems very complicated with openFrameworks/C++
15:25 arturo siephe you can use ofSplitString
15:25 admsyn there's ofSpliString
15:25 admsyn oh
15:25 admsyn hi arturo :)
15:25 arturo http://openframeworks.cc/documentation/utils/ofUtils.html#!show_ofSplitString
15:25 admsyn I was just looking through ofUtils like "I know it's in there somewhere.."
15:25 arturo :)
15:26 siephe I did look into the example provided in oF, the sorting example.
15:27 siephe and ofSplitString said: This function is used to delete some parts of a given string (str). We set in delimiter the parts we want to delete.
15:27 siephe So it confused me, because I don't want to delete parts of the string.
15:27 arturo mmh, yeah the documentation is kind of weird
15:28 arturo it does what you were asking for though
15:28 arturo it divides an string and returns a vector<string> with each part
15:28 admsyn it'll only "delete" in the sense that the delimiter won't show up in the strings you get back
15:29 siephe Oh ok. But how would I be able to let it know I want it to split every first word into one string and every second to another?
15:29 admsyn first you'd use ofSplitString to get a vector of seperate strings, then you could create new strings by adding together the parts you want
15:30 admsyn are you familiar with std::vector?
15:30 siephe No I'm afraid not.
15:30 siephe But I will look into it.
15:30 admsyn it's basically a smart array, you can get stuff out of it like myVector[2] just like an array
15:30 siephe I was looking at the sortingExample in oF
15:31 siephe In Processing, I would do it something like this: String[] all = loadStrings("data.txt");     fruits = new String[all.length];     vegetables = new String[all.length];      for(int i=0; i<all.length; i++) {     String[] list = split(all[i], ";");     fruits[i] = list[0];     vegetables[i] = list[1]; }
15:31 admsyn yeah so "all" in this case would be your vector
15:31 admsyn and you can use it basically the same way
15:31 admsyn except instead of all.length you'd do all.size()
15:32 siephe Oh ok.
15:32 siephe I think I understand.
15:32 admsyn so vector<string> all instead of String[] all
15:32 siephe Ok
15:32 siephe I'll give it a try.
15:32 siephe Thank you.
15:32 admsyn np
15:35 siephe I've been over the documentation for oF all day. Maybe it's just me, but it still seems a bit hard for a noob to understand some of the stuff.
15:37 admsyn it's not just you :)
15:42 siephe That's a relief to know. Thanks. =D
15:43 keeran joined #openframeworks
15:53 jvcleave joined #openframeworks
15:54 jvcleave joined #openframeworks
16:00 sajjad joined #openframeworks
16:00 sajjad Hi folks
16:00 sajjad I managed to install OF and examples
16:00 admsyn hi sajjad
16:00 admsyn cool
16:01 sajjad I need some help to configure a project that include 3rd party library based on opencl
16:01 sajjad The current project generator based on code block did not provide much hint to it.
16:02 admsyn yeah you're kind of straying outside the bounds of OF there
16:02 admsyn so the documentation for the library you're trying to include should help
16:03 sajjad the library is basically a header-only library, i already tried it using a simple Makefile
16:03 sajjad The makefile that comes along with OF seems a bit complex for me
16:03 admsyn you're talking about Boost, right?
16:04 sajjad Boost.Compute
16:04 sajjad https://github.com/kylelutz/compute
16:05 admsyn cool, did you see this? http://kylelutz.github.io/compute/
16:05 sajjad All i want is to include and use this library along with OF
16:06 admsyn ok, so you want to know which lines to add to your makefile to use the library?
16:06 admsyn or what specific part are you stuck on?
16:08 sajjad I already have the functional Makefile that works with Boost.Compute, i want to have the Makefile configured so that it works both for Boost.Compute and OF
16:09 sajjad Here goes the functional Makefile with Boost.Compute....
16:09 sajjad CC = g++ CFLAGS = -O2 -g INCLUDE = -I/usr/local/cuda-5.5/include INCLUDE += -I/home/sajjad/Downloads/OpenCL/library/BoostCompute/compute-develop/include LDFLAGS =  -lglut -lGL -lGLU -lGLEW -lOpenCL COBJS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))  EXE= smokeparticles  all: $(COBJS)  $(CC) $(CFLAGS) -o $(EXE) $(COBJS) $(LDFLAGS)  %.o : %.cpp  $(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE)    clean: rm -f $(EXE) *.o *~
16:09 admsyn sajjad: it'll be easier to read that if you put it on pastebin.com
16:09 admsyn but it looks like the makefile isn't too complext
16:09 admsyn *complex
16:09 admsyn so add the parts in your functional makefile to the OF one
16:11 sajjad how to find the linker library names for OF ?
16:11 admsyn you can probably get away with just appending your include paths, and the extra LDFLAGS
16:11 admsyn it'd be LDFLAGS I believe
16:11 admsyn though I don't use makefiles much, personally
16:11 admsyn arturo?
16:12 sajjad i tried the execute the makefile for the examples of OF and all of them ended up with error : cp: cannot create regular file `bin/libs/libfmodexp.so': Permission denied
16:15 sajjad when you run the script compileOF.sh does it create the static libraries ?
16:15 jvcleave the OF library?
16:16 sajjad yes
16:17 jvcleave it might but I usually just do
16:17 jvcleave make -C openFrameworks/libs/openFrameworksCompiled/project
16:19 sajjad is this the command to create the static library ?
16:20 jvcleave yeah
16:21 jvcleave of course your path may vary
16:22 sajjad So the script exectuion command that we enter "sudo compileOF.sh"  create dynamic library for OF
16:25 jvcleave you know why you are using sudo? that may be the cause of your 'Permission denied'
16:27 sajjad I tried now "sudo make" and the makefile executed fine.
16:30 ludkiller joined #openframeworks
16:32 sajjad Guys , Please Check these two Makefiles - one that i pasted here and the other is the from one of the examples. http://pastebin.com/fXAdJFLP      and  http://pastebin.com/wSHsTW5z
16:32 sajjad Let me know what changes i need to make so that boost.compute and OF can work together
16:35 nylki_ joined #openframeworks
16:36 jvcleave you should be able to just use the config.make for your project
16:36 jvcleave as OF core doesn't need Boost
16:37 jvcleave config.make has a bunch of comments walking you through it
16:55 sajjad i did not get it. What about the inclusion for boost.compute and linker library lOpenCL ? Where do i mention it ?
17:08 GuidovanPossum joined #openframeworks
17:08 falk0n left #openframeworks
17:10 ncls joined #openframeworks
17:15 jvcleave PROJECT_LDFLAGS
17:16 sajjad what does it do ?
17:18 jvcleave It's the project's version of LDFLAGS from your make boost.compute makefile
17:19 jvcleave do you have a config.make file for your OF project?
17:22 sajjad You mean any config.make file for all the OF examples ? yes
17:23 sajjad but they are all commented
17:23 sajjad the contents i mean
17:26 jvcleave so use one of those as your starting point, create a project and add your include/library paths into the config make project with the info from your boost.compute one
17:29 sajjad some of the LDFLAGS will be redundant i believe - specially the inclusion of -lGL -lGLU -lGLEW , what do you think ? I they are already taken care of by OF
17:39 jvcleave yeah - you probably remove those safely. it's often a bit of trial and error
17:44 admsyn joined #openframeworks
17:46 Joel_re joined #openframeworks
17:49 pizthewiz joined #openframeworks
18:12 nylki joined #openframeworks
18:13 kikko_fr joined #openframeworks
18:24 nylki_ joined #openframeworks
19:01 uberdan joined #openframeworks
19:05 kikko_fr joined #openframeworks
19:05 GuidovanPossum joined #openframeworks
19:24 uberdan joined #openframeworks
19:25 GuidovanPossum joined #openframeworks
19:46 uberdan joined #openframeworks
20:18 kdh-1334_ joined #openframeworks
20:19 GuidovanPossum joined #openframeworks
20:32 GuidovanPossum_ joined #openframeworks
20:40 kikko_fr joined #openframeworks
20:43 nylki_ joined #openframeworks
20:52 sajjad Hi
20:52 sajjad How to compile a new addons ?
20:53 sajjad I downloaded ofx3dutils and compile OF again and  i ran the script to build all the examples , but it seems the the new addons is not compiled
20:53 sajjad i do not see any new examples inside the example/addons/ directory
20:53 sajjad am i missing anything in the process ?
20:55 sajjad knock knock... anyone here ?
21:01 kdh-1334_ joined #openframeworks
21:14 tomturbo joined #openframeworks
21:20 _mj joined #openframeworks
21:24 nylki_ joined #openframeworks
21:28 _mj joined #openframeworks
21:45 kdh-1334_ joined #openframeworks
22:00 admsyn joined #openframeworks
22:04 admsyn joined #openframeworks
23:05 admsyn joined #openframeworks
23:08 _mj joined #openframeworks
23:45 kdh-1334_ joined #openframeworks

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