<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Сборка clementine]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=21377</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21377&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Сборка clementine».]]></description>
		<lastBuildDate>Tue, 03 Apr 2012 20:50:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265750#p265750</link>
			<description><![CDATA[<p>Доставил необходимые либы и все собралось. Для себя открыл всю прелесть сборки через cmake (не в консоли): очень убодно подсвечиваются недостающие вещи.<br />Всем спасибо, тему можно закрывать.</p>]]></description>
			<author><![CDATA[null@example.com (Silencer)]]></author>
			<pubDate>Tue, 03 Apr 2012 20:50:48 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265750#p265750</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265212#p265212</link>
			<description><![CDATA[<p>чтоб не париться в будущем <a href="http://narod.ru/disk/44890536001.f8fe4d2c39ff237e08cb4f0f2d0458f4/slackbuild.tar.gz.html">вот </a>первый слакбилд клементина(был сделан ещё когда проект только начинался) он скачивает транковую версию и собирает её,там таких граблей просто нет, при желании можно поправить под скачивание архива..</p>]]></description>
			<author><![CDATA[null@example.com (gramozeka)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:45:51 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265212#p265212</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265209#p265209</link>
			<description><![CDATA[<div class="quotebox"><cite>gramozeka пишет:</cite><blockquote><p>всё поставил ?</p></blockquote></div><p>круто, чё сказать, уже в упор не вижу, спасибо :lol:</p>]]></description>
			<author><![CDATA[null@example.com (Silencer)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:38:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265209#p265209</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265208#p265208</link>
			<description><![CDATA[<div class="quotebox"><cite>Silencer пишет:</cite><blockquote><p><a href="http://slackbuilds.org/repository/13.37/audio/clementine/">тыц</a></p></blockquote></div><p>Ну так доставляй все нужные либы, не хочешь доставлять правь CMakeLists.txt<br />libgpod <br />libimobiledevice<br />libplist<br />libusbmuxd<br />libgio<br />libprotobuf<br />можно смело выкинуть если нет таких девайсов</p>]]></description>
			<author><![CDATA[null@example.com (SergMarkov)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:37:59 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265208#p265208</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265206#p265206</link>
			<description><![CDATA[<div class="quotebox"><cite>Silencer пишет:</cite><blockquote><div class="quotebox"><cite>gramozeka пишет:</cite><blockquote><p>какая версия и откуда брал слакбилд ?</p></blockquote></div><p><a href="http://slackbuilds.org/repository/13.37/audio/clementine/">тыц</a></p></blockquote></div><p>там же :<br /></p><div class="quotebox"><blockquote><p>Dependencies:</p><p>qjson (required) (on sbo)</p><p>gst-plugins-bad (optional, for http support) (on sbo)<br />gst-plugins-ugly (optional, for mp3 support) (on sbo)<br />libgpod (optional, for iPod support) (not on sbo)<br />libimobiledevice (optional, for iPod support) (on sbo)<br />libplist (optional, for iPod support) (not on sbo)<br />libusbmuxd (optional, for iPod support) (on sbo)<br />libgio (optional, for various device support) (not on sbo)<br />libprotobuf and protobuf-compiler (optional, for Spotify support) (on sbo)<br />libspotify (optional, for Spotify support) (not on sbo)<br />libqca (optional, for Spotify support) (not on sbo)<br />libvlc (optional, not available on slackbuilds.org but AlienBob has vlc packages &amp;<br />slackbuilds here: <a href="http://connie.slackware.com/~alien/slackbuilds/vlc/">http://connie.slackware.com/~alien/slackbuilds/vlc/</a> )</p></blockquote></div><p>всё поставил ?</p>]]></description>
			<author><![CDATA[null@example.com (gramozeka)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:36:05 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265206#p265206</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265205#p265205</link>
			<description><![CDATA[<div class="quotebox"><cite>gramozeka пишет:</cite><blockquote><p>какая версия и откуда брал слакбилд ?</p></blockquote></div><p><a href="http://slackbuilds.org/repository/13.37/audio/clementine/">тыц</a></p>]]></description>
			<author><![CDATA[null@example.com (Silencer)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:31:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265205#p265205</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265200#p265200</link>
			<description><![CDATA[<p>какая версия и откуда брал слакбилд ? умвр</p>]]></description>
			<author><![CDATA[null@example.com (gramozeka)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:17:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265200#p265200</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265197#p265197</link>
			<description><![CDATA[<p>Ну так&nbsp; изменить там где вылазят ошибки ON на OFF <br />Ну или доставлять либы, почему на страничке не указали что нужны либы, к примеру, для ipod, которые на сайте есть, это уже претензии к автору сего творения.</p>]]></description>
			<author><![CDATA[null@example.com (SergMarkov)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:08:46 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265197#p265197</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265195#p265195</link>
			<description><![CDATA[<p><strong>SergMarkov</strong>, так в сорцах есть уж этот файл, с этим сожедержанием включительно..<br /></p><div class="codebox"><pre><code>root@slackware:/home/silencer/source/clementine-1.0.0# ls -l
итого 132
drwxrwxr-x 20 silencer 1000  4096 Дек  3 00:24 3rdparty/
-rw-rw-r--  1 silencer 1000 15690 Дек  3 00:24 CMakeLists.txt
-rw-rw-r--  1 silencer 1000 35147 Ноя 12 19:54 COPYING
-rw-rw-r--  1 silencer 1000 32029 Дек  3 00:24 Changelog
drwxrwxr-x  2 silencer 1000  4096 Дек 27 21:16 bin/
drwxrwxr-x  2 silencer 1000  4096 Дек 27 21:16 cmake/
-rw-rw-r--  1 silencer 1000   878 Ноя 12 19:54 cmake_uninstall.cmake.in
drwxrwxr-x  7 silencer 1000  4096 Дек  3 00:24 data/
drwxrwxr-x  4 silencer 1000  4096 Дек 27 21:16 dist/
drwxrwxr-x  3 silencer 1000  4096 Дек  3 00:24 gst/
drwxrwxr-x  2 silencer 1000  4096 Дек  3 00:24 plasmarunner/
drwxrwxr-x  4 silencer 1000  4096 Дек  3 00:24 spotifyblob/
drwxrwxr-x 24 silencer 1000  4096 Дек 27 21:16 src/
drwxrwxr-x  3 silencer 1000  4096 Дек  3 00:24 tests/
drwxrwxr-x  3 silencer 1000  4096 Ноя 12 19:54 tools/</code></pre></div><p>CMakeLists.txt:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>cmake_minimum_required(VERSION 2.6)

include(CheckCXXCompilerFlag)
include(FindPkgConfig)
include(cmake/Summary.cmake)
include(cmake/Version.cmake)
include(cmake/Deb.cmake)
include(cmake/Rpm.cmake)
include(cmake/SpotifyVersion.cmake)
include(cmake/OptionalSource.cmake)

if (UNIX AND NOT APPLE)
  set(LINUX 1)
endif (UNIX AND NOT APPLE)

find_package(Qt4 4.5.0 REQUIRED QtCore QtGui QtOpenGL QtSql QtNetwork QtXml)
if (LINUX)
  option(ENABLE_DBUS &quot;Enable D-Bus, MPRIS and native notifications. Required for DeviceKit and Wii remote support&quot; ON)
  if(ENABLE_DBUS)
    find_package(Qt4 REQUIRED QtDbus)
    set(HAVE_DBUS ON)

    option(ENABLE_DEVICEKIT &quot;DeviceKit backend&quot; ON)
    if(ENABLE_DEVICEKIT)
      set(HAVE_DEVICEKIT ON)
    endif(ENABLE_DEVICEKIT)

    option(ENABLE_WIIMOTEDEV &quot;Enable Wii remote support in Clementine&quot; ON)
  endif(ENABLE_DBUS)
endif (LINUX)

if(NOT APPLE)
  find_package(Qt4 COMPONENTS QtWebKit)
endif(NOT APPLE)

# Find Qt&#039;s lconvert binary.  Try qt&#039;s binary dir first, fall back to looking in PATH
find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert lconvert-qt4 PATHS ${QT_BINARY_DIR} NO_DEFAULT_PATH)
find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert lconvert-qt4)

if(APPLE)
  if(NOT QT_MAC_USE_COCOA)
    message(FATAL_ERROR &quot;Cocoa support is required&quot;)
  endif(NOT QT_MAC_USE_COCOA)
endif(APPLE)

find_package(OpenGL REQUIRED)
find_package(Boost REQUIRED)
find_package(Gettext REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Protobuf)

pkg_check_modules(TAGLIB REQUIRED taglib&gt;=1.6)
pkg_check_modules(QJSON REQUIRED QJson)
pkg_check_modules(GSTREAMER gstreamer-0.10)
pkg_check_modules(GSTREAMER_BASE gstreamer-base-0.10)
pkg_check_modules(GSTREAMER_APP gstreamer-app-0.10)
pkg_check_modules(GSTREAMER_CDDA gstreamer-cdda-0.10)
pkg_check_modules(GSTREAMER_TAG gstreamer-tag-0.10)
pkg_check_modules(GLIB glib-2.0)
pkg_check_modules(LIBXML libxml-2.0)
pkg_check_modules(GOBJECT gobject-2.0)
pkg_check_modules(LIBGPOD libgpod-1.0&gt;=0.7.92)
pkg_check_modules(GIO gio-2.0)
pkg_check_modules(IMOBILEDEVICE libimobiledevice-1.0)
pkg_check_modules(PLIST libplist)
pkg_check_modules(USBMUXD libusbmuxd)
pkg_check_modules(LIBMTP libmtp&gt;=1.0)
pkg_check_modules(INDICATEQT indicate-qt)
pkg_check_modules(SPOTIFY libspotify&gt;=10.1.16)
pkg_check_modules(CDIO libcdio)
pkg_check_modules(QCA qca2)

if (WIN32)
  find_package(ZLIB REQUIRED)
  find_library(MSWMDM_LIBRARIES mswmdm)
  find_library(SAC_SHIM_LIBRARIES sac_shim)
  find_library(QTSPARKLE_LIBRARIES qtsparkle)
endif (WIN32)

find_library(LASTFM_LIBRARIES lastfm)
find_path(LASTFM_INCLUDE_DIRS lastfm/ws.h)

if (APPLE)
  find_library(GROWL Growl)

  option(ENABLE_SPARKLE &quot;Sparkle updating&quot; ON)
  find_library(SPARKLE Sparkle)
  if (ENABLE_SPARKLE AND SPARKLE)
    set(HAVE_SPARKLE ON)
  endif (ENABLE_SPARKLE AND SPARKLE)

  find_library(SPOTIFY libspotify)
  if (SPOTIFY)
    set (SPOTIFY_FOUND ON)
    set (SPOTIFY_INCLUDE_DIRS ${SPOTIFY})
    set (SPOTIFY_LIBRARIES ${SPOTIFY})
  endif (SPOTIFY)

  add_subdirectory(3rdparty/SPMediaKeyTap)
  set(SPMEDIAKEYTAP_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/SPMediaKeyTap)
  set(SPMEDIAKEYTAP_LIBRARIES SPMediaKeyTap)  

  # Uses Darwin kernel version.
  # 9.8.0  -&gt; 10.5/Leopard
  # 10.4.0 -&gt; 10.6/Snow Leopard
  string(REGEX MATCH &quot;[0-9]+&quot; DARWIN_VERSION ${CMAKE_HOST_SYSTEM_VERSION})
  if (DARWIN_VERSION GREATER 9)
    SET(SNOW_LEOPARD 1)
  elseif (DARWIN_VERSION GREATER 8)
    SET(LEOPARD 1)
  endif (DARWIN_VERSION GREATER 9)
endif (APPLE)

find_package(Threads)

if(${CMAKE_BUILD_TYPE} MATCHES &quot;Release&quot;)
  add_definitions(-DNDEBUG)
  add_definitions(-DQT_NO_DEBUG_OUTPUT)
endif(${CMAKE_BUILD_TYPE} MATCHES &quot;Release&quot;)

# Use protobuf-lite if it&#039;s available
set(USE_PROTOBUF_LITE ON CACHE BOOL &quot;Use protobuf-lite instead of protobuf if available&quot;)
find_library(PROTOBUF_LITE_LIBRARY protobuf-lite)

if(NOT PROTOBUF_LITE_LIBRARY)
  # Lucid doesn&#039;t have a .so symlink
  find_file(PROTOBUF_LITE_LIBRARY
    NAMES libprotobuf-lite.so.5
    PATH_SUFFIXES lib
  )
endif(NOT PROTOBUF_LITE_LIBRARY)

# Set up definitions and paths
add_definitions(${QT_DEFINITIONS})
link_directories(${TAGLIB_LIBRARY_DIRS})
link_directories(${QJSON_LIBRARY_DIRS})
link_directories(${GSTREAMER_LIBRARY_DIRS})

# Don&#039;t try to use webkit if their include directories couldn&#039;t be found.
if (NOT QT_QTWEBKIT_INCLUDE_DIR)
  set (QT_USE_QTWEBKIT 0)
endif (NOT QT_QTWEBKIT_INCLUDE_DIR)

include(${QT_USE_FILE})
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${TAGLIB_INCLUDE_DIRS})
include_directories(${QJSON_INCLUDE_DIRS})
include_directories(${GSTREAMER_INCLUDE_DIRS})
include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${GLIBCONFIG_INCLUDE_DIRS})
include_directories(${LIBXML_INCLUDE_DIRS})
include_directories(&quot;3rdparty/universalchardet&quot;)

# Remove GLU and GL from the link line - they&#039;re not really required
# and don&#039;t exist on my mingw toolchain
list(REMOVE_ITEM QT_LIBRARIES &quot;-lGLU -lGL&quot;)

if (WIN32)
  # RC compiler
  string(REPLACE &quot;gcc&quot; &quot;windres&quot; CMAKE_RC_COMPILER_INIT ${CMAKE_C_COMPILER})
  enable_language(RC)
  SET(CMAKE_RC_COMPILE_OBJECT &quot;&lt;CMAKE_RC_COMPILER&gt; -O coff -o &lt;OBJECT&gt; &lt;SOURCE&gt; -I../../dist/windows&quot;)
endif(WIN32)

add_definitions(-DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS)

# Translations stuff
find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext PATHS /target/bin)
if(NOT GETTEXT_XGETTEXT_EXECUTABLE)
  message(FATAL_ERROR &quot;Could not find xgettext executable&quot;)
endif(NOT GETTEXT_XGETTEXT_EXECUTABLE)
find_program(GETTEXT_MSGMERGE_EXECUTABLE msgmerge PATHS /target/bin)
if(NOT GETTEXT_MSGMERGE_EXECUTABLE)
  message(FATAL_ERROR &quot;Could not find msgmerge executable&quot;)
endif(NOT GETTEXT_MSGMERGE_EXECUTABLE)
find_program(GETTEXT_MSGFMT_EXECUTABLE msgfmt PATHS /target/bin)
if(NOT GETTEXT_MSGFMT_EXECUTABLE)
  message(FATAL_ERROR &quot;Could not find msgfmt executable&quot;)
endif(NOT GETTEXT_MSGFMT_EXECUTABLE)

# Optional bits
option(ENABLE_LIBGPOD &quot;iPod classic support&quot; ON)
option(ENABLE_IMOBILEDEVICE &quot;iPod Touch, iPhone, iPad support&quot; ON)
option(ENABLE_LIBMTP &quot;MTP support&quot; ON)
option(ENABLE_GIO &quot;GIO backend&quot; ON)
option(ENABLE_AUDIOCD &quot;Audio CD support&quot; ON)
option(ENABLE_VISUALISATIONS &quot;Use libprojectm visualisations&quot; ON)
option(BUNDLE_PROJECTM_PRESETS &quot;Install Clementine&#039;s own copies of libprojectm presets - disable this if you want to use a system package instead&quot; ON)
option(ENABLE_SOUNDMENU &quot;Add Clementine to the Gnome sound menu&quot; ON)
option(ENABLE_LIBLASTFM &quot;Use liblastfm for fetching song info, scrobbling and radio streams&quot; ON)
option(ENABLE_REMOTE &quot;Enable support for using remote controls with Clementine&quot; OFF)
option(ENABLE_BREAKPAD &quot;Enable crash reporting&quot; OFF)
option(ENABLE_SPOTIFY_BLOB &quot;Build the spotify non-GPL binary&quot; ON)
option(ENABLE_SPOTIFY &quot;Enable spotify support&quot; ON)
option(ENABLE_PLASMARUNNER &quot;Enable plasma krunner global search&quot; OFF)

if(WIN32)
  option(ENABLE_WIN32_CONSOLE &quot;Show the windows console even outside Debug mode&quot; OFF)
endif(WIN32)

if(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
  set(HAVE_LIBGPOD ON)
endif(ENABLE_LIBGPOD AND LIBGPOD_FOUND)

if(ENABLE_GIO AND GIO_FOUND AND NOT APPLE)
  set(HAVE_GIO ON)
endif(ENABLE_GIO AND GIO_FOUND AND NOT APPLE)

if(ENABLE_AUDIOCD AND CDIO_FOUND)
  set(HAVE_AUDIOCD ON)
endif(ENABLE_AUDIOCD AND CDIO_FOUND)

if(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_FOUND AND PLIST_FOUND AND HAVE_LIBGPOD AND USBMUXD_FOUND)
  set(HAVE_IMOBILEDEVICE ON)
endif(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_FOUND AND PLIST_FOUND AND HAVE_LIBGPOD AND USBMUXD_FOUND)

if(ENABLE_LIBMTP AND LIBMTP_FOUND)
  set(HAVE_LIBMTP ON)
endif(ENABLE_LIBMTP AND LIBMTP_FOUND)

if(ENABLE_SOUNDMENU AND INDICATEQT_FOUND)
  set(HAVE_LIBINDICATE ON)
endif(ENABLE_SOUNDMENU AND INDICATEQT_FOUND)

if(ENABLE_LIBLASTFM AND LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS)
  set(HAVE_LIBLASTFM ON)
endif(ENABLE_LIBLASTFM AND LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS)

if(ENABLE_WIIMOTEDEV AND HAVE_DBUS)
  set(HAVE_WIIMOTEDEV ON)
endif(ENABLE_WIIMOTEDEV AND HAVE_DBUS)

if(ENABLE_BREAKPAD)
  set(HAVE_BREAKPAD ON)
endif(ENABLE_BREAKPAD)

if(ENABLE_SPOTIFY AND PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE)
  set(HAVE_SPOTIFY ON)
endif(ENABLE_SPOTIFY AND PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE)

if(ENABLE_SPOTIFY_BLOB AND PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE AND SPOTIFY_FOUND)
  set(HAVE_SPOTIFY_BLOB ON)
endif(ENABLE_SPOTIFY_BLOB AND PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE AND SPOTIFY_FOUND)

if((NOT HAVE_SPOTIFY_BLOB) AND (NOT QCA_FOUND))
  # If we&#039;re not bundling the spotify blob then we must ensure QCA is available
  # so we can verify the blob we download at runtime.
  unset(HAVE_SPOTIFY)
endif((NOT HAVE_SPOTIFY_BLOB) AND (NOT QCA_FOUND))

if(QCA_FOUND AND HAVE_SPOTIFY)
  set(HAVE_QCA ON)
endif(QCA_FOUND AND HAVE_SPOTIFY)


if(ENABLE_VISUALISATIONS)
  # When/if upstream accepts our patches then these options can be used to link
  # to system installed projectM instead.
  option(USE_SYSTEM_PROJECTM &quot;Don&#039;t set this option unless your system projectM library has been compiled with the Clementine patches in 3rdparty&quot; OFF)
  if(USE_SYSTEM_PROJECTM)
    pkg_check_modules(LIBPROJECTM libprojectM)
  else(USE_SYSTEM_PROJECTM)
    add_subdirectory(3rdparty/libprojectm)
    set(LIBPROJECTM_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/libprojectm)
    set(LIBPROJECTM_LIBRARIES projectM)
  endif(USE_SYSTEM_PROJECTM)
endif(ENABLE_VISUALISATIONS)

# We compile our own qsqlite3 by default now, because in Qt 4.7 the symbols we
# need from it are private.
option(STATIC_SQLITE &quot;Compile and use a static sqlite3 library&quot; ON)

pkg_check_modules(GNUTLS gnutls)
if(GNUTLS_LIBRARIES)
  set(HAVE_GNUTLS 1)
endif(GNUTLS_LIBRARIES)

if(ENABLE_REMOTE AND HAVE_GNUTLS)
  set(HAVE_REMOTE ON)
  add_subdirectory(3rdparty/gloox)
  add_subdirectory(3rdparty/libxrme)
  add_subdirectory(3rdparty/libportfwd)
  include_directories(3rdparty)
  include_directories(3rdparty/libxrme)
  include_directories(3rdparty/libportfwd/include)
endif(ENABLE_REMOTE AND HAVE_GNUTLS)

set(HAVE_STATIC_SQLITE ${STATIC_SQLITE})
if(STATIC_SQLITE)
  message(STATUS &quot;Building static qsqlite plugin&quot;)
  add_subdirectory(3rdparty/qsqlite)
  include_directories(&quot;3rdparty/qsqlite&quot;)
endif(STATIC_SQLITE)

# When/if upstream accepts our patches then these options can be used to link
# to system installed qtsingleapplication instead.
option(USE_SYSTEM_QTSINGLEAPPLICATION &quot;Don&#039;t set this option unless your system QtSingleApplication library has been compiled with the Clementine patches in 3rdparty&quot; OFF)
if(USE_SYSTEM_QTSINGLEAPPLICATION)
  find_path(QTSINGLEAPPLICATION_INCLUDE_DIRS qtsingleapplication.h PATH_SUFFIXES QtSolutions)
  find_library(QTSINGLEAPPLICATION_LIBRARIES QtSolutions_SingleApplication-2.6)
  find_library(QTSINGLECOREAPPLICATION_LIBRARIES QtSolutions_SingleCoreApplication-2.6)
else(USE_SYSTEM_QTSINGLEAPPLICATION)
  add_subdirectory(3rdparty/qtsingleapplication)
  set(QTSINGLEAPPLICATION_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qtsingleapplication)
  set(QTSINGLEAPPLICATION_LIBRARIES qtsingleapplication)
endif(USE_SYSTEM_QTSINGLEAPPLICATION)

# QtIoCompressor isn&#039;t patched, so we can use a system version if it&#039;s
# available
find_path(QTIOCOMPRESSOR_INCLUDE_DIRS qtiocompressor.h PATH_SUFFIXES QtSolutions)
find_library(QTIOCOMPRESSOR_LIBRARIES QtSolutions_IOCompressor-2.3)
if(NOT QTIOCOMPRESSOR_INCLUDE_DIRS OR NOT QTIOCOMPRESSOR_LIBRARIES)
  add_subdirectory(3rdparty/qtiocompressor)
  set(QTIOCOMPRESSOR_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qtiocompressor)
  set(QTIOCOMPRESSOR_LIBRARIES qtiocompressor)
endif(NOT QTIOCOMPRESSOR_INCLUDE_DIRS OR NOT QTIOCOMPRESSOR_LIBRARIES)

# When/if upstream accepts our or reimplement our patches then these options can be
# used to link to system installed qxt instead.
option(USE_SYSTEM_QXT &quot;Don&#039;t set this option unless your system Qxt library has been compiled with the Clementine patches in 3rdparty&quot; OFF)
if (USE_SYSTEM_QXT)
  find_path(QXTCORE_INCLUDE_DIRS qxtglobal.h PATH_SUFFIXES QxtCore)
  find_path(QXTGUI_INCLUDE_DIRS qxtglobalshortcut.h PATH_SUFFIXES QxtGui)
  set(QXT_INCLUDE_DIRS ${QXTCORE_INCLUDE_DIRS} ${QXTGUI_INCLUDE_DIRS})
  # We only need its header. We don&#039;t need to link to QxtCore.
  find_library(QXT_LIBRARIES QxtGui)
else (USE_SYSTEM_QXT)
  add_definitions(-DQXT_STATIC -DBUILD_QXT_GUI -DBUILD_QXT_CORE)
  set(QXT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/qxt)
  set(QXT_LIBRARIES qxt)
  if (NOT APPLE)
    add_subdirectory(3rdparty/qxt)
  endif (NOT APPLE)
endif (USE_SYSTEM_QXT)

# Use system libechonest if it&#039;s available
find_path(ECHONEST_INCLUDE_DIRS echonest/echonest_export.h)
find_library(ECHONEST_LIBRARIES echonest)
if(NOT ECHONEST_INCLUDE_DIRS OR NOT ECHONEST_LIBRARIES)
  add_subdirectory(3rdparty/libechonest)
  set(ECHONEST_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/3rdparty/libechonest)
  set(ECHONEST_LIBRARIES echonest)
endif(NOT ECHONEST_INCLUDE_DIRS OR NOT ECHONEST_LIBRARIES)

# Use system gmock if it&#039;s available
# We need to look for both gmock and gtest
find_path(GMOCK_INCLUDE_DIRS gmock/gmock.h)
find_library(GMOCK_LIBRARIES gmock)
if(GMOCK_INCLUDE_DIRS)
  find_path(GTEST_INCLUDE_DIRS gtest/gtest.h)
  find_library(GTEST_LIBRARIES gtest)
  if(GTEST_INCLUDE_DIRS)
    set(USE_SYSTEM_GMOCK 1)
    set(GMOCK_LIBRARIES ${GMOCK_LIBRARIES} ${GTEST_LIBRARIES})
  endif(GTEST_INCLUDE_DIRS)
endif(GMOCK_INCLUDE_DIRS)

# Subdirectories
add_subdirectory(src)
if (WIN32)
  add_subdirectory(3rdparty/qtwin)
endif (WIN32)
add_subdirectory(3rdparty/echoprint-codegen)
add_subdirectory(3rdparty/sha2)
add_subdirectory(3rdparty/universalchardet)
add_subdirectory(tests)
add_subdirectory(dist)
add_subdirectory(tools/ultimate_lyrics_parser)

option(WITH_DEBIAN OFF)
if(WITH_DEBIAN)
  add_subdirectory(debian)
endif(WITH_DEBIAN)

if(IMOBILEDEVICE_FOUND AND PLIST_FOUND)
  add_subdirectory(gst/afcsrc)
endif(IMOBILEDEVICE_FOUND AND PLIST_FOUND)

if(HAVE_BREAKPAD)
  add_subdirectory(3rdparty/google-breakpad)
endif(HAVE_BREAKPAD)

if(HAVE_SPOTIFY)
  add_subdirectory(spotifyblob/common)
endif(HAVE_SPOTIFY)

if(HAVE_SPOTIFY_BLOB)
  add_subdirectory(spotifyblob/blob)
endif(HAVE_SPOTIFY_BLOB)

# This goes after everything else because KDE fucks everything else up with its
# cmake includes.
find_package(KDE4 4.3.60)
if(KDE4_PLASMA_LIBS AND ENABLE_PLASMARUNNER)
  set(HAVE_PLASMARUNNER ON)
endif(KDE4_PLASMA_LIBS AND ENABLE_PLASMARUNNER)

if(HAVE_PLASMARUNNER)
  add_subdirectory(plasmarunner)
endif(HAVE_PLASMARUNNER)

# Uninstall support
configure_file(
  &quot;${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in&quot;
  &quot;${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake&quot;
  IMMEDIATE @ONLY)

add_custom_target(uninstall
  &quot;${CMAKE_COMMAND}&quot; -P &quot;${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake&quot;)

# Show a summary of what we have enabled
summary_add(&quot;Crash reporting&quot; HAVE_BREAKPAD)
summary_add(&quot;D-Bus support&quot; HAVE_DBUS)
summary_add(&quot;Devices: Audio CD support&quot; HAVE_AUDIOCD)
summary_add(&quot;Devices: DeviceKit backend&quot; HAVE_DEVICEKIT)
summary_add(&quot;Devices: iPod classic support&quot; HAVE_LIBGPOD)
summary_add(&quot;Devices: iPod Touch, iPhone, iPad support&quot; HAVE_IMOBILEDEVICE)
summary_add(&quot;Devices: MTP support&quot; HAVE_LIBMTP)
summary_add(&quot;Devices: GIO backend&quot; HAVE_GIO)
summary_add(&quot;Gnome sound menu integration&quot; HAVE_LIBINDICATE)
summary_add(&quot;Last.fm support&quot; HAVE_LIBLASTFM)
summary_add(&quot;Spotify support: core code&quot; HAVE_SPOTIFY)
summary_add(&quot;Spotify support: non-GPL binary helper&quot; HAVE_SPOTIFY_BLOB)
summary_add(&quot;Visualisations&quot; ENABLE_VISUALISATIONS)
summary_add(&quot;Wiimote support&quot; HAVE_WIIMOTEDEV)
summary_add(&quot;(KDE) Plasma global search&quot; HAVE_PLASMARUNNER)
summary_add(&quot;(Mac OS X) Sparkle integration&quot; HAVE_SPARKLE)
summary_add(&quot;(unstable) Remote control support&quot; HAVE_REMOTE)
summary_show()</code></pre></div></div></div><p>что слакбилд, что<br /></p><div class="codebox"><pre><code>cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man</code></pre></div><p>результат один</p>]]></description>
			<author><![CDATA[null@example.com (Silencer)]]></author>
			<pubDate>Sun, 01 Apr 2012 15:03:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265195#p265195</guid>
		</item>
		<item>
			<title><![CDATA[Re: Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265188#p265188</link>
			<description><![CDATA[<p>CMakeLists.txt<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p># Optional bits<br />option(ENABLE_LIBGPOD &quot;iPod classic support&quot; ON)<br />option(ENABLE_IMOBILEDEVICE &quot;iPod Touch, iPhone, iPad support&quot; ON)<br />option(ENABLE_LIBMTP &quot;MTP support&quot; ON)<br />option(ENABLE_GIO &quot;GIO backend&quot; ON)<br />option(ENABLE_AUDIOCD &quot;Audio CD support&quot; ON)<br />option(ENABLE_VISUALISATIONS &quot;Use libprojectm visualisations&quot; ON)<br />option(BUNDLE_PROJECTM_PRESETS &quot;Install Clementine&#039;s own copies of libprojectm presets - disable this if you want to use a system package instead&quot; ON)<br />option(ENABLE_SOUNDMENU &quot;Add Clementine to the Gnome sound menu&quot; ON)<br />option(ENABLE_LIBLASTFM &quot;Use liblastfm for fetching song info, scrobbling and radio streams&quot; ON)<br />option(ENABLE_REMOTE &quot;Enable support for using remote controls with Clementine&quot; OFF)<br />option(ENABLE_BREAKPAD &quot;Enable crash reporting&quot; OFF)<br />option(ENABLE_SPOTIFY_BLOB &quot;Build the spotify non-GPL binary&quot; ON)<br />option(ENABLE_SPOTIFY &quot;Enable spotify support&quot; ON)<br />option(ENABLE_PLASMARUNNER &quot;Enable plasma krunner global search&quot; OFF)</p></div></div><p>Че делать думаю понятно :-)</p>]]></description>
			<author><![CDATA[null@example.com (SergMarkov)]]></author>
			<pubDate>Sun, 01 Apr 2012 14:08:49 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265188#p265188</guid>
		</item>
		<item>
			<title><![CDATA[Сборка clementine]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=265142#p265142</link>
			<description><![CDATA[<p>в конце сборки получаю это:<br /></p><div class="codebox"><pre><code>The following components WILL NOT be built:
   Crash reporting
   Devices: iPod Touch, iPhone, iPad support
   Gnome sound menu integration
   Spotify support: core code
   Spotify support: non-GPL binary helper
   (KDE) Plasma global search
   (Mac OS X) Sparkle integration
   (unstable) Remote control support

-- Configuring incomplete, errors occurred!</code></pre></div><p>собираю в KDE 4.7.4 от Alien&#039;а, которые поставил с нуля, используя слакбилд default:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#!/bin/sh

# Slackware build script for clementine

# Copyright 2010  David Woodfall &lt;dave@dawoodfall.net&gt;
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR &#039;&#039;AS IS&#039;&#039; AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Modified by SlackBuilds.org

PRGNAM=clementine
VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

if [ -z &quot;$ARCH&quot; ]; then
  case &quot;$( uname -m )&quot; in
    i?86) export ARCH=i486 ;;
    arm*) export ARCH=arm ;;
       *) export ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ &quot;$ARCH&quot; = &quot;i486&quot; ]; then
  SLKCFLAGS=&quot;-O2 -march=i486 -mtune=i686&quot;
  LIBDIRSUFFIX=&quot;&quot;
elif [ &quot;$ARCH&quot; = &quot;i686&quot; ]; then
  SLKCFLAGS=&quot;-O2 -march=i686 -mtune=i686&quot;
  LIBDIRSUFFIX=&quot;&quot;
elif [ &quot;$ARCH&quot; = &quot;x86_64&quot; ]; then
  SLKCFLAGS=&quot;-O2 -fPIC&quot;
  LIBDIRSUFFIX=&quot;64&quot;
else
  SLKCFLAGS=&quot;-O2&quot;
  LIBDIRSUFFIX=&quot;&quot;
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

mkdir build
cd build
  cmake \
    -DCMAKE_C_FLAGS:STRING=&quot;$SLKCFLAGS&quot; \
    -DCMAKE_CXX_FLAGS:STRING=&quot;$SLKCFLAGS&quot; \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DMAN_INSTALL_DIR=/usr/man \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make all CFLAGS=&quot;-fPIC&quot; PMFLAGS=&quot;-DNEWBUFFER&quot;
  make install DESTDIR=$PKG
cd ..

for i in 16 32 ; do
  install -m 0644 -D dist/${PRGNAM}_${i}.png \
    $PKG/usr/share/icons/hicolor/${i}x${i}/apps/application-x-clementine.png
done

find $PKG -print0 | xargs -0 file | grep -e &quot;executable&quot; -e &quot;shared object&quot; | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2&gt; /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING Changelog $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild &gt; $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc &gt; $PKG/install/slack-desc
cat $CWD/doinst.sh &gt; $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (Silencer)]]></author>
			<pubDate>Sun, 01 Apr 2012 08:52:37 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=265142#p265142</guid>
		</item>
	</channel>
</rss>
