Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
3b4969c4
Commit
3b4969c4
authored
Sep 30, 2019
by
Leander Schulten
Browse files
Build: Fix compilation on macOS
parent
8ebb3759
Pipeline
#189302
passed with stage
in 4 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Lichtsteuerung.pro
View file @
3b4969c4
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment