<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Actually, I just noticed that even if you want static builds, the
FindFFTW3*.cmake modules insist on linking against the dynamic *.so
libraries. But you can force it with a -D option or modify
CMakeCache.txt. (filed bug 541)<br>
<br>
Rossen<br>
<br>
On 09/02/2010 10:22 PM, Rossen Apostolov wrote:
<blockquote cite="mid:4C800787.2030900@cbr.su.se" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Hi again,<br>
<br>
Forgot to say: if you want static, you have to link against
libXXXX.a., *.la are libtool archives.<br>
<br>
Rossen<br>
<br>
On 09/02/2010 08:23 PM, Justin A. Lemkul wrote:
<blockquote cite="mid:4C7FEBB9.9050906@vt.edu" type="cite">So I
(after some additional trial-and-error) tried CMake: <br>
<br>
cmake ../gromacs-4.5.1
-DFFTW3F_LIBRARIES=/apps/packages/FFTW32-3.0.1/lib/libfftw3f.la
-DFFTW3F_INCLUDE_DIR=<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>apps/packages/FFTW32-3.0.1/include<span
class="moz-txt-tag">/</span></i>
-DCMAKE_INSTALL_PREFIX=/home/rdiv1001/gromacs-4.5.1_cmake-linux
–DGMX_BINARY_SUFFIX=_4.5.1_s –DGMX_THREADS=OFF –DGMX_X11=OFF
–DCMAKE_CXX_COMPILER=/apps/local/packages/gcc-4.2.2/bin/g++
-DCMAKE_C_COMPILER=/apps/local/packages/gcc-4.2.2/bin/gcc <br>
<br>
The code begins compiling, but then exits with: <br>
<br>
Linking C shared library libmd.so <br>
/apps/packages/FFTW32-3.0.1/lib/libfftw3f.la: file not
recognized: File format not recognized <br>
collect2: ld returned 1 exit status <br>
make[2]: *** [src/mdlib/libmd.so.6] Error 1 <br>
make[1]: *** [src/mdlib/CMakeFiles/md.dir/all] Error 2 <br>
make: *** [all] Error 2 <br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>