I tried to compile an application for osx .6 snow leopard, but it simply doesn’t work. I don’t get it why, even with a simple Hello World test App. running on 10.8 works fine.
I builded Qt5 with my own configure :
./configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -qt-sql-mysql
to add mysql support and works fine in 10.8
I compile via Qt Creator with these parameters :
qmake LSPRO.pro -r -spec macx-clang CONFIG+=release CONFIG+=x86_64
In my PRO file I have these elements:
TEMPLATE = app
HEADERS = \
mainwindow.h \
app_mediamanager.h \
api.h \
tool_htmleditor.h \
tool_videoencoder.h \
tool_thumbnaileditor.h
SOURCES = \
main.cpp \
mainwindow.cpp \
app_mediamanager.cpp \
api.cpp \
tool_htmleditor.cpp \
tool_videoencoder.cpp \
tool_thumbnaileditor.cpp
QT += network webkitwidgets widgets concurrent sql
QMAKE_CXXFLAGS_X86_64 += -mmacosx-version-min=10.6
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
ICON = icon.icns
RESOURCES = lspro.qrc
I add the libraries with macdeployqt script. When running on 10.6 I get this as error in the report:
Dyld Error Message:
Library not loaded: /usr/lib/libc++.1.dylib
Referenced from: /Users/username/Desktop/LSPRO.app/Contents/MacOS/../Frameworks/QtWebKitWidgets.framework/Versions/5/QtWebKitWidgets
Reason: image not found
The problem surely lies between my screen and my chair, but I don’t get it…
Thanks for reading me!
↧