Mac OS X build guide

From LeechCraft
Jump to: navigation, search

brew is used to get the dependencies required to build LeechCraft.

Dependencies

brew install qt5
brew install qxmpp    # a patched formula for qt5 support is required
brew install qwt --without-plugin    # a patched formula for qt5 support is required
brew install boost
brew install libtorrent-rasterbar
brew install gstreamer
brew install gst-plugins-good --with-libogg --with-libvorbis --with-theora
brew install taglib
brew install qca --with-qt5 --without-qt --with-gnupg
brew install speex
brew install ffmpeg
brew install hunspell
brew install liblastfm --with-qt5 (нужна патченная формула)
brew install djvulibre

Building

git clone git://github.com/0xd34df00d/leechcraft.git
cd leechcraft
mkdir build && cd build
cmake ../src -DUSE_QT5=True -DUSE_CPP14=True -DENABLE_LMP_LIBGUESS=False -DENABLE_SYNCER=False -DENABLE_OTLOZHU_SYNC=False -DENABLE_AZOTH_WOODPECKER=False -DENABLE_HARBINGER=False -DENABLE_LEMON=False -DENABLE_ELEEMINATOR=False -DENABLE_BLASQ_SPEGNERSI=False -DENABLE_VROOBY=False -DENABLE_VTYULC=False

Troubleshooting

If you get the following error after running cmake:

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
  The imported target "Qt5::Core" references the file

     "/usr/local//mkspecs/macx-clang"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50 (_qt5_Core_check_file_exists)
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:141 (include)
  /usr/local/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:81 (find_package)
  /usr/local/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:81 (find_package)
  CMakeLists.txt:144 (find_package)

then consider adding /usr/local/opt/qt5/bin to $PATH