[CMake] libtool: link: only absolute run-paths are allowed

Josh Stratton strattonbrazil at gmail.com
Sun Mar 23 20:34:37 EDT 2014


Looking at the docs it used a colon with the path afterward. What's
the PATH variable for then?

On 3/23/14, Michael Jackson <mike.jackson at bluequartz.net> wrote:
> CMAKE_INSTALL_PREFIX needs an argument which is where you want FFTW
> installed. The Default value for CMAKE_INSTALL_PREFIX on Unix type machines
> is /usr/local. So your CMake code needs to have something like
> 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=/home/stratton/Public/ppml/FFTW
>     PATH=$DEPLOY_DIR/FFTW
>   BUILD_COMMAND make
> )
>
>
> Mike Jackson
>
> On Mar 23, 2014, at 7:33 PM, Josh Stratton <strattonbrazil at gmail.com>
> wrote:
>
>> 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
>> )
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more
>> information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
>


More information about the CMake mailing list