Hi Claus, I had this problem the first time I installed Dolphin in my
machine. You need to create a directory (generally "build") inside
dolphin's directory. Enter there and call cmake. Something like this:

cd <dolphin-dir>
mkdir build
cd build
cmake ..

I worked for me.

Marcelo.


2014-05-24 13:25 GMT-03:00 Clas Jacobson <[email protected]>:

> I am trying to compile from source on a mac (Macports did not work).
>
> I got pretty far - when finally compiling dolfin though it gets stuck at
> the end:
>
> ——————
>
>
> *Linking CXX shared library libdolfin.dylib*
> [ 96%] Built target dolfin
> *Scanning dependencies of target copy_swig_files*
> Traceback (most recent call last):
>   File
> "/Users/clasajacobson/fenics/dolfin-1.3.0/cmake/scripts/copy-swig-files",
> line 58, in <module>
>     copy_data(sys.argv[-1])
>   File
> "/Users/clasajacobson/fenics/dolfin-1.3.0/cmake/scripts/copy-swig-files",
> line 36, in copy_data
>     raise RuntimeError("destination directory cannot be the same as "\
> RuntimeError: destination directory cannot be the same as the dolfin
> source directory
> make[2]: *** [dolfin/swig/CMakeFiles/copy_swig_files] Error 1
> make[1]: *** [dolfin/swig/CMakeFiles/copy_swig_files.dir/all] Error 2
> make: *** [all] Error 2
>
> ——————————
>
> Can someone help me fix this?
>
> _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support
>
>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to