Support Request #8334
closedRace condition when installing osg libraries
Description
Supportanfrage
when building the examples the install target of each mixin will try copy the osg library to the bin folder.
This may lead to the error message:
"file INSTALL cannot duplicate symlink"
Ganesh implemented a workaround in ADTF_DISPLAY_TOOLBOXMacros.cmake. Here we create a list of installation folders. If the folder is already in the list it won't be added again:
function(disptb_install_osg OUTPUT_PATH)
set(GLOBAL_OSG_DEST $ENV{GLOBAL_OSG_DEST})
list(FIND GLOBAL_OSG_DEST ${OUTPUT_PATH} INDEX)
if(INDEX EQUAL -1)
list(APPEND GLOBAL_OSG_DEST ${OUTPUT_PATH})
set(ENV{GLOBAL_OSG_DEST} "${GLOBAL_OSG_DEST}")
else()
message(STATUS "Skipping installation of OSG libraries to ${OUTPUT_PATH}. Installation already scheduled in ${GLOBAL_OSG_DEST}")
return()
endif()
disptb_find_osg()
Note: This solution works well if we build all targets at once. If someone is only installing a single target it may happen that the osg libraries are not installed because their installation is configured for another target.
Lösung
Ticket ADISTB-1014 im Produkt angelegt
Updated by hidden over 4 years ago
- Project changed from Public Support to 11
- Status changed from New to In Progress
- Topic set to DisplayTB::Common
- Support Level changed from 2nd Level to 3rd Level
- Customer set to AUDI
- Department set to EF
- Affected Products ADTF Display Toolbox 3.4.0 added
Updated by hidden over 4 years ago
- Status changed from In Progress to To Be Closed
- Resolution set to Known Problem
- Platform Ubuntu 16.04 64bit, Windows 10 64bit added
Hallo Jens,
danke fuer den Hinweis, ich habe dazu mal ein Bug Ticket angelegt.
https://www.cip.audi.de/jira/browse/ADISTB-1014
Viele Grüße
Sebastian
Updated by hidden over 4 years ago
- Resolution changed from Known Problem to Product Issue Opened
Updated by hidden over 4 years ago
- Project changed from 11 to Public Support
- Subject changed from adtf-display-toolbox 3.4.0: Race condition when installing osg libraries to Race condition when installing osg libraries
- Description updated (diff)
- Private changed from Yes to No
- Product Issue Numbers set to https://www.cip.audi.de/jira/browse/ADISTB-1014