This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Can I use FEniCS as a static/dynamic library in my program?

0 votes

Can I use FEniCS as a static/dynamic library in my program?
Is it possible or not?
If it is possible then could you say some steps how to do it.
I also want to use it like static/dynamic library in Windows operating system (using for example MS Visual Studio).

I have tried to compile it in Visual Studio from source files, but I got some errors.
Nevertheless libamd and libumfpack (UMFPACK) compiled quiet successfully.
But when I compiled dolfin I got errors and I don't know how to solve it.

I am using this guide for compiling Fenics (dolfin) under Windows/MS Visual Studio:
How to use FEniCS in MS Visual Studio

Is anybody stuck with the same problem?
How does it solve?

Thanks in advance!

asked Feb 4, 2014 by Maks FEniCS User (2,430 points)

1 Answer

+1 vote
 
Best answer

DOLFIN is library, libraries can be linked to other programs.

You're unlikely to get much support for MS Windows - none of the developers use it and, according to our recent survey [1], only 6% of FEniCS users use Windows. I'd suggest that you run FEniCS inside a Linux virtual machine.

[1] https://docs.google.com/forms/d/1bcs2Jwv9pZ8J57rLIUjZBj8BD-_tcUiU11NGX9VkWAs/viewanalytics

answered Feb 5, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
selected Feb 6, 2014 by Jan Blechta

Thank you for response!

It sounds very sad, because many people all around the world use Windows OS on their computers, despite their disadvantages.

I tried to compile Fenics (dolfin) under the Visual Studio 2013 (Windows 8.1), but I didn't compile it (for now).
I used both source version of Fenic (dolfin) 1.0 and 1.3.
I want to link dolfin dll files, which I can't derive from Fenics source code, to my project under Visual Studio.

Also I want to ask a question about new version Fenics (dolfin) 1.3.
Why this version of Fenics doesn't currently available under the Windows?
Does anyone try to compile it under the windows with using MinGW, like it was made with previous version of Fenics (1.0 and earlier)?

...