From: Marco Gittler Date: Fri, 23 Jan 2009 18:09:31 +0000 (+0000) Subject: fix crash when starting under macOSX X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ff83737cdf5e888500934231a2de90c9b383218c;p=kdenlive fix crash when starting under macOSX svn path=/branches/KDE4/; revision=2946 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ec57db78..f7af8e85 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -174,6 +174,11 @@ target_link_libraries(kdenlive ${KDE4_KNOTIFYCONFIG_LIBRARY} ) +if (APPLE) + find_package(SDL REQUIRED) + target_link_libraries(kdenlive ${SDL_LIBRARY}) +endif (APPLE) + install(TARGETS kdenlive DESTINATION ${BIN_INSTALL_DIR}) install( FILES kdenliveui.rc kdenlive.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdenlive ) install (FILES kdenlivesettings.kcfg DESTINATION share/config.kcfg) diff --git a/src/main.cpp b/src/main.cpp index 9b7a4df8..d7a8ebb1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,10 @@ #include "mainwindow.h" +#ifdef __APPLE_KDE__ || __DARWIN__ +#include +#endif + int main(int argc, char *argv[]) { KAboutData aboutData(QByteArray("kdenlive"), QByteArray("kdenlive"), ki18n("Kdenlive"), QByteArray("0.7.1"),