mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
github action for compiling meshlab on ubuntu-gcc added
This commit is contained in:
parent
4cba051a0e
commit
8850deac7a
40
.github/workflows/ubuntu-latest-gcc.yml
vendored
Normal file
40
.github/workflows/ubuntu-latest-gcc.yml
vendored
Normal file
@ -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
|
||||
2
src/external/ext_common.pri
vendored
2
src/external/ext_common.pri
vendored
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user