From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Sat Nov 14 2015 - 09:31:15 CST

On Sat, Nov 14, 2015 at 8:09 AM, Xinqiang Ding <xqding_at_umich.edu> wrote:
> Dear all,
>
> I'm trying to compile VMD plugins according to the compiling manual. Here
> are my steps:
>
> export TCLINC=-I/dir/to/tcl8.5/include
> export TCLLIB=-L/dir/to/tcl8.5/lib

this is not likely to be correct. you'll have to replace /dir/to with
a meaningful path.

>
> gmake LINUX TCLINC=$TCLINC TCLLIB=$TCLLIB
>
> The compiler complaints the error:
>
> /usr/bin/ld: skipping incompatible /dir/to/tcl8.5/lib/libtcl8.5.so when
> searching for -ltcl8.5
>
> /usr/bin/ld: skipping incompatible /usr/lib64/libtcl8.5.so when searching
> for -ltcl8.5
>
> /usr/bin/ld: cannot find -ltcl8.5
>
> collect2: ld returned 1 exit status
>
> gmake[2]: *** [vtfplugin.so] Error 1
>
> gmake[1]: *** [molfilelibs] Error 1
>
>
> It seems that the compiler can find my tcl8.5 library, but it is
> incompatible. The information about OS i'm using is Linux
> 2.6.32-431.29.2.el6.x86_64
>
> Does any have met with similar problem or any idea how to fix this?

the error message suggests that you are trying to compile in 32-bit
mode on a 64-bit x86 host.
make sure your compile target is LINUXAMD64 and not LINUX

axel.

>
> Thanks,
> Xinqiang Ding

-- 
Dr. Axel Kohlmeyer  akohlmey_at_gmail.com  http://goo.gl/1wk0
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.