Eclipse and dealii

227 views
Skip to first unread message

Babacar

unread,
Sep 12, 2012, 10:32:12 AM9/12/12
to dea...@googlegroups.com
Settting Up an application based on dealii as an Eclipse project

I would to run some examples of dealii using Eclipse on Mac Os.
I have followed the step explained on:
to run the step-22 under Eclipse;
As indicated I properly make all the indications:

On "Paths and symbols windows" I add:
/Users/ababacar/Applications/deal.II/include
/Users/ababacar/Applications/deal.II/contrib/boost-1.49.0/include

But Running the step-22 I get this error messages:

'Lauching step-22 Build (GNU)' has encountered a problem.

Error starting process.
Exec_tty error:Cannot run program "/Users/ababacar/Applications/deal.II/examples/step-22/step-22.cc": Unknown reason
Exec_tty error:Cannot run program "/Users/ababacar/Applications/deal.II/examples/step-22/step-22.cc": Unknown reason
Exec_tty error:Cannot run program "/Users/ababacar/Applications/deal.II/examples/step-22/step-22.cc": Unknown reason

How Could I fix this problem?


Bärbel Janssen

unread,
Sep 12, 2012, 10:45:12 AM9/12/12
to dea...@googlegroups.com
Hi Babacar,

how did you try to run it? The name of the program should be step-22 and not step-22.cc.

Best,
Bärbel

2012/9/12 Babacar <ababa...@gmail.com>

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
 
 

Babacar

unread,
Sep 12, 2012, 10:57:40 AM9/12/12
to dea...@googlegroups.com
Thanks you for your answer. Always with step-22 i get the following error message:

dyld: Library not loaded: libdeal_II.g.7.2.0.dylib

  Referenced from: /Users/ababacar/Applications/deal.II/examples/step-22/step-22

  Reason: image not found!!

Luca Heltai

unread,
Sep 12, 2012, 11:02:58 AM9/12/12
to dea...@googlegroups.com
Dear Babacar,

you should consider the fact that eclipse does not import automatically your environment. You need to set, for each of your project, the environment variable DYLD_LIBRARY_PATH.

L.

--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 732
--
There are no answers, only cross references

Andrew McBride

unread,
Sep 12, 2012, 11:05:32 AM9/12/12
to dea...@googlegroups.com
Hi

first insure that your .bashrc file includes the line with the correct path to the deal.II lib folder on your machine
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/your_name_comes_here/lib/deal.II/lib
You might need to create the .bashrc file in your home directory

you need to start eclipse from bash shell in a terminal 
$ bash
$ /Applications/eclipse/eclipse &

Andrew


Babacar

unread,
Sep 12, 2012, 11:40:49 AM9/12/12
to dea...@googlegroups.com
Thanks for your answers.
    Mac I already create the .bashrc file. It contains:
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/ababacar/Applications/deal.II/lib
Opening the Eclipe as you advice and setting the environnement as Luca says i get now this error 
messages:

Refinement cycle 0

   Number of active cells: 64

   Number of degrees of freedom: 679 (594+85)

   Assembling...

   Computing preconditioner...



----------------------------------------------------

Exception on processing: 

--------------------------------------------------------

An error occurred in line <1885> of file </Users/ababacar/Applications/deal.II/source/lac/sparse_direct.cc> in function

    void dealii::SparseDirectUMFPACK::factorize(const Matrix&) [with Matrix = dealii::SparseMatrix<double>]

The violated condition was: 

    false

The name and call sequence of the exception was:

    ExcMessage("To call this function you need UMFPACK, but you called ./configure without the necessary --with-umfpack switch.")

Additional Information: 

To call this function you need UMFPACK, but you called ./configure without the necessary --with-umfpack switch.

--------------------------------------------------------


Aborting!

----------------------------------------------------




On Wednesday, September 12, 2012 4:32:12 PM UTC+2, Babacar wrote:

Luca Heltai

unread,
Sep 12, 2012, 11:42:10 AM9/12/12
to dea...@googlegroups.com
The error says it all...

If you want to use UMFPACK, then you should reconfigure deal.II using

./configure --with-umfpack

otherwise this example won't work.

L.

--
Luca Heltai <luca....@gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone: +39 040 3787 449, Office: 732
--
There are no answers, only cross references

Reply all
Reply to author
Forward
0 new messages