On Wed, 18 Mar 2009, Tim Jenness wrote:
>> The problem is that GAIA and Skycat now use dynamically loaded libraries,
>> rather than static builds. So we'd either need to create a static build or
>> finally solve the problem of building DLLs under Cygwin. Generally
>> Windows/Cygwin will not build a DLL with missing dependencies, that's
>> something we've been slack about. Not sure how to build an actual
>> dl-loadable library under Cygwin (that's a DLL designed to be loadable at
>> runtime, stage two of this operation). Looking at that has been on the
>> todo list since the break.
>
> do we know what to do in the general case?
From my notes.
Add all the libraries that another library references to the _ADDLIB macro
(`ndf_link` etc.) and use the libtool flags -no-undefined and
-avoid-version. That leaves problems with the libraries that are already
static, BLT, NCAR etc to also resolve.
Having done all that I'm still worried that the dynamic loading might
still be a non-starter, so it wouldn't be wasted work, but still might not
get us there.
>> The trick to getting GAIA working on Cygwin (and to some extent OS X) is
>> to pursuade the various components (Tk & friends, VTK) that would like to
>> have a native build to work as X11 libraries. Usually that's not a well
>> supported mode, so some hacking is involved.
>>
>
> Any chance that ESO could re-implement RTD using native code on OSX?
> Then we could have a native GAIA with a nice aqua interface....
Nice to dream.
It's a lot of work to rip out all the X11 direct calls and replace with Tk
equivalents. That might not be enough for the RTD part where speed was a
major design issue.
Peter.
|