Compiling agros2d from source

66 views
Skip to first unread message

Alexander Lindsay

unread,
Nov 20, 2014, 1:23:36 PM11/20/14
to agr...@googlegroups.com
Hi all,

I'm very interested in your software.  I am currently trying to compile agros2d from source, but I am having some problems.

If I clone agros2d and then go into the agros2d directory and type cmake . , the result is the message: “hermes has no CmakeLists.txt”

What's the solution to this problem? I did something probably silly and created a blank CmakeLists.txt file in the initially empty hermes directory within agros2d. When I then run cmake . , the command executes without errors. However, when I then type “make” , after about 58% of complilation, the process crashes with the message:

“Scanning dependencies of target module_xml

[ 58%] Generating ../resources_source/classes/module_xml.cpp, ../resources_source/classes/module_xml.h

/bin/sh: 1: cxx-tree: not found

make[2]: *** [resources_source/classes/module_xml.cpp] Error 127

make[1]: *** [agros2d-library/CMakeFiles/module_xml.dir/all] Error 2

make: *** [all] Error 2 ”

I'm wondering whether I don't have the right dependences for reading/writing xml? What package would fix that?

I already have hermes compiled on my computer. As another test I tried copying my compiled hermes directory into the agros2d directory to replace the blank hermes directory, but then when I type cmake . in the agros2d directory, I get this error:

“CMake Error at hermes/CMakeLists.txt:344 (MESSAGE):

WhenBSON_LIBRARYisdefined,somustbeBSON_INCLUDE_DIR. ”

I am able to install agros2d using the apt-get install command, which leads me to believe that I have all the required dependencies, but I would also like to be able to compile from source. If you guys could give me any directions that would be greatly appreciated.

Thanks!

Alex


Mach František

unread,
Dec 5, 2014, 12:23:09 PM12/5/14
to Diskuzní skupina Agros2D
Dear Alex,
first of all, I would like to thank you for your interests in A2D and I am sorry for our late answere. Hermes library is currently subrepository of Agros2D. So you have to clean you repository and after clone Hermes repository to directory hermes:

git submodule --init
git submodule update

Best regards
Frantisek

--
You received this message because you are subscribed to the Google Groups "Agros2D" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agros2d+u...@googlegroups.com.
To post to this group, send email to agr...@googlegroups.com.
Visit this group at http://groups.google.com/group/agros2d.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages