[Kst] Re: OS X plugin directory for non-installed build
Peter Kümmel
syntheticpp at gmx.net
Fri Dec 3 10:57:49 CET 2010
On 03.12.2010 01:37, Ted Kisner wrote:
> Hi Folks,
>
> On Dec 2, 2010, at 8:52 AM, Peter Kümmel wrote:
>> But we can enable pkg again. Could you post a small HOWTO for using macports? That would be great.
>
> Ok, I have successfully built and used kst2 on OS X with all datasources and plugins. I have NOT yet delved into the steps needed to package all the library dependencies into the DMG package. Here is what I did:
>
> 1. Install macports (http://www.macports.org/)
>
> 2. Install dependencies:
>
> $> sudo port install cfitsio gsl netcdf
>
> 3. If you want to install Qt (native aqua version) with macports:
>
> $> sudo port install qt4-mac
>
> 4. Install getdata-0.7.0 (I just put it in /usr/local)
>
> 5. Edit bashrc to make it so that you don't need to install files system-wide:
>
> ==================
> # Make sure pkg-config finds getdata
> export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig
>
> # Set up paths for kst development
> kstsvn=/data/software/svn/kst
> kstpref=${kstsvn}/build/build
> export DYLD_FRAMEWORK_PATH=${DYLD_FRAMEWORK_PATH}:${kstpref}/lib
> alias kstdev=${kstpref}/bin/kst2.app/Contents/MacOS/kst2
> ==================
>
> 6. Go into your svn checkout and apply the 2 attached patches:
>
> $> patch -p0 < ../../kst/tsk_osx_pluginsearch.patch
> $> patch -p0 < ../../kst/tsk_osx_qmake.patch
>
> 7. Build everything. I use a tiny shell script, launched from the top source directory:
>
> ==================
> #!/bin/bash
>
> mkdir -p build
> cd build
> qmake ../kst.pro -spec macx-g++ -config release
> make
> mkdir -p build/bin/kst2.app/Contents/PlugIns
> cp -a build/plugin/* build/bin/kst2.app/Contents/PlugIns/
> ==================
>
> 8. Launch kst:
>
> $> kstdev
>
> and behold, all datasources, plugins, etc are enabled. I have successfully used this on ASCII and Dirfile data so far...
>
> Eventually I need to read more of the Qt deployment documentation and see how to bundle all the dependencies. Or maybe Peter will beat me to it :-)
>
Thanks Ted for the detailed description. I've committed your plugin path patch.
But I'm not sure sure about your other patch because the qmake files must also work
on Linux and Windows, there with mingw and msvc. I will test it.
Peter
More information about the Kst
mailing list