Yep, no problem.

So as to help make your CasaCore.jl maximally useful to others, I'd suggest
trying to get the AptGet provider able to install `libcasacore-dev`
automatically; I'm not sure if we have the ability to request AptGet to
install from a different PPA, but if we don't that's something we can deal
with in a issue on the BinDeps.jl tracker.  Once we have that in place,
users should be able to just run Pkg.add("CasaCore"), and BinDeps will take
care of the necessary apt-get magic.

As it stands, BinDeps will attempt to build from source, and because the
source build doesn't set RPATHs properly, the resultant libraries are
unusable because the linker doesn't know to look in the proper directories
for the other libraries.  We should also pass the proper linker flags to
the build scripts to get the from source builds to work properly.
Something along the lines of setting LDFLAGS to
"-Wl,rpath,$(joinpath(depsdir,"usr","lib"))"should do the trick, I believe.
-E

On Fri, Dec 12, 2014 at 4:40 PM, Michael Eastwood <
[email protected]> wrote:
>
> It turns out that after installing CasaCore from the repository, all the
> problems go away. CasaCore.jl is now building successfully and passing its
> tests on Travis (and I'm no longer hammering Travis with a 30-40 minute
> build every time I change a line).
>
> Again, thanks for your help.
>
> -- Michael
>
> On Fri, Dec 12, 2014 at 4:15 PM, Michael Eastwood <
> [email protected]> wrote:
>
>> Wow, I really appreciate all the work you've put into this so far. I
>> hadn't been aware of any Debian packages for CasaCore, but it looks like
>> the SKA has packaged CasaCore (
>> https://launchpad.net/~ska-sa/+archive/ubuntu/main). It's not
>> immediately obvious to me which package is needed from that repository, but
>> I'll look into it.
>>
>> On Fri, Dec 12, 2014 at 4:01 PM, Elliot Saba <[email protected]>
>> wrote:
>>
>>> Link to debugging info:
>>> https://travis-ci.org/staticfloat/CasaCore.jl/builds/43891665
>>> -E
>>>
>>> On Fri, Dec 12, 2014 at 4:00 PM, Elliot Saba <[email protected]>
>>> wrote:
>>>>
>>>> Alright.  This looks like it's because there's no RPATH in the
>>>> libraries that are generated by the BinDeps source build.  Here's my
>>>> debugging info showing how we can dlopen libcasa_table.so just fine, but
>>>> when we try to dlopen libcasacorewrapper we get an error that
>>>> libcasa_table.so.1 can't be found, and ldd can't find it either.  So I
>>>> think we need to tack some linker flags onto the end of that.
>>>>
>>>> However, this build process takes 30 minutes, and isn't very nice to
>>>> shove onto Travis every time we make a Julia change. Is there a debian
>>>> package or something that contains libcasacore?
>>>> -E
>>>>
>>>> On Fri, Dec 12, 2014 at 2:18 PM, Elliot Saba <[email protected]>
>>>> wrote:
>>>>>
>>>>> Just wanted to say that I'm taking a look at this on my own, over here
>>>>> <https://travis-ci.org/staticfloat/CasaCore.jl>.  So far, it looks
>>>>> like libcasacorewrapper is having a hard time finding libcasa_table.so.1,
>>>>> although I can't quite say why yet.
>>>>>
>>>>>> -E
>>>>>
>>>>
>>
>

Reply via email to