Skip to content

Commit

Permalink
Tweak to make package-portable-linux slightly less docker dependent
Browse files Browse the repository at this point in the history
Still probably need an if block
  • Loading branch information
sz3 committed Jan 11, 2024
1 parent d2ddcc2 commit 0f2d718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package-portable-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
## targeting old glibc
# docker run --mount type=bind,source="$(pwd)",target="/usr/src/app" -it ubuntu:16.04

cd /usr/src/app
SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
cd $SCRIPT_DIR

# https://gist.github.com/jlblancoc/99521194aba975286c80f93e47966dc5
apt update
Expand All @@ -25,7 +26,7 @@ mkdir build-portable/ && cd build-portable/
/usr/local/bin/cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=OFF -DOPENCV_GENERATE_PKGCONFIG=YES -DOPENCV_FORCE_3RDPARTY_BUILD=YES
make -j5 install

cd /usr/src/app
cd $SCRIPT_DIR
mkdir build-portable/ && cd build-portable/
/usr/local/bin/cmake .. -DBUILD_PORTABLE_LINUX=1
make -j5 install

0 comments on commit 0f2d718

Please sign in to comment.