Thanks for sll your help,

Adding explicitly the path to the libraries as suggested by Andreas I was
able to compile tutorial 1 externally.

This the build command I used

g++ -std=c++11 -o mytest tutorial1.cpp
/home/paolo/OPM/opm-core/build/lib/libopmcore.a
/home/paolo/OPM/opm-parser/build/lib/x86_64-linux-gnu/libParser.a
/home/paolo/OPM/ert/ert/devel/lib/x86_64-linux-gnu/libecl.so

However when running mytest I got the following error:

 ./mytest: error while loading shared libraries: libecl.so.1.0: cannot open
shared object file: No such file or directory

Still some issue with linking...

I think I will work within the single OPM-module to start with, following
Alf suggestions:

///////////////////
-put your source file in the examples folder of the appropriate opm-module

-add #include statements for what you want to use, look at the other files
in /examples if uncertain

-add your file to the CMakeLists_files.cmake for the opm-module as
explained at the top of the file

-compile the opm-module
///////////////////

It seems straightforward and the most natural to start with.

I have not tested yet the Cmake you added for the tutorial.

Thanks again for your help

Paolo




On Mon, Jun 23, 2014 at 10:52 AM, Arne Morten Kvarving <
[email protected]> wrote:

> hi paolo,
>
> if you refetch opm-core we have now added a cmake build system for the
> tutorials.
> it's independent of the main build system, so you have to do the make
> install cycle on opm-core with dependencies.
>
> you can then just cmake up opm-core/tutorials, build and play.
>
> cheers
>
> arnem
>
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to