Skip to content

Commit

Permalink
Update to Mac libs for complier
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Apr 5, 2022
1 parent 56ce94c commit 29c9855
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ On MacOS running on arm64 (M1 chip) homebrew must be installed under x86_64 to w

6. You should then be able to compile SPIERS by opening the .pro file in QT creator and following standard debug/release procedure.

7. Packaging of the individual apps is achieved by using the QT macdeployqt program:

`/{path to QT}/Qt/5.15.2/clang_64/bin/macdeployqt /{path to build}/build-SPIERS-Desktop_Qt_5_15_2_clang_64bit-Release/SPIERSalign/bin/SPIERSalign64.app -always-overwrite -verbose=2`

`/{path to QT}/Qt/5.15.2/clang_64/bin/macdeployqt /{path to build}/build-SPIERS-Desktop_Qt_5_15_2_clang_64bit-Release/SPIERSedit/bin/SPIERSedit64.app -always-overwrite -verbose=2`

`/{path to QT}/Qt/5.15.2/clang_64/bin/macdeployqt /{path to build}/build-SPIERS-Desktop_Qt_5_15_2_clang_64bit-Release/SPIERSview/bin/SPIERSview64.app -always-overwrite -verbose=2`

Note: it may be possible to install QT5.x/QT Creator via Homebrew rather than via the Apple App Store.
_____

Expand Down
10 changes: 8 additions & 2 deletions SPIERSview/SPIERSview.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ QT += network xml gui core widgets opengl

CONFIG += qt \
release \
warn_on
warn_on \
sdk_no_version_check

RESOURCES = view.qrc \
../SPIERScommon/commonresources.qrc
Expand Down Expand Up @@ -235,7 +236,10 @@ macx {
# as a universal library. As such on arm64 MacOS machines we are targeting the Intel x86_64
# so that it runs on older Macs and under Rosetta on arm64 (M1 chip) machines. Given more time
# both QT and VTK might both catch up with the newer Apple silicon around.
LIBS += -L/usr/local/homebrew/Cellar/vtk/9.1.0/lib/ \
LIBS += -L/usr/local/homebrew/opt/icu4c/lib/ \
-licudata.69 \
-licuuc.69 \
-L/usr/local/homebrew/Cellar/vtk/9.1.0/lib/ \
-lvtkCommonExecutionModel-9.1.1 \
-lvtkCommonDataModel-9.1.1 \
-lvtkCommonColor-9.1.1 \
Expand Down Expand Up @@ -315,6 +319,8 @@ macx {

INCLUDEPATH += /usr/local/homebrew/Cellar/vtk/9.1.0/include/vtk-9.1/
DEPENDPATH += /usr/local/homebrew/Cellar/vtk/9.1.0/include/vtk-9.1/
INCLUDEPATH += /usr/local/homebrew/opt/icu4c/include/
DEPENDPATH += /usr/local/homebrew/opt/icu4c/include/

# Mac icon
ICON = resources/SPIERSviewIcon.icns
Expand Down

0 comments on commit 29c9855

Please sign in to comment.