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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> 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.

Reply via email to