|
|
On 8/13/22 13:23 Gonzalo Garramuno wrote:
When running the compilation of fltk thru ExternalProject_Add() cmake will try to install fluid into the /Applications/ directory and it will fail due to lack of permissions unless run as root user.
-- Up-to-date: /Applications/fluid.app
CMake Error at fluid/cmake_install.cmake:49 (file):
file INSTALL cannot set permissions on "/Applications/fluid.app": Operation
not permitted.
Call Stack (most recent call first):
cmake_install.cmake:105 (include)
OK, I understand the words, but I believe we need more context. What
exactly are the steps you do when this happens? Could you please provide
a full CMakeLists.txt with a demo (hello world) file that uses this
technique and describe the commands you use so we (I) can test?
The ExternalProject_Add() looks like:
Include( ExternalProject )
ExternalProject_Add(
FLTK
GIT_REPOSITORY "https://github.com/fltk/fltk.git"
GIT_PROGRESS 1
CMAKE_ARGS
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
The above statement is, if I'm not missing anything, redundant. It sets
the FLTK install prefix to that of your main CMake invocation. If this
is '/Applications' then it is correct for FLTK to be installed in that
location and you need the corresponding privileges whenever the built
FLTK project is installed.
What am I missing?
-DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX}
I'm also not sure if this (above) is a valid (useful) assignment. Can
you explain why this is done?
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-DFLTK_BUILD_EXAMPLES=OFF
-DFLTK_BUILD_TEST=OFF
-DOPTION_BUILD_SHARED_LIBS=0
-DOPTION_USE_SYSTEM_ZLIB=0
-DOPTION_USE_SYSTEM_LIBJPEG=0
-DOPTION_USE_SYSTEM_LIBPNG=0
)
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/dee06fe0-51ae-7c59-991b-6a99c9babd64%40online.de.
[ Direct Link to Message ] | |
|
| |