FLTK logo

[fltk.coredev] Re: macOS make install fails when run with ExternalProject_Add()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: macOS make install fails when run with ExternalProject_Add() Rob McDonald Aug 13, 2022  
  I build FLTK through ExternalProject_Add() on Windows and MacOS regularly.  My setup is here...

https://github.com/OpenVSP/OpenVSP/blob/main/Libraries/cmake/External_FLTK.cmake

Rob


On Saturday, August 13, 2022 at 4:23:32 AM UTC-7 ggar...@gmail.com 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)

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}
-DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX}
-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
)



Gonzalo Garramuno
ggar...@gmail.com




--
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/d02f3cc3-bd8f-4b45-8e26-ff415fd0a231n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.