export DOLFIN_DIR=/home/aharel/lingacom/FEniCS/git2/dolfin/build/
-- Current source dir: /home/aharel/lingacom/FEniCS/git2/mshr/3rdpartyNotably, DOLFINTargets.cmake exists in /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin/CMakeFiles/Export/share/dolfin/cmake/DOLFINTargets.cmake
-- Binary dir: /home/aharel/lingacom/FEniCS/git2/mshr/build
-- CGAL build type: Debug
CMake Error at /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin/DOLFINConfig.cmake:13 (include):
include could not find load file:
/usr/local/share/dolfin/cmake/DOLFINTargets.cmake
Call Stack (most recent call first):
CMakeLists.txt:81 (find_package)
CMake Error at CMakeLists.txt:83 (include):
include could not find load file:
/usr/local/share/dolfin/cmake/UseDOLFIN.cmake
10. nov. 2016 5.44 p.m. skrev "Amnon Harel" <harel...@gmail.com>:
>
> I'm trying to install dolfin with mshr on a gentoo system.
> The ebuild looks useless, so I'm building from source.
> With a little help I managed to checkout and build the 2016.1.0 versions of fiat, ufl, dijitso, instant, ffc, and dolfin.
>
> BTW: preparing for the mshr build, I also installed VTK and openmpi, and ensured that gmplib and mpfr are installed.
>
> Now trying to build mshr in its own "build" subdirectory, with "cmake .."
> First attempt failed to find DOLFIN, but this is resolved with (in my bash shell):
>>
>> export DOLFIN_DIR=/home/aharel/lingacom/FEniCS/git2/dolfin/build/
Is this the directory where dolfin is installer?
(It is good practice to not buildbot and install in the same directory).
>
>
> Then it find the dolfin cmake and fails with:
>>
>> -- Current source dir: /home/aharel/lingacom/FEniCS/git2/mshr/3rdparty
>> -- Binary dir: /home/aharel/lingacom/FEniCS/git2/mshr/build
>> -- CGAL build type: Debug
>> CMake Error at /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin/DOLFINConfig.cmake:13 (include):
>> include could not find load file:
>>
>> /usr/local/share/dolfin/cmake/DOLFINTargets.cmake
>> Call Stack (most recent call first):
>> CMakeLists.txt:81 (find_package)
>>
>>
>> CMake Error at CMakeLists.txt:83 (include):
>> include could not find load file:
>>
>> /usr/local/share/dolfin/cmake/UseDOLFIN.cmake
>
> Notably, DOLFINTargets.cmake exists in /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin/CMakeFiles/Export/share/dolfin/cmake/DOLFINTargets.cmake
>
> But dolfin's cmake, being called from CGAL's cmake from mshr's cmake, looks for it in the non-existing directory /usr/local/share/dolfin/cmake
>
> Any help will be appreciated :-)
When you have installed dolfin, try to do
source [path/to/dolfin-installation]/share/dolfin/dolfin.conf
to make sure cmake can find dolfin.
Let us know if this doesn't work.
Best regards
Benjamin Kehlet
>
> --
> You received this message because you are subscribed to the Google Groups "fenics-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
> To post to this group, send email to fenics-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/8f2ed992-1cb8-4331-b040-9e61075cd37f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
> To post to this group, send email to fenics-support@googlegroups.com.
11. nov. 2016 10.59 a.m. skrev "Amnon Harel" <harel...@gmail.com>:
>
> Hi Benjamin,
>
> Thanks for your help.
>
> I already installed dolfin, as described in my original post.
>
> I tried your explicit recommendation, but I found a dolfin.conf only
> in [path/to/dolfin-installation]/dolfin.conf, not in [path/to/dolfin-installation]/share/dolfin/dolfin.conf. So from the mshr build directory /home/aharel/lingacom/FEniCS/git2/mshr/build
> I did "source /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin.conf"
> Then "cmake .." which failed in the exact same manner as before.
>
> I did not understand your first comment. I see there exists a tool called "buildbot", but you used it as a verb. Are you saying it's good practice to not (build bot && install in the same directory); or rather are you saying that it's good practice to (not build bot) && (install in the same directory)?
>
> Anyway, I tried to cmake mshr from the dolfin build directory, but that just complains
> "CMake Error: The source "/home/aharel/lingacom/FEniCS/git2/mshr/CMakeLists.txt" does not match the source "/home/aharel/lingacom/FEniCS/git2/dolfin/CMa
> keLists.txt" used to generate cache. Re-run cmake with a different source directory.
> "
Hi
No, buildbot has nothing to do with this.
What was the exact commands you used when installing dolfin?
(BTW: Is it an option for you to use docker containers? That is usually much easier than building from source manually. A lot of people, including core developers, prefer this to quickly get a FEniCS environment up and running).
Regards
Benjamin
>> > To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
>> > To post to this group, send email to fenics-...@googlegroups.com.
11. nov. 2016 10.59 a.m. skrev "Amnon Harel" <harel...@gmail.com>:
>
> Hi Benjamin,
>
> Thanks for your help.
>
> I already installed dolfin, as described in my original post.
>
> I tried your explicit recommendation, but I found a dolfin.conf only
> in [path/to/dolfin-installation]/dolfin.conf, not in [path/to/dolfin-installation]/share/dolfin/dolfin.conf. So from the mshr build directory /home/aharel/lingacom/FEniCS/git2/mshr/build
> I did "source /home/aharel/lingacom/FEniCS/git2/dolfin/build/dolfin.conf"
> Then "cmake .." which failed in the exact same manner as before.
>
> I did not understand your first comment. I see there exists a tool called "buildbot", but you used it as a verb. Are you saying it's good practice to not (build bot && install in the same directory); or rather are you saying that it's good practice to (not build bot) && (install in the same directory)?
>
> Anyway, I tried to cmake mshr from the dolfin build directory, but that just complains
> "CMake Error: The source "/home/aharel/lingacom/FEniCS/git2/mshr/CMakeLists.txt" does not match the source "/home/aharel/lingacom/FEniCS/git2/dolfin/CMa
> keLists.txt" used to generate cache. Re-run cmake with a different source directory.
> "
Hi
No, buildbot has nothing to do with this.
What was the exact commands you used when installing dolfin?
(BTW: Is it an option for you to use docker containers? That is usually much easier than building from source manually. A lot of people, including core developers, prefer this to quickly get a FEniCS environment up and running).Regards
Benjamin
>
>> > To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
>> > To post to this group, send email to fenics-...@googlegroups.com.
>> > To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/8f2ed992-1cb8-4331-b040-9e61075cd37f%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
>
--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To post to this group, send email to fenics-...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/CAKs4ypWvJ8dS8zBzC1s%2B%2B%3DYfXGr056pAWnDZJkcqc%2BP8e4FAoQ%40mail.gmail.com.
>> > To unsubscribe from this group and stop receiving emails from it, send an email to fenics-support+unsubscribe@googlegroups.com.
>> > To post to this group, send email to fenics-support@googlegroups.com.
This should look something like
cmake [-DCMAKE_INSTALL_PREFIX=installation/path] ..
make
make install
Then you will find dolfin.conf in dolfin-installation-path/share/dolfin which you can source and continue with mshr.
Best regards
Benjamin
>> >> > To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
>> >> > To post to this group, send email to fenics-...@googlegroups.com.
>> >> > send an email to fenics-support+unsubscribe@googlegroups.com.
>> >> > To post to this group, send email to fenics-support@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> > https://groups.google.com/d/msgid/fenics-support/8f2ed992-1cb8-4331-b040-9e61075cd37f%40googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "fenics-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to fenics-support+unsubscribe@googlegroups.com.
> To post to this group, send email to fenics-support@googlegroups.com.
> To view this discussion on the web visit
>> >> > To post to this group, send email to fenics-...@googlegroups.com.
>> >> > To view this discussion on the web visit
>> >> > https://groups.google.com/d/msgid/fenics-support/8f2ed992-1cb8-4331-b040-9e61075cd37f%40googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "fenics-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to fenics-support+unsubscribe@googlegroups.com.
> To post to this group, send email to fenics-...@googlegroups.com.
> To view this discussion on the web visit