Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2014-04-16

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

All times shown according to UTC.

Time Nick Message
00:00 mohawk ok
00:02 mohawk i'm still getting my github shit together ;)
00:35 sivoais hmm, there seems to be a regression somewhere in between Alien::Leptonica <-> leptonica's build process. I need to debug that first
00:35 sivoais :-D
00:35 sivoais I did a small sanity test with another one of my Alien::* modules and that is working fine
00:44 mohawk i just made my first git repo
00:44 mohawk i can feel the POWER surging through my withered veins
00:44 mohawk enough about my withered veins, anyway
00:44 sivoais hahhah
00:46 mohawk and my first git push
00:46 mohawk FUCK YEAH
00:46 mohawk now how do i delete that repository off github?
00:47 sivoais go to the repo page and look for a wrench on the right side
00:47 sivoais click that and there is a delete option
00:48 sivoais where it says "Settings"
00:48 mohawk seen, thanks
00:48 mohawk found it
00:48 mohawk if i wanted to get all purple-prose-y, i could say a tremor of doubt crossed my mind
00:48 mohawk could you do me a small favour?
00:49 mohawk could you git clone git@github.com:mohawk2/glowing-octo-sansa.git and change a file?
00:50 sivoais do you want me to issue a pull request after?
00:50 mohawk and then email me the am-format patch?
00:50 sivoais ah, I can do that too
00:50 mohawk the pull request thing we can do in a sec
00:50 mohawk someone asked me how to deal with am-format and i didn't know
00:50 mohawk so i want to check - is it git-apply?
00:51 sivoais yeah
00:51 mohawk what he actually did was apply my patch as himself, then commit & pushed it
00:51 sivoais but you don't need the hyphen
00:51 mohawk which then caused chaos when i did a git-pull ;)
00:51 mohawk (sure, i was referring to it by its man page name)
00:51 mohawk ok, if you email me your patch, i'll try applying it
00:56 mohawk ...?
00:58 sivoais sorry, had to get the door
00:58 mohawk ha, ok
00:58 sivoais about to send it
01:01 mohawk roger dodger
01:01 mohawk wait
01:01 mohawk i've actually generated my own one
01:01 mohawk is it "git apply (filename)"?
01:02 mohawk apparently it is
01:02 mohawk i was a bit confused because it was silent
01:03 mohawk ok, the patch is applied - should i have done "--index"?
01:05 mohawk no, that doesn't seem to have worked - it shows the commit is by my main user, not the fake email i created
01:05 sivoais I've never used apply except for on my own code
01:05 mohawk ok, googling
01:05 mohawk i was hoping you would be an expert - i'll figure it and we'll both learn
01:10 mohawk this gives the answer: http://ariejan.net/2009/10/26/how-to​-create-and-apply-a-patch-with-git/
01:10 mohawk git apply --stat and --check
01:11 mohawk but git am to accept - --signoff is apparently an extra thing
01:11 sivoais good to know
01:12 mohawk yes, i can now answer the guy's question!
01:15 mohawk i'm going to apply your patch without the --signoff business, to see the difference (ha!)
01:17 mohawk done!
01:17 mohawk it just doesn't have the "Signed off by" business
01:17 mohawk i won't push it, since it's got your real email in it
01:17 mohawk i take it you don't protect your email on github?
01:19 sivoais I don't protect it. Spam filters are pretty good and mutt makes it easy to sort through any unimportant mails
01:19 mohawk fair enough
01:20 mohawk before i zap this thing - can you take me through "pull-requests"?
01:22 sivoais sure, let me fork your repo using the fork button on the top right
01:22 sivoais OK, I have a fork <https://github.com/zmughal/glowing-octo-sansa>
01:23 mohawk yup, seen
01:23 sivoais making a commit and pushing
01:24 mohawk ok
01:24 sivoais then I click the "Pull Requests" link on the right <https://github.com/zmughal​/glowing-octo-sansa/pulls>
01:25 mohawk ok
01:25 sivoais and click the "New pull request" button
01:25 sivoais and then "Create pull request"
01:25 sivoais Fill in the form and submit and you should get an e-mail
01:26 mohawk ok
01:26 mohawk waiting
01:29 mohawk i see the request, but i didn't get an email
01:29 mohawk should i check settings?
01:30 sivoais maybe...that's odd. Maybe they changed the defaults
01:32 mohawk it doesn't show on the notifications page
01:32 mohawk just received an email finally
01:32 mohawk just hotmail being slow, i think
01:34 mohawk just merged it
01:35 mohawk outstanding! thanks a million
01:35 sivoais no problem
01:36 mohawk and now, to the substantive work of this lepto business
01:39 mohawk (i zapped the test repo - how does that show on your fork?)
01:40 sivoais it removes the link saying what it was forked from, but I still have the repo
01:40 mohawk awesome
01:40 mohawk well, keep it if you like ;)
01:41 mohawk you have a terrifyingly large number of repos!
01:43 sivoais many of which are WIP :-) If I can get this Leptonica bindings working quickly, I can slowly start publishing them to CPAN
01:45 mohawk ok
01:45 mohawk i'll clone it and see where we're at
01:45 mohawk did you add an inline test?
01:45 sivoais no, I've been trying to debug Alien::Leptonica's build
01:45 mohawk ok
01:45 mohawk will it get the relevant lib for me, or do i get it separately?
01:46 sivoais it includes the lib locally (usually Alien::Base downloads it, but I wanted to prune the source)
01:46 mohawk ok
01:47 mohawk not seeing a Makefile.PL?
01:48 sivoais yeah, that's because I'm using distzilla
01:49 sivoais there's a branch that has a build
01:49 sivoais no, there isn't sorry
01:49 sivoais let me create one
01:51 mohawk ok
01:56 sivoais here's the branch <https://github.com/zmughal/p5-I​mage-Leptonica/tree/temp-build>
01:56 sivoais it won't compile right now
01:56 mohawk ok
01:56 mohawk let's take a moment and figure out what we want to achieve
01:57 mohawk what end-state is realistic in the next couple of hours, do you think?
02:01 sivoais probably able to create a PIX* structure using the pixRead(char* file) C function, but calling it from Perl as Image::Leptonica::Raw::pixRead($fn_string)
02:01 mohawk ok, so we're aiming to get Inline (or other XS means) to enable that
02:02 mohawk i see temp-build is 9 commits behind master, are those worth bringing over?
02:02 sivoais I'll work in the temp-build branch and use my system installed liblept
02:02 sivoais that way I can ignore the Alien package for now
02:02 mohawk ok
02:02 mohawk my vision is that Alien be part of the picture
02:03 sivoais it will, but my build's broken right now :-P
02:03 mohawk in other words: 1, get the Alien thing working; 2, make the "full" perl module (XS or Inline) on top of that?
02:03 mohawk would a second pair of eyes on the broken bit help?
02:04 mohawk or should i shut up and have a go with temp-build? ;)
02:04 mohawk if so, could you guide me on how to switch to that branch on my already-cloned version?
02:04 mohawk (so many git questions)
02:05 sivoais hehe... I think using temp-build would be fastest way to get something workable right now
02:05 sivoais what does
02:05 sivoais $ git remote -v
02:05 sivoais say?
02:05 sivoais or rather
02:05 mohawk origingit@github.com:zmughal/p5-Alien-Leptonica.git (fetch)
02:05 mohawk origingit@github.com:zmughal/p5-Alien-Leptonica.git (push)
02:06 sivoais $ git branch -v
02:06 mohawk * master 22234ab new version
02:07 sivoais $ git fetch origin; git branch -v # run that to get the new branch
02:08 mohawk done
02:08 mohawk same branch output
02:09 sivoais ah
02:09 sivoais ok, this should do it
02:09 sivoais $ git fetch origin temp-build; git checkout temp-build
02:10 mohawk fatal: Couldn't find remote ref temp-build
02:10 mohawk error: pathspec 'temp-build' did not match any file(s) known to git.
02:10 mohawk speculating a -b in there?
02:11 sivoais sorry, read the wrong thing
02:11 sivoais $ git checkout --track origin/temp-build
02:12 sivoais via <http://stackoverflow.com/question​s/9537392/git-fetch-remote-branch>
02:12 mohawk ha ha
02:12 mohawk git is a maze of twisty commands, all alike, isn't it
02:12 mohawk fatal: git checkout: updating paths is incompatible with switching branches.
02:12 mohawk Did you intend to checkout 'origin/temp-build' which can not be resolved as commit?
02:12 sivoais hehe, it is... I keep a file of notes
02:13 sivoais if none of that works, just reclone the repo
02:13 mohawk you know, i think everyone does
02:13 mohawk that is one intuitive system to use ;)
02:14 mohawk i think -b is it - it said "Switched to a new branch 'origin/temp-build'"
02:14 sivoais if it has files, that should work...
02:15 sivoais git changes some behaviour between versions, so sometimes that can be an issue
02:16 mohawk i think linus t is trying to avenge himself on us
02:16 sivoais hah
02:16 mohawk i wish we could just figure out for what, so we could apologise
02:17 sivoais maybe for using C++
02:17 sivoais I'm installing the libleptonica-dev package so that I can get pkg-config working
02:18 mohawk ha ha
02:18 mohawk ok
02:18 mohawk i assume you know about ExtUtils::PkgConfig?
02:23 sivoais hadn't seen that before
02:24 sivoais weird, it seems the leptonica I had installed in /usr/local had a broken .pc file
02:24 mohawk oh wow ;)
02:24 sivoais that might help me understand why the Alien package was broken
02:24 mohawk should i be having a go at building now?
02:24 mohawk guide me
02:25 sivoais ok, for now, build leptonica from source... I'm rebuilding it myself
02:26 sivoais <http://www.leptonica.com/so​urce/leptonica-1.70.tar.gz>
02:28 mohawk where should i put it?
02:28 mohawk in /usr/local?
02:30 sivoais yeah... I think the .pc file is broken in the actual Leptonica build, so for now I'm thinking just hardcode the directory
02:30 mohawk wow
02:30 sivoais I had no idea it was this broken.
02:30 mohawk that's pretty bad
02:31 mohawk still, getting from start to working is the mission for this module
02:31 sivoais Leptonica 1.69 was fine, but I updated it when I was compiling Tesseract OCR from source
02:32 mohawk that was weird - i did ./configure, make
02:33 mohawk and the first thing it did was (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/user/p5-Alien-Leptonica/t​d/leptonica-1.70/config/missing --run autoheader)
02:33 mohawk aclocal.m4:17: warning: this file was generated for autoconf 2.68.
02:44 mohawk it finished building
02:44 mohawk i did make check
02:44 sivoais 'sh
02:44 sivoais woops
02:44 mohawk and it failed 10/61
02:45 mohawk i think v1.70 should be consigned to the bin - what do you think?
02:45 sivoais not sure I follow
02:45 mohawk it's failing the tests?
02:46 sivoais leptonica is failing its own tests?
02:46 mohawk insert folksy, witty way of saying that's a bad thing
02:46 mohawk it is on my system
02:48 sivoais running the tests here seems fine so far...
02:49 sivoais I would have expected it to be a bit better for something made by a Google employee. It's used as part of their Google Books OCR pipeline.
02:49 mohawk do they all pass on your end?
02:49 sivoais I get 1/61 failed
02:50 mohawk not great, is it
02:50 sivoais odd... they need continuous integration I guess :-P
02:51 sivoais well, it should *mostly* work, though my confidence is slightly diminished
02:51 mohawk i agree
02:51 mohawk i'll install it
02:51 mohawk what can possibly go wrong
02:53 mohawk done
02:53 mohawk dammit
02:54 mohawk i don't see the Makefile.PL
02:54 mohawk i'm not sure i'm on the right branch
02:55 sivoais $ git checkout temp-build # should be there?
02:55 mohawk error: pathspec 'temp-build' did not match any file(s) known to git.
02:55 sivoais try recloning the repo
02:56 mohawk you mean clone a new copy?
02:56 sivoais yeah, another directory entirely
02:57 mohawk i'd like to make git do what i want here
03:00 sivoais $ git dwim # please
03:01 pdurbin heh
03:01 mohawk it must be possible
03:02 mohawk what's the point of branches otherwise?
03:02 mohawk i'm seeing this:
03:02 mohawk git branch -v -a
03:02 mohawk master                      22234ab new version
03:02 mohawk * origin/temp-build           22234ab new version
03:02 mohawk remotes/origin/HEAD         -> origin/master
03:02 mohawk remotes/origin/build/master ef55c87 Build results of 94968f9 (on master)
03:02 mohawk remotes/origin/master       22234ab new version
03:02 sivoais it looks like you are on the right branch
03:03 sivoais $ git pull origin temp-build
03:04 mohawk $ git pull origin temp-build
03:04 mohawk fatal: Couldn't find remote ref temp-build
03:05 sivoais but... git fetch origin
03:05 sivoais should have fixed that
03:05 mohawk yes
03:05 mohawk it should
03:10 sivoais this is what it looks like for me under git 1.9.1 <https://gist.github.com/zm​ughal/35f75acf6dfc9dfbeec9>
03:12 mohawk reading it
03:13 mohawk you're showing a .xs file
03:13 sivoais yeah, that was my previous attempt
03:13 mohawk i don't see one
03:13 sivoais now I'm trying to use Inline in t/inline.t
03:13 mohawk as in, that's in your git cloned one
03:14 mohawk so now i'm confused why my "git fetch" doesn't make that appear
03:14 mohawk or is there something else going on?
03:15 sivoais I have no idea. That's actually very odd. What version of git do you have?
03:17 mohawk 1.7.1
03:17 mohawk i think we may have confused it a bit
03:18 mohawk i have an extra branch you don't, "origin/temp-build"
03:18 mohawk i'm going to delete that and see what happens
03:18 mohawk whereas yours shows remotes/origin/t-b
03:19 mohawk nope, makes no difference
03:19 sivoais that git is 4 years old
03:20 mohawk fucking hell
03:20 mohawk i'm going to get and build latest, then
03:20 mohawk centos really is poor at keeping these things up to date
03:27 mohawk git has a LOT of tests
03:28 mohawk must be at least a thousand
03:33 mohawk still testing
03:33 mohawk mother of god
03:33 sivoais haha
03:33 mohawk "it's zulus, sir"
03:33 mohawk "fahsands of 'em"
03:36 mohawk guess what
03:36 mohawk still testing
03:36 mohawk guess what else
03:37 mohawk 1.9.0 which i'm testing isn't the latest version
03:37 mohawk that's super
03:46 mohawk installed 1.9.2
03:46 mohawk let's see how THIS goes
03:48 mohawk ok, so new version of git - git fetch, nothing
03:48 mohawk i think i'll reclone this bad boy
03:51 sivoais ok, I think I did Inline correctly
03:53 sivoais but it can't find the function I wrapped
03:54 sivoais also: can Inline  be made to read in a .h file and wrap all the headers (besides me slurping it in myself)
03:56 mohawk did you zap the temp-build?
03:56 mohawk i'm not seeing on branch -v -a
03:56 mohawk sivoais,let me see
03:59 sivoais temp-build is still there
04:00 mohawk ok
04:00 mohawk but in my newly-cloned version i get this:
04:00 mohawk $ git branch -v -a
04:00 mohawk * master                      22234ab new version
04:00 mohawk remotes/origin/HEAD         -> origin/master
04:00 mohawk remotes/origin/build/master ef55c87 Build results of 94968f9 (on master)
04:00 mohawk remotes/origin/master       22234ab new version
04:01 sivoais that's really weird...
04:03 mohawk yes
04:04 mohawk if i were to try to clone the temp-build branch, how would i do that?
04:05 sivoais $ git clone --branch temp-build https://github.com/zmughal/p5-Image-Leptonica.git
04:07 mohawk fatal: Remote branch temp-build not found in upstream origin
04:07 mohawk if you do git branch -v -a what do you see?
04:09 sivoais * temp-build                faacd0f wip: pixRead remotes/origin/HEAD       -> origin/master remotes/origin/master     342165b add gitignore remotes/origin/temp-build faacd0f wip: pixRead
04:09 mohawk what git version are you on?
04:09 sivoais 1.9.1
04:10 mohawk i'm on 1.9.2
04:10 sivoais that shouldn't even...make a difference
04:10 mohawk i agree
04:10 sivoais *sigh*
04:10 sivoais I think I know another way...
04:10 sivoais just download the zip <https://github.com/zmughal/p5-Imag​e-Leptonica/archive/temp-build.zip>
04:11 mohawk does it make a difference that the 7-figure hex numbers you're showing there are different from mine?
04:11 sivoais well, I might have made some changes in the interim, but I've uploaded them to GitHub already
04:12 mohawk Warning: prerequisite Alien::Leptonica 0 not found.
04:12 sivoais you can ignore that for now since the only file that matters is t/inline.t
04:12 mohawk ok
04:15 mohawk t/inline.t ... 1/? Undefined subroutine &Lept::pixRead called at t/inline.t line 35.
04:15 mohawk (commented all Alien::* references in Makefile.PL to get it to build)
04:17 sivoais yeah, that's the problem I've run against
04:18 sivoais I'm not sure I'm doing it right
04:18 sivoais when I look at the symbol table for the Lept package, I see pixRead in there
04:18 mohawk how do you look, with the glob?
04:21 sivoais with
04:21 sivoais print join(",", keys %Lept::), "\n";
04:22 mohawk ok
04:22 mohawk i tried just putting it all in main
04:22 mohawk and i'm getting pixRead fails
04:22 sivoais yeah, that's how I had it at first
04:23 mohawk ok
04:23 mohawk well, let's get pixRead working with that before getting fancy with packages? ;)
04:24 sivoais ok, made the change
04:26 mohawk it seems the AUTOWRAP isn't making it work for me
04:26 mohawk the I::C doc says it does it for every symbol *it can bind*
04:26 mohawk but the -llept is right
04:26 mohawk and ldd of the gen'ed *.so looks right too
04:28 sivoais from my reading of the docs, AUTOWRAP only looks for prototypes (on top of functions defined directly), right?
04:28 mohawk that's what i see too
04:28 mohawk let's read the code and see what it actually does
04:29 mohawk this might be a stupid question, but did you try h2xs?
04:29 sivoais I did not
04:31 sivoais should I create another branch to try that?
04:31 mohawk just try it on your hard disk first
04:31 mohawk let's not get too git-crazy if it doesn't help ;)
04:31 sivoais hah, ok
04:32 mohawk let me find the right bit of the cookbook to follow
04:32 mohawk http://search.cpan.org/~sisyphus/Inline​/Inline.pod#Writing_Modules_with_Inline
04:35 mohawk obviously i'd suggest going beyond that snippet and actually give h2xs the relevant header file(s)
04:41 sivoais ok, up to testing it with the add() function
04:42 mohawk see, that's the easy bit
04:43 mohawk i think the right h2xs args are: -PAxn Image::Leptonica /usr/local/include/leptonica/allheaders.h
04:43 mohawk and i need C::Scan, so i'm getting it now
04:43 sivoais I did that and -llept
04:45 mohawk well that seems to have failed
04:45 mohawk did it work for you?
04:47 sivoais h2xs worked, but I don't see any thing refering to the contents of the header file
04:47 mohawk you need -x, not -X
04:48 sivoais ah
04:50 sivoais yeah, failed to parse the file for me
04:51 mohawk ok
04:51 mohawk so AUTOWRAP isn't apparently working
04:52 mohawk i have an idea
04:53 mohawk ok
04:53 mohawk so i commented the perl call to pixRead
04:54 mohawk i made hworld CALL pixRead (which as we know was declared above)
04:54 mohawk and it worked (and moaned about Error in pixReadStream: Unknown format: no pix returned
04:54 mohawk )
04:59 sivoais ok, I see. It works for me (probably because my build supports TIFF)
04:59 mohawk sure
04:59 sivoais OK, I think the problem that needs to be tackled next is that Inline doesn't know what a PIX* is
05:00 mohawk i just gave it /dev/null
05:00 sivoais ah
05:00 mohawk well, that's an XS typemaps thing
05:00 mohawk you're going to have to write a typemap and a bit of translation code for that
05:00 sivoais that's probably why autowrap didn't work...
05:00 mohawk you may be right actually
05:00 mohawk yeah, that makes sense
05:00 sivoais if I did
05:00 sivoais int hworld(const char  *filename) {
05:01 sivoais it gives me back an address
05:01 sivoais but if I do
05:01 sivoais PIX* hworld(const char  *filename) {
05:01 sivoais it can't find the hworld() function
05:01 mohawk that'll be it then
05:01 mohawk clever Inline knows it can't help
05:01 mohawk i smell a doc patch
05:02 sivoais can I just say that PIX* is a SV*... that'll work for my purposes
05:02 mohawk it really, really won't ;)
05:02 mohawk however
05:03 mohawk http://search.cpan.org/~sisyphus/Inline/​C/C-Cookbook.pod#Object_Oriented_Inline
05:03 mohawk i think that will
05:05 mohawk on reading it again, i am sure you can see how to map "Soldier" to PIX
05:05 sivoais I was thinking about doing that in Perl
05:05 mohawk however
05:05 mohawk uh, doing what in perl?
05:06 mohawk (however, i think you'll want an actual typemap, let me look that up)
05:06 mohawk http://perldoc.perl.org/perlxstypemap.html
05:06 sivoais ok, what I actually want is to say
05:07 sivoais PIX* T_PV
05:07 sivoais err
05:07 sivoais PIX* T_PTR
05:10 mohawk it might be T_PTROBJ, i don't know
05:10 mohawk i'm reading the typemap doc
05:11 sivoais ha, seems I already had a typemap in my root directory
05:11 sivoais I haven't touched this code in months
05:15 sivoais do you happen to know how to deal with #define CONSTANT with Inline?
05:16 sivoais looks like I am getting somewhere
05:16 mohawk i'm afraid i don't
05:16 mohawk by the way, looking in /usr/local/lib/perl5/5.18.1/ExtUtils/typemap it looks like T_PTR is a good choice
05:17 mohawk ah, do you mean "how to translate into XS"?
05:17 mohawk because i can answer that one
05:17 sivoais sure, if that means I can access it from Perl
05:17 sivoais there's a constant that specifies the file format (IFF_PNM, IFF_PNG, etc.) that I need for pixWrite()
05:18 mohawk sure
05:18 mohawk to get it in XS -> perl, use   newCONSTSUB(stash, name, newSViv (value)); \
05:18 mohawk having first done:
05:18 mohawk HV *stash = gv_stashpvn ("Gimp::Constant", strlen("Gimp::Constant"), TRUE);
05:19 mohawk it's a damn shame C::Scan doesn't work here
05:22 sivoais would I put that in the the BOOT parameter?
05:22 mohawk yes you would
05:25 sivoais excellent!
05:26 sivoais reading and writing works!
05:26 sivoais I also had to add another entry in my typemap: l_int32   T_U_LONG
05:27 mohawk w00t
05:28 sivoais so it appears that everything should work nicely with Inline
05:28 sivoais and all I need to do is add typemap entries
05:29 mohawk looks that way
05:29 sivoais I'm thinking that I will have a ::Raw API which leaves all the different functions available to use directly
05:29 sivoais but you'd have to do memory management yourself
05:29 mohawk how would that help?
05:29 mohawk that's not the perl way, surely
05:30 sivoais and on top of that build a Perlish API which uses nicer functions like ->new() and DESTROY
05:30 sivoais or ->read()
05:31 mohawk i'm struggling to see the user benefit
05:31 mohawk unless it's just to not make an OO interface for a non-OO lib?
05:32 sivoais yeah, this library is not OO. It is just a large set of functions
05:33 mohawk fair enough
05:33 mohawk well, then you'd just make a flat library
05:34 mohawk up to you
05:34 mohawk how many functions does this bad-boy define?
05:34 sivoais 2400
05:34 sivoais +
05:35 sivoais and many of them are specialised versions of the same operation
05:35 sivoais e.g.
05:35 mohawk 2692 according to nm /usr/local/lib/liblept.so.4|g -i ' t '|wc -l
05:35 mohawk that's a lot
05:35 sivoais dilation: pixDilate() (1 bpp images), pixDilateGray() (8 bpp images)
05:36 mohawk looks like last version of C::Scan is older than my previous version of it - 2001
05:36 sivoais maybe it should be replaced by <https://metacpan.org/pod/distributi​on/MarpaX-Languages-C-AST/bin/cscan>
05:37 sivoais <https://metacpan.org/pod/M​arpaX::Languages::C::Scan>
05:38 mohawk i speculate that h2xs isn't really used to convert headers into XS anymore
05:38 mohawk which is a shame when you think about it
05:39 sivoais OK, I'm going to go to bed now. It's almost 1 in the morning here
05:40 mohawk night ;)
05:40 mohawk shame we didn't make progress on Alien::*
05:40 sivoais Thanks for the help!
05:40 mohawk i also speculate that the lepto .h file is wrong in that it's got variable declarations
05:40 mohawk which is why poor old C::Scan breaks
05:40 mohawk anyway - night ;)
05:41 sivoais Yeah, I'm going to figure out that Alien build in my next go at this. At least...attempt to.
05:41 mohawk grin
05:41 mohawk next time we speak, we'll fix it
06:02 mohawk sivoais, i think you'll like this:
06:02 mohawk $ h2xs -PAxn Image::Leptonica -llept <(echo '#include "allheaders.h"'|cpp -I/usr/local/include/leptonica |grep -v _2_1)
06:05 mohawk although i think you'll like this more, which works (the <() seems to break it) -
06:05 mohawk $ echo '#include "allheaders.h"'|cpp -I/usr/local/include/leptonica |grep -v _2_1 >/tmp/tf.h ; h2xs -PAxn Image::Leptonica /tmp/tf.h -llept
06:06 mohawk it even makes your typemap for you
06:15 mohawk woops, slightly snafu there
06:15 mohawk THIS one actually compiles and works:
06:15 mohawk echo '#include "allheaders.h"'|cpp -I/usr/local/include/leptonica |grep -v _2_1 >allheaders.h ; h2xs -PAxn Image::Leptonica -F -I/usr/local/include/leptonica allheaders.h -llept
06:16 mohawk (it depends on #include-ing the filename you give it, so it has to match the #include-able name)
06:34 mohawk sivoais, i figured why i was having problems with the branch: i was in (and then recloning) Alien-Lep*, not Image-Lep*. oops.
11:00 tigertiger joined #pdl
11:30 mohawk joined #pdl
14:40 sivoais heh, that explains it
14:41 sivoais I saw your e-mail. Looks like a good way forward. I'll have to investigate later when I have time.
14:50 sivoais also, looks like you got a response on that ExtUtils::Depends proposal :-)
17:53 drrho joined #pdl
17:56 jberger_ joined #pdl
18:44 drrho joined #pdl
19:00 mohawk joined #pdl
19:30 jberger__ joined #pdl
19:30 mohawk when one jberger just isn't enough

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