[Dune-devel] [GSoc] Let the coding begin

Oliver Sander sander at igpm.rwth-aachen.de
Tue Jul 23 23:52:11 CEST 2013

Hi Xiaoxue,
please post all questions to dune-devel.

You need to rebuild libamiramesh on your machine.  Please type

make clean

in libamiramesh/src


Am 23.07.2013 19:49, schrieb Xiaoxue Gong:
> Hi, Oliver! I have some problem with linking the amiramesh libary.
>   When I configure the dune-project with "--with-amiramesh =\path\to\amiramesh\library"
> I fail to  could not library to the code.
> The configure log is like this:
> configure:34395: checking for amiramesh/AmiraMesh.h
> configure:34395: g++ -std=c++0x -c -g -O2 -Wall  -I/home/xiaoxue/GCoS/libamiramesh/include conftest.cpp >&5
> configure:34395: $? = 0
> configure:34395: result: yes
> configure:34440: g++ -std=c++0x -o conftest -g -O2 -Wall  -I/home/xiaoxue/GCoS/libamiramesh/include -DHX_HAS_STDIOSTREAM  conftest.cpp -L/home/xiaoxue/GCoS/libamiramesh/lib -lamiramesh -lm  >
> In file included from /home/xiaoxue/GCoS/libamiramesh/include/amiramesh/HxParameter.h:6:0,
>                   from /home/xiaoxue/GCoS/libamiramesh/include/amiramesh/AmiraMesh.h:8,
>                   from conftest.cpp:67:
> /home/xiaoxue/GCoS/libamiramesh/include/amiramesh/McString.h:11:0: warning: "HX_HAS_STDIOSTREAM" redefined [enabled by default]
> <command-line>:0:0: note: this is the location of the previous definition
> conftest.cpp: In function 'int main()':
> conftest.cpp:87:12: warning: unused variable 'am' [-Wunused-variable]
> /usr/bin/ld: skipping incompatible /home/xiaoxue/GCoS/libamiramesh/lib/libamiramesh.a when searching for -lamiramesh
> /usr/bin/ld: cannot find -lamiramesh
> collect2: error: ld returned 1 exit status
> configure:34440: $? = 1
> There is no problem with linking to psurface. Psurface have the libpsurface.la <http://libpsurface.la> file generated by libtool while the amiramesh have some kind of .a file which might be be linked
> successfully.
> I tried to use libtool to generate the same kind of .la file for amiramesh. But I have not succeed yet.
> Do you have any suggestion to this problem?
> Best,
> Xiaoxue

More information about the Dune-devel mailing list