On Fri, Sep 12, 2014 at 4:18 PM, Yu, Xiaohui <[email protected]> wrote:
> Hi Johannes,
> Thank you for your response.
> Yes, I have.
> I just use these commands to install some libraries, and then compile my 
> project on Ubuntu 14.04.
>        sudo apt-get install build-essential
>        sudo apt-get install fenics  (I checked the dolfin lib version is 
> libdolfin.so.1.3.0, I think fenics should be 1.3.0)

Yes, this will give you FEniCS 1.3.0 on Ubuntu 14.04. If you want the
latest stable version of FEniCS on Ubuntu, that is 1.4.0, you should
enable the FEniCS PPA as described here:

http://fenicsproject.org/download/ubuntu_details.html#ubuntu-ppa

>        sudo apt-get install libboost-dev
>        sudo apt-get install libqt4-dev
>
> It is very easy to pass compiling and run it on Ubuntu.
> I did the same thing on OS X 10.9 with fenics 1.4.0, I  got the link errors 
> below.
> I use the parameter -ldolfin to link my project, is it enough for compiling 
> my project on OS X 10.9.?

No, that is usually not enough. The best would be to create a
CMakeLists.txt file to build your project. See for instance the
poisson demo in the documentation and the corresponding CMakeLists.txt
file:

http://fenicsproject.org/documentation/dolfin/1.4.0/cpp/demo/documented/poisson/cpp/documentation.html
http://fenicsproject.org/documentation/dolfin/1.4.0/cpp/_downloads/CMakeLists6.txt

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to