Re: Compiling Clarity for a Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Clarity for a Mac

Cory Quammen
Curtis Rueden <ctrueden@...> writes:

> I gave it a try and got pretty far, but ultimately couldn't get it to build,
> either. Best would be to write to the authors of Clarity for further
> assistance.

Hi, I am the primary Clarity developer. This old thread was recently brought
to my attention. I have some fixes to Curtis's build instructions inlined below.

> For what it's worth, here is what I did:
>
> 1) Compiling Clarity requires the fftw v3 library, which you can install
> using MacPorts:
>   * Install MacPorts from http://www.macports.org/
>   * From Terminal, execute: sudo port install fftw-3

Actually, you should execute the command

sudo port install fftw-3-single

[snip]
> 3) On the CMake configuration screen, press C to configure. It should
> automatically locate your fftw installation as:
>   * FFTW_INCLUDE_DIR   /opt/local/include
>   * FFTW_LIBRARY   /opt/local/lib/libfftw3.dylib

FFTW_LIBRARY should actually be set to

opt/local/lib/libfftw3.dylib

instead of

opt/local/lib/libfftw3f.dylib

> 4) Because Mac OS X builds with gcc, you'll need to follow step 9 of the
> Clarity build directions:
>   * Press T to toggle advanced mode
>   * Navigate down to CMAKE_EXE_LINKER_FLAGS
>   * Press Enter to edit the field
>   * Type: -lpthread -lgomp

You shouldn't have to do this with the latest code on github.

> 6) Before you can build, you have to edit one of the source files to correct
> a problem:
>   * nano ../src/ImagePadSpatialShift.cxx

This should no longer be necessary.

Cheers,
Cory

--
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Clarity for a Mac

ctrueden
Hi Cory,


> Hi, I am the primary Clarity developer. This old thread was recently
> brought
> to my attention. I have some fixes to Curtis's build instructions inlined
> below.


Thanks for following up!


> 1) Compiling Clarity requires the fftw v3 library, which you can install
> using MacPorts:


FWIW, it looks like you can also install FFTW using Homebrew now: "brew
install fftw"

Regards,
Curtis


On Wed, Jul 11, 2012 at 10:48 AM, Cory Quammen <[hidden email]> wrote:

> Curtis Rueden <ctrueden@...> writes:
>
> > I gave it a try and got pretty far, but ultimately couldn't get it to
> build,
> > either. Best would be to write to the authors of Clarity for further
> > assistance.
>
> Hi, I am the primary Clarity developer. This old thread was recently
> brought
> to my attention. I have some fixes to Curtis's build instructions inlined
> below.
>
> > For what it's worth, here is what I did:
> >
> > 1) Compiling Clarity requires the fftw v3 library, which you can install
> > using MacPorts:
> >   * Install MacPorts from http://www.macports.org/
> >   * From Terminal, execute: sudo port install fftw-3
>
> Actually, you should execute the command
>
> sudo port install fftw-3-single
>
> [snip]
> > 3) On the CMake configuration screen, press C to configure. It should
> > automatically locate your fftw installation as:
> >   * FFTW_INCLUDE_DIR   /opt/local/include
> >   * FFTW_LIBRARY   /opt/local/lib/libfftw3.dylib
>
> FFTW_LIBRARY should actually be set to
>
> opt/local/lib/libfftw3.dylib
>
> instead of
>
> opt/local/lib/libfftw3f.dylib
>
> > 4) Because Mac OS X builds with gcc, you'll need to follow step 9 of the
> > Clarity build directions:
> >   * Press T to toggle advanced mode
> >   * Navigate down to CMAKE_EXE_LINKER_FLAGS
> >   * Press Enter to edit the field
> >   * Type: -lpthread -lgomp
>
> You shouldn't have to do this with the latest code on github.
>
> > 6) Before you can build, you have to edit one of the source files to
> correct
> > a problem:
> >   * nano ../src/ImagePadSpatialShift.cxx
>
> This should no longer be necessary.
>
> Cheers,
> Cory
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html