[CMake] libtool: link: only absolute run-paths are allowed
Josh Stratton
strattonbrazil at gmail.com
Sun Mar 23 19:33:59 EDT 2014
I've using cmake to build an autoconf portion of the project using
ExternalProject_Add. I tried using the autoconf prefix, but was having
issues with the libtool and absolute paths. I found DCMAKE_INSTALL_PREFIX
in the docs, which seems to avoid the libtool problem, but I'm getting
errors saying I don't have permissions writing files to /usr/local/include.
Why would it be trying to write files there?
Making install in api
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03
'/usr/local/include'
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.h':
Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.f':
Permission denied
/usr/bin/install: cannot create regular file
'/usr/local/include/fftw3l.f03': Permission denied
/usr/bin/install: cannot create regular file
'/usr/local/include/fftw3q.f03': Permission denied
make[6]: *** [install-includeHEADERS] Error 1
make[5]: *** [install-am] Error 2
make[4]: *** [install] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2
make[1]: *** [CMakeFiles/fftw.dir/all] Error 2
make: *** [all] Error 2
*** And part of my cmake file...
SET(DEPLOY_DIR /tmp/foo)
ExternalProject_Add(
fftw
SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3
CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:
PATH=$DEPLOY_DIR/FFTW
BUILD_COMMAND make
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140323/d091344c/attachment.html>
More information about the CMake
mailing list