From 8850deac7a215b1aecce8a7ea95af98bde40ba92 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 25 Nov 2019 15:54:54 +0100 Subject: [PATCH] github action for compiling meshlab on ubuntu-gcc added --- .github/workflows/ubuntu-latest-gcc.yml | 40 +++++++++++++++++++++++++ src/external/ext_common.pri | 2 +- src/meshlab/meshlab.pro | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ubuntu-latest-gcc.yml diff --git a/.github/workflows/ubuntu-latest-gcc.yml b/.github/workflows/ubuntu-latest-gcc.yml new file mode 100644 index 000000000..7f9cc3b72 --- /dev/null +++ b/.github/workflows/ubuntu-latest-gcc.yml @@ -0,0 +1,40 @@ +name: UbuntuLatestGCC + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Installing dependencies + run: | + sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-bionic -y + sudo apt update + sudo apt install -y qt512base qt512script qt512xmlpatterns mesa-common-dev libglu1-mesa-dev + cd .. + git clone --depth=1 --branch=devel https://github.com/cnr-isti-vclab/vcglib.git + cd meshlab + - name: Compiling external + run: | + export QT_BASE_DIR=/opt/qt512 + export QTDIR=$QT_BASE_DIR + export PATH=$QT_BASE_DIR/bin:$PATH + export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH + export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH + cd src/external + qmake external.pro + make -j4 + - name: Compiling meshlab + run: | + #need to reset the qt env variables here... + export QT_BASE_DIR=/opt/qt512 + export QTDIR=$QT_BASE_DIR + export PATH=$QT_BASE_DIR/bin:$PATH + export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH + export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH + cd src/ + qmake meshlab_full.pro + make -j4 diff --git a/src/external/ext_common.pri b/src/external/ext_common.pri index 878e9cdc6..387fe3ce6 100644 --- a/src/external/ext_common.pri +++ b/src/external/ext_common.pri @@ -12,7 +12,7 @@ win32-msvc2015:DEFINES += _CRT_SECURE_NO_WARNINGS win32-msvc2017:DEFINES += _CRT_SECURE_NO_WARNINGS win32-msvc:DEFINES += _CRT_SECURE_NO_WARNINGS -linux:DESTDIR = $$EXTERNAL_BASE_PATH/lib/linux +linux:DESTDIR = $$EXTERNAL_BASE_PATH/lib/linux-g++ unix:CONFIG(release, debug|release) { DEFINES *= NDEBUG diff --git a/src/meshlab/meshlab.pro b/src/meshlab/meshlab.pro index efaa66142..5f542b87b 100644 --- a/src/meshlab/meshlab.pro +++ b/src/meshlab/meshlab.pro @@ -154,7 +154,7 @@ win32-g++:LIBS += -L../external/lib/win32-gcc -ljhead -L../distrib -lcom # win32-g++:release:LIBS += -L../common/release -lcommon #} -linux:LIBS += -L$$PWD/../external/lib/linux -ljhead -L../distrib -lcommon -lGLU +linux:LIBS += -L$$PWD/../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU linux:QMAKE_RPATHDIR += ../distrib # uncomment in your local copy only in emergency cases.