Running deal.II 8.3.0 tutorial programs in Eclipse IDE on OS X 10.10

190 views
Skip to first unread message

Erich Gaertig

unread,
Aug 19, 2015, 3:38:56 PM8/19/15
to deal.II User Group
Hi everyone,

sorry if this question has already been posted, but I checked the more recent entries carefully :-)
So I installed the 8.3.0 version of the deal.II.app on OS X 10.10 and sourced the  /Applications/deal.II.app/Contents/Resources/share/deal.II/dealii.conf - file in my .profile to use deal.ii from my standard terminal. Everything works fine and I can compile and run the tutorial programs without any issues.
However if I set up an Eclipse project using the proper cmake generators and import it into Eclipse Mars as 'Existing Project into Workspace', most of the import work fine (although already in step-1, I get a strange semantic error for the new set_manifold - method and another one for the center.distance() - call) and I can use 'make all' from the Make Target panel. However, if I try to use 'make run' from the Make Target Panel, then I get the following error:

dyld: Library not loaded: libtrilinoscouplings.12.dylib

  Referenced from: /Users/erichgaertig/Desktop/step-1/./step-1

  Reason: image not found

make[3]: *** [CMakeFiles/run] Trace/BPT trap: 5

make[2]: *** [CMakeFiles/run.dir/all] Error 2

make[1]: *** [CMakeFiles/run.dir/rule] Error 2

make: *** [run] Error 2


which is strange, because when I run the very same executable from the command line, it just runs fine. For some reason, the dynamic linker has problems with one of the trillions libraries, although I thought by importing the cmake .project would take care of all the include-paths and library-paths..

Thanks in advance

Erich



Wolfgang Bangerth

unread,
Aug 19, 2015, 3:56:36 PM8/19/15
to dea...@googlegroups.com

> sourced the
> /Applications/deal.II.app/Contents/Resources/share/deal.II/dealii.conf
> - file in my .profile to use deal.ii from my standard terminal.

When you run eclipse, do you make sure that it also sources the .conf
file? E.g., by running eclipse from a command line?

This could explain the missing libtrilinoscouplings error.


> However if I set up an Eclipse project using the proper cmake generators
> and import it into Eclipse Mars as 'Existing Project into Workspace',
> most of the import work fine (although already in step-1, I get a
> strange semantic error for the new set_manifold - method and another one
> for the center.distance() - call)

This is a deficiency in the Eclipse parser -- i.e., eclipse does not
understand your code, which is annoying but not critical because
ultimately what matters is that the compiler understands your code.
There are many places in the deal.II code (as in probably any other
code) that eclipse does not understand.

Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

Erich Gaertig

unread,
Aug 19, 2015, 4:18:02 PM8/19/15
to dea...@googlegroups.com

> Am 19.08.2015 um 21:56 schrieb Wolfgang Bangerth <bang...@tamu.edu>:
>
>
> When you run eclipse, do you make sure that it also sources the .conf file? E.g., by running eclipse from a command line?
>
> This could explain the missing libtrilinoscouplings error.
>


Thanks for the quick response! This one really did the trick, i.e. running eclipse from the command line..

Cheers

Erich



Reply all
Reply to author
Forward
0 new messages