Commit 3b4969c4 authored by Leander Schulten's avatar Leander Schulten
Browse files

Build: Fix compilation on macOS

parent 8ebb3759
Pipeline #189302 passed with stage
in 4 minutes and 38 seconds
......@@ -215,16 +215,13 @@ win32-g++{
unix{
#installed with brew install boost
LIBS += -L/usr/local/lib -lboost_coroutine -lboost_context-mt
INCLUDEPATH += /usr/local/include
}
macx{
#AudioFFT
LIBS += -L$$PWD/'lib/AudioFFT/dll' -lAudioFFT.1
INCLUDEPATH += $$PWD/'lib/AudioFFT/include'
#https://forum.qt.io/topic/59209/solved-osx-deployment-fatal-error-with-dylib-library-not-loaded-image-not-found/4
Resources.files += libAudioFFT.1.dylib
Resources.path = Contents/MacOS
QMAKE_BUNDLE_DATA += Resources
LIBS += -L$$PWD/'lib/AudioFFT/dll' -lAudioFFT
INCLUDEPATH += $$PWD/lib/AudioFFT/include
}
win32-g++{
......@@ -259,12 +256,20 @@ win32-g++{
LIBS += -L$$PWD/'lib/segvcatch/lib' -lsegvcatch
INCLUDEPATH += $$PWD/'lib/segvcatch/include'
macx{
#libbacktrace + segvcatch, otherwise you get an link warning
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
}
#boost stacktrace / libbacktrace
#see https://www.boost.org/doc/libs/1_66_0/doc/html/stacktrace/configuration_and_build.html
DEFINES += BOOST_STACKTRACE_USE_BACKTRACE
LIBS += -L$$PWD/'lib/libbacktrace/lib' -lbacktrace
INCLUDEPATH += $$PWD/'lib/libbacktrace/include'
macx{
# needed by boost stacktrace
DEFINES += _GNU_SOURCE
}
win32-msvc{
#AudioFFT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment