fix: patch ofxPiMapper VideoSource.h to use std::unique_ptr for C++20 compatibility
This commit is contained in:
@ -249,13 +249,20 @@ if [ -f src/Osc/OscControl.cpp ]; then
|
||||
echo "Applying highlight surface OSC listener modification..."
|
||||
if ! grep -q "ofxPiMapper/surface/highlight" src/Osc/OscControl.cpp; then
|
||||
sed -i '/if (m.getAddress() == "\/ofxPiMapper\/surface\/select"){/i \
|
||||
if (m.getAddress() == "/ofxPiMapper/surface/highlight"){ \
|
||||
int surfaceIndex = m.getArgAsInt32(0); \
|
||||
mapper->getSurfaceManager()->selectSurface(surfaceIndex); \
|
||||
return; \
|
||||
}' src/Osc/OscControl.cpp
|
||||
if (m.getAddress() == "/ofxPiMapper/surface/highlight"){ \
|
||||
int surfaceIndex = m.getArgAsInt32(0); \
|
||||
mapper->getSurfaceManager()->selectSurface(surfaceIndex); \
|
||||
return; \
|
||||
}' src/Osc/OscControl.cpp
|
||||
fi
|
||||
fi
|
||||
|
||||
# Patch for unique_ptr namespace issue in VideoSource.h
|
||||
if [ -f src/Sources/VideoSource.h ]; then
|
||||
echo "Applying std:: namespace patch to VideoSource.h..."
|
||||
sed -i 's/unique_ptr/std::unique_ptr/g' src/Sources/VideoSource.h
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build Example (Clean call - let OF detect platform, but ignore Trixie compiler strictness)
|
||||
cd "$REAL_HOME/openFrameworks/addons/ofxPiMapper/example_basic"
|
||||
|
||||
Reference in New Issue
Block a user