[Trilinos-Users] Problem Building Trilinos 10.2.1 on Mac OS X

Baker, Christopher G. bakercg at ornl.gov
Thu May 6 05:20:43 MDT 2010


Ted, I encountered the same problem copy-pasting the configure script below. It was fixed after removing the trailing whitespace character on the Boost_LIBRARY_DIRS line. That was truncating the arguments to cmake and causing it to miss the final ../ argument, causing it to look for the CMakeLists.txt file in the current BUILD directory.

Chris


On 5/5/10 5:17 PM, "Ted Kord" <teddy.kord at googlemail.com> wrote:

Hi

I'm trying to install Trilinos 10.2.1 on Mac OS X 10.6.3.

I entered the trilinos-10.2.1-Source directory, then I:

mkdir BUILD
cd BUILD
./do-configure

I get the following result:

CMake Error: The source directory "/Users/tedkord/trilinos-10.2.1-Source/BUILD/ " does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
./do-configure: line 26: ../: is a directory

What could be wrong?

Thanks in advance.

Ted



=====
My configure script is:

#!/bin/sh
EXTRA_ARGS=$@

rm -f CMakeCache.txt

cmake \
-D CMAKE_INSTALL_PREFIX:PATH={$HOME}/trilinos-10.2.1-Source/ \
-D CMAKE_CXX_COMPILER:FILEPATH=${HOME}/openmpi/bin/mpic++ \
-D CMAKE_C_COMPILER:FILEPATH=${HOME}/openmpi/bin/mpicc \
-D CMAKE_Fortran_COMPILER:FILEPATH=${HOME}/openmpi/bin/mpif77 \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_ALL_SECONDARY_STABLE_CODE:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D Trilinos_ENABLE_EXAMPLES:BOOL=ON \
-D HAVE_GCC_ABI_DEMANGLE:BOOL=ON \
-D DART_TESTING_TIMEOUT:STRING=600 \
-D TPL_ENABLE_MPI:BOOL=ON \
-D MPI_USE_COMPILER_WRAPPERS:BOOL=TRUE   \
-D TPL_ENABLE_Boost:BOOL=ON \
-D Boost_INCLUDE_DIRS:PATH=/opt/local/include/boost \
        -D Boost_LIBRARY_DIRS:PATH=/opt/local/lib \
        $EXTRA_ARGS \
        ../







More information about the Trilinos-Users mailing list