The Molecular Graphics Laboratory Forum

AutoDock, AutoLigand, MGLTools, Vina, PyRx and more.
It is currently Sat Sep 22, 2018 9:05 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jun 17, 2012 11:16 am 
Offline
Millimolar User
Millimolar User
User avatar

Joined: Sun Jun 17, 2012 11:13 am
Posts: 1
While trying to compile main.cpp of autodock_vina_1_1_2 with visual studio
I came to the following errors
Error 1 error C3861: 'quaternion_is_normalized': identifier not found e:\vina_compoile\autodock_vina_1_1_2\src\lib\quaternion.h 79
vina_compile
Error 2 error C3861: 'quaternion_is_normalized': identifier not found
e:\vina_compoile\autodock_vina_1_1_2\src\lib\quaternion.h 91
vina_compile
I was using boost 1_41_0
May I ask you to know hoe I can handle the errors.


Top
 Profile  
 
PostPosted: Sat Dec 15, 2012 2:28 pm 
Offline
Millimolar User
Millimolar User
User avatar

Joined: Sat Dec 15, 2012 2:09 pm
Posts: 1
Hi, I met the same problem, and I have solved it successfully.

The fact is that the file "quaternion.h" uses the function called "quaternion_is_normalized()", which is implemented in "quaternion.cpp". However, "quaternion.h" failed to declare this function before its use.

Solution: Add code "bool quaternion_is_normalized(const qt& q);" at line 68 in "quaternion.h".(Or anywhere you want before line 79)

Like this:
...
Line67: mat quaternion_to_r3(const qt& q);
Line68: bool quaternion_is_normalized(const qt& q); //here is the code
...

Then it should work ^_^


Top
 Profile  
 
PostPosted: Sat Dec 22, 2012 12:29 pm 
Offline
Millimolar User
Millimolar User
User avatar

Joined: Thu Jun 23, 2011 12:39 pm
Posts: 5
or you could use the option -DNDEBUG to just ignore the assertion.


Top
 Profile  
 
PostPosted: Mon Apr 01, 2013 11:12 am 
Offline
Millimolar User
Millimolar User
User avatar

Joined: Mon Apr 01, 2013 11:02 am
Posts: 2
ruiran wrote:
Hi, I met the same problem, and I have solved it successfully.

The fact is that the file "quaternion.h" uses the function called "quaternion_is_normalized()", which is implemented in "quaternion.cpp". However, "quaternion.h" failed to declare this function before its use.

Solution: Add code "bool quaternion_is_normalized(const qt& q);" at line 68 in "quaternion.h".(Or anywhere you want before line 79)

Like this:
...
Line67: mat quaternion_to_r3(const qt& q);
Line68: bool quaternion_is_normalized(const qt& q); //here is the code
...

Then it should work ^_^


Hello; can I trouble you for the solution file?
Thank you very much in advance!


Top
 Profile  
 
PostPosted: Tue May 07, 2013 7:45 pm 
Offline
Micromolar User
Micromolar User
User avatar

Joined: Tue Sep 21, 2010 10:56 am
Posts: 34
I can provide custom sources with issues like this fixed, but use at your own risk:
https://github.com/ProzacR/vina
I like experiments, be sure to check commit logs first ;)

Or here other patched up version:
https://github.com/Ashod/vina


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
POWERED_BY
Translated by MaĆ«l Soucaze © 2009 phpBB.fr