Hi Mark,

On Fri, Apr 15, 2011 at 8:24 AM, Lewis, Mark <[email protected]> wrote:
> 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'
> /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...?
>
I was just testing this out last night and did not see that error. I
have added a forcebuild step for Open Babel, meaning that it will get
rebuild each time you type make at the top level now. If you could try
a,

make VERBOSE=1

That will show the link line, it should be linking to libm to provide
all of the standard maths functions. I just checked, and everything is
compiling/building/linking for me on Linux (x86_64, GCC 4.5).

Marcus

------------------------------------------------------------------------------
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