Dear Rosetta community,
after reading a lot of helpful posts I managed to compile Rosetta 3.4 on Ubuntu 11.04 in a virtual machine on Windows 7. It runs without any problems and abinitio folding actually works.
I wanted to add a new constraint function (just to test some weird idea, don't ask), unfortunately I neither speak C++, nor understand how the inner organs of Rosetta work.
What I need/want is a constraint function which is identical to the existing BOUNDED function but returns -1 instead of 0 when the constraint is fulfilled. Initially I tried to copy the BoundConstraint.cc/hh/fwd.hh files in the core/scoring/constraints directory, renamed them and changed the code ("delta = 0" was replaced by "delta = -1" in all instances). I then copied the lines where BoundFunction/BoundConstraint is mentioned in the funcfactory.cc file and changed the names to my filenames. When trying to compile it with under the same conditions which previously worked I got the following error "undefined reference to vtable for".
I then tried to change the BoundConstraint files itself, thereby replacing the the BOUND function but after successful compiling it still returns 0 instead of -1.
Anybody who can guide me how to properly add the new function or how to change the existing function?
"Go, learn C++ and study the Rosetta code!" is also an appropriate answer....