Thanks, Joshua. I could get rid of that error but another popped up. Here
is the error message
In file included from
/home/anirbanm/programs/votca/csg/include/votca/csg/beadmotif.h:21:0,
from
/home/anirbanm/programs/votca/csg/src/libcsg/beadmotif.cc:18:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadstructure.h: In
constructor
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadstructure.h:54:7:
error: conversion from ‘const char [1]’ to non-scalar type ‘std::string
{aka std::basic_string<char>}’ requested
class BeadStructure {
^
In file included from
/home/anirbanm/programs/votca/csg/src/libcsg/beadmotif.cc:18:0:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadmotif.h: In
constructor ‘votca::csg::BeadMotif::BeadMotif()’:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadmotif.h:122:14:
note: synthesized method
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first
required here
BeadMotif(){};
^
[ 27%] Building CXX object
csg/src/libcsg/CMakeFiles/votca_csg.dir/beadstructurealgorithms.cc.o
[ 27%] Building CXX object
csg/src/libcsg/CMakeFiles/votca_csg.dir/boundarycondition.cc.o
In file included from
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h:21:0,
from
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadmotifalgorithms.h:21,
from
/home/anirbanm/programs/votca/csg/src/libcsg/beadmotifalgorithms.cc:17:
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadstructure.h:
In constructor
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadstructure.h:54:7:
error: conversion from ‘const char [1]’ to non-scalar type ‘std::string
{aka std::basic_string<char>}’ requested
class BeadStructure {
^
In file included from
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadmotifalgorithms.h:21:0,
from
/home/anirbanm/programs/votca/csg/src/libcsg/beadmotifalgorithms.cc:17:
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h:
In constructor ‘votca::csg::BeadMotif::BeadMotif()’:
/home/anirbanm/programs/votca/csg/src/libcsg/../../include/votca/csg/beadmotif.h:122:14:
note: synthesized method
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first
required here
BeadMotif(){};
^
[ 28%] Building CXX object
csg/src/libcsg/CMakeFiles/votca_csg.dir/cgengine.cc.o
[ 28%] Building CXX object
csg/src/libcsg/CMakeFiles/votca_csg.dir/cgmoleculedef.cc.o
make[2]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/beadmotif.cc.o] Error
1
make[2]: *** Waiting for unfinished jobs....
[ 29%] Linking CXX executable votca_property
[ 29%] Built target votca_property
Scanning dependencies of target votca_property_manpage
[ 29%] Building votca_property manpage
[ 29%] Built target votca_property_manpage
make[2]: ***
[csg/src/libcsg/CMakeFiles/votca_csg.dir/beadmotifalgorithms.cc.o] Error 1
[ 29%] Linking CXX shared library libvotca_moo.so
[ 29%] Built target votca_moo
In file included from
/home/anirbanm/programs/votca/csg/include/votca/csg/beadstructurealgorithms.h:21:0,
from
/home/anirbanm/programs/votca/csg/src/libcsg/beadstructurealgorithms.cc:18:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadstructure.h: In
constructor
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’:
/home/anirbanm/programs/votca/csg/include/votca/csg/beadstructure.h:54:7:
error: conversion from ‘const char [1]’ to non-scalar type ‘std::string
{aka std::basic_string<char>}’ requested
class BeadStructure {
^
/home/anirbanm/programs/votca/csg/src/libcsg/beadstructurealgorithms.cc: In
function ‘std::vector<votca::csg::BeadStructure<votca::csg::BaseBead> >
votca::csg::breakIntoStructures(votca::csg::BeadStructure<votca::csg::BaseBead>&)’:
/home/anirbanm/programs/votca/csg/src/libcsg/beadstructurealgorithms.cc:39:31:
note: synthesized method
‘votca::csg::BeadStructure<votca::csg::BaseBead>::BeadStructure()’ first
required here
BeadStructure<BaseBead> beadstructure_temp;
^
make[2]: ***
[csg/src/libcsg/CMakeFiles/votca_csg.dir/beadstructurealgorithms.cc.o]
Error 1
[ 29%] Linking CXX shared library libvotca_kmc.so
[ 29%] Built target votca_kmc
make[1]: *** [csg/src/libcsg/CMakeFiles/votca_csg.dir/all] Error 2
make: *** [all] Error 2
On Fri, Mar 29, 2019 at 12:38 PM Joshua Brown <[email protected]>
wrote:
> Ok, the patch has been merged with the master branch. Assuming you are in
> the git repo votca. Remove the build folder if you already have one.
>
> rm -rf build
> cd tools
> git checkout master
> git pull origin master
> cd ../
> mkdir build
> cd build
>
> From here you should be able to follow the install directions listed in
> the votca repo readme starting with the cmake command.
> https://github.com/votca/votca
>
> On Thursday, March 28, 2019 at 2:17:58 PM UTC-6, Anirban Mondal wrote:
>>
>> Dear Joshua,
>>
>> Thanks for your message. I was trying to patch it, but could not do it.
>> It would be nice if you help me with doing this.
>>
>> Thank you.
>> Anirban
>>
>> On Thu, Mar 28, 2019 at 1:40 PM Joshua Brown <[email protected]> wrote:
>>
>>> Hi Anirban,
>>>
>>> Did you have any luck with the patch? If you are unsure of how to apply
>>> it, we can also walk you through that as well.
>>>
>>> On Tuesday, March 26, 2019 at 7:34:11 PM UTC-6, Anirban Mondal wrote:
>>>>
>>>> Hi Christoph,
>>>>
>>>> Thanks for the reply. I could able to get rid of the warning. But, the
>>>> error message still exists.
>>>>
>>>> In file included from /usr/include/c++/4.8/algorithm:62:0,
>>>> from
>>>> /home/anirbanm/programs/votca/tools/src/libtools/graph.cc:20:
>>>> /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of
>>>> ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator,
>>>> _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator =
>>>> __gnu_cxx::__normal_iterator<std::pair<int, votca::tools::GraphNode>*,
>>>> std::vector<std::pair<int, votca::tools::GraphNode> > >; _Tp =
>>>> std::pair<int, votca::tools::GraphNode>; _Compare = bool (*)(std::pair<int,
>>>> votca::tools::GraphNode>&, std::pair<int, votca::tools::GraphNode>&)]’:
>>>> /usr/include/c++/4.8/bits/stl_algo.h:2296:78: required from
>>>> ‘_RandomAccessIterator
>>>> std::__unguarded_partition_pivot(_RandomAccessIterator,
>>>> _RandomAccessIterator, _Compare) [with _RandomAccessIterator =
>>>> __gnu_cxx::__normal_iterator<std::pair<int, votca::tools::GraphNode>*,
>>>> std::vector<std::pair<int, votca::tools::GraphNode> > >; _Compare = bool
>>>> (*)(std::pair<int, votca::tools::GraphNode>&, std::pair<int,
>>>> votca::tools::GraphNode>&)]’
>>>> /usr/include/c++/4.8/bits/stl_algo.h:2337:62: required from ‘void
>>>> std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size,
>>>> _Compare) [with _RandomAccessIterator =
>>>> __gnu_cxx::__normal_iterator<std::pair<int, votca::tools::GraphNode>*,
>>>> std::vector<std::pair<int, votca::tools::GraphNode> > >; _Size = long int;
>>>> _Compare = bool (*)(std::pair<int, votca::tools::GraphNode>&,
>>>> std::pair<int, votca::tools::GraphNode>&)]’
>>>> /usr/include/c++/4.8/bits/stl_algo.h:5499:44: required from ‘void
>>>> std::sort(_RAIter, _RAIter, _Compare) [with _RAIter =
>>>> __gnu_cxx::__normal_iterator<std::pair<int, votca::tools::GraphNode>*,
>>>> std::vector<std::pair<int, votca::tools::GraphNode> > >; _Compare = bool
>>>> (*)(std::pair<int, votca::tools::GraphNode>&, std::pair<int,
>>>> votca::tools::GraphNode>&)]’
>>>> /home/anirbanm/programs/votca/tools/src/libtools/graph.cc:127:51:
>>>> required from here
>>>> /usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: invalid
>>>> initialization of reference of type ‘std::pair<int,
>>>> votca::tools::GraphNode>&’ from expression of type ‘const std::pair<int,
>>>> votca::tools::GraphNode>’
>>>> while (__comp(*__first, __pivot))
>>>> ^
>>>> /usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: invalid
>>>> initialization of reference of type ‘std::pair<int,
>>>> votca::tools::GraphNode>&’ from expression of type ‘const std::pair<int,
>>>> votca::tools::GraphNode>’
>>>> while (__comp(__pivot, *__last))
>>>>
>>>> On Tuesday, 26 March 2019 20:13:15 UTC-4, Christoph Junghans wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Mar 26, 2019, 16:59 Anirban Mondal <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Hi Joshua,
>>>>>>
>>>>>> Thanks for your reply. Here are the details
>>>>>>
>>>>>> 1. The full build commands you used
>>>>>>
>>>>>> cmake -DBUILD_CSGAPPS=ON -DBUILD_CTP=ON -DBUILD_XTP=OFF
>>>>>> -DCMAKE_INSTALL_PREFIX=${prefix}
>>>>>> -DEIGEN3_INCLUDE_DIR=/home/anirbanm/programs/eigen3/include/eigen3
>>>>>> -DFFTW3_INCLUDE_DIR=/home/anirbanm/usr/include
>>>>>> -DFFTW3_LIBRARY="/home/anirbanm/usr/lib/libfftw3.so"
>>>>>> -DSQLITE3_LIBRARY=/home/anirbanm/programs/sqlite3/lib
>>>>>>
>>>>> This needs to be a path to an library (so file), which would explain
>>>>> the warnings you saw.
>>>>>
>>>>> -DSQLITE3_INCLUDE_DIR=/home/anirbanm/programs/sqlite3/include ..
>>>>>>
>>>>>> 2. How you installed votca, did you clone it from github etc
>>>>>>
>>>>>> git clone -b master --recursive https://github.com/votca/votca.git
>>>>>>
>>>>>> 3. The compilers and versions you are using
>>>>>>
>>>>>> c++ (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
>>>>>>
>>>>>> On Tue, Mar 26, 2019 at 4:47 PM Joshua Brown <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Anirban,
>>>>>>>
>>>>>>> Can you provide me with the following information:
>>>>>>>
>>>>>>> 1. The full build commands you used
>>>>>>> 2. How you installed votca, did you clone it from github etc
>>>>>>> 3. The compilers and versions you are using
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "votca" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to [email protected].
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> Visit this group at https://groups.google.com/group/votca.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "votca" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>> Visit this group at https://groups.google.com/group/votca.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "votca" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/votca.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "votca" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/votca.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"votca" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/votca.
For more options, visit https://groups.google.com/d/optout.