Changes between Version 1 and Version 2 of CompilationGuidelines


Ignore:
Timestamp:
Jul 7, 2010, 4:09:45 PM (14 years ago)
Author:
FrederikHeber
Comment:

typo and compile switches and doxygen

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuidelines

    v1 v2  
    2929and some enable/disable switches you should check out:
    3030 * ''--enable-hydrogen'' - says that hydrogen is treated special in the fragmentation parts
    31  * ''--enable-ecut'' - says that the !TestRunner, comprising all unit tests in one exectuable, shall make use of the Eclipse !CppUnitTest (ECUT). If this is started within eclipse with this plugin instanlled, a shiny interface will tell you what failed and what not.
     31 * ''--enable-ecut'' - says that the !TestRunner, comprising all unit tests in one exectuable, shall make use of the Eclipse !CppUnitTest (ECUT). If this is started within eclipse with this plugin installed, a shiny interface will tell you what failed and what not.
     32
     33A note about ''configure'': If one library is found only under some specific path, you can add CFLAGS, CPPFLAGS, LDFLAGS, ... to the configure call, like this
     34{{{
     35../configure --prefix=`pwd` --enable-hydrogen CFLAGS="-Wall -g3" CXXFLAGS="-Wall -g3"
     36}}}
     37which enables all compiler warnings and full debugging of the code without any optimization. ''configure'' saves these variables, too, such that when it is called to re-configure it will still make use of them from its cache file.
     38
     39There are several flags that change the way molecuilder is compiled and probably make it run faster, more unsafe, ...
     40|| FLAG || what it does ||
     41|| -DLOG_OBSERVER || What the Observers do is logged, the log is printed on exit ||
     42|| -DNO_MEMDEBUG || !MemDebug (memory debugger) is disabled ||
     43|| -DNO_CACHING || Cachable are short-wired, i.e. always recalculate, this slows down the code a lot ||
     44|| -DNDEBUG || include NO_MEMDEBUG, also ASSERTs are not checked, this speeds up the code by a factor of 5 ||
    3245
    3346Now, we are ready to compile and install.
     
    4356
    4457If everything is OK, you have a working version of molecuilder in form of the executables '''bin/molecuilder''' and '''bin/molecuildergui'''.
     58
     59If you have to delete all compiled stuff, enter
     60{{{
     61make clean
     62}}}
     63
     64or
     65
     66{{{
     67make distclean
     68}}}
     69which will also delete all autoconf stuff for ''configure''.
     70
     71Finally, to get the doxygen documentation,
     72{{{
     73make doc
     74}}}
     75which will create files you can view in your browser, starting from '''doc/html/index.html'''. This will give you the functions' signatures along with comments what they do and so on.