Hi All,

having a bit of trouble compiling the Avogadro-Squared package from the git 
repo. I am using the CMakeLists.txt in the ~/avogadro-squared dir by making a 
build dir and running cmake ../ from there. At the make openbabel step I get 
this output:

..........
Linking C shared library ../../../lib/libinchi.so
CMakeFiles/inchi.dir/ichister.o: In function `len2':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:189:
 undefined reference to `sqrt'
CMakeFiles/inchi.dir/ichister.o: In function `len3':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:184:
 undefined reference to `sqrt'
CMakeFiles/inchi.dir/ichister.o: In function `half_stereo_bond_parity':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1946:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1966:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1967:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1985:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1986:
 undefined reference to `floor'
CMakeFiles/inchi.dir/ichister.o: In function `FixSb0DParities':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1576:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1577:
 undefined reference to `floor'
CMakeFiles/inchi.dir/ichister.o: In function `Get2DTetrahedralAmbiguity':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:324:
 undefined reference to `atan2'
CMakeFiles/inchi.dir/ichister.o: In function `triple_prod_char':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1065:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/ichister.c:1065:
 undefined reference to `floor'
CMakeFiles/inchi.dir/strutil.o: In function `dist3D':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2715:
 undefined reference to `sqrt'
CMakeFiles/inchi.dir/strutil.o: In function `GetMinDistDistribution':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2867:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2869:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2790:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2791:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2800:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2801:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2815:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2821:
 undefined reference to `cos'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2838:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2840:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2847:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2849:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2854:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2780:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2778:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2773:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2785:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2816:
 undefined reference to `sqrt'
CMakeFiles/inchi.dir/strutil.o: In function `move_explicit_Hcation':
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2957:
 undefined reference to `atan2'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2964:
 undefined reference to `floor'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2987:
 undefined reference to `sincos'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2956:
 undefined reference to `sqrt'
/home/mark/Applications/avogadro/avogadro-squared/openbabel/src/formats/inchi103/strutil.c:2915:
 undefined reference to `sqrt'
collect2: ld returned 1 exit status

This is a new one to me. math.h is included in ichister.c and strutil.c, it 
exists in my /usr/include directory. Have not encountered this before. I don't 
want to go around changing the Makefile with no advice.

Surely everything up to that point used some sort of trigonometric function...?

Cheers in advance,

Mark

_____________________________________________________
if you're doing an experiment, you should report everything that you think 
might make it invalid — not only what you think is right about it; other causes 
that could possibly explain your results; and things you thought of that you've 
eliminated by some other experiment, and how they worked — to make sure the 
other fellow can tell they have been eliminated.

I have approximate answers and possible beliefs in different degrees of 
certainty about different things, but I'm not absolutely sure of anything, and 
of many things I don't know anything about, but I don't have to know an answer 
I don't feel frightened by not knowing things, by being lost in the mysterious 
universe without having any purpose which is the way it really is as far as I 
can tell possibly. It doesn't frighten me. - R. Feynman

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to